:root {
    /* Slate Color Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Semantic Colors */
    --primary: var(--slate-900);
    --secondary: var(--slate-600);
    --bg-main: var(--slate-50);
    --bg-card: #ffffff;
    --success: #10b981; /* Emerald 500 */
    --success-bg: #d1fae5;
    --danger: #ef4444;  /* Red 500 */
    --danger-bg: #fee2e2;
    --border: var(--slate-200);

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Cobranzas Colors */
    --color-background-primary: #ffffff;
    --color-background-secondary: var(--slate-50);
    --color-border-tertiary: var(--slate-200);
    --color-text-primary: var(--slate-900);
    --color-text-secondary: var(--slate-500);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 70px;
    padding: 2rem 0.5rem;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding-bottom: 1rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem 0;
    border-left: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: rgba(255,255,255,0.7);
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-left: 4px solid #3b82f6;
}

.nav-item-logout {
    margin-top: auto;
    color: #fca5a5;
    border-left: 4px solid transparent;
}
.nav-item-logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    max-height: 100vh;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    transition: max-width 0.3s ease;
}

.header {
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.025em;
}

.header p {
    color: var(--slate-500);
    font-size: 1rem;
}

/* Filters Area */
/* Filters Area - Destacado en tonos azules */
.filters-bar {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.15), 0 2px 6px -2px rgba(59, 130, 246, 0.1);
    margin-bottom: 2.5rem;
    border: 1px solid #bfdbfe;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

/* Glowing top border indicator for filters */
.filters-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #2563eb);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.filter-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: 0.625rem 2.25rem 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #93c5fd;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232563eb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem top 50%;
    background-size: 0.65rem auto;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.05);
}

.filter-group select:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.filter-group select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 2px 4px rgba(37, 99, 235, 0.05);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.05em;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    width: max-content;
}

.trend-up {
    color: var(--success);
    background: var(--success-bg);
}

.trend-down {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.chart-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--slate-50);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: var(--slate-500);
    gap: 1rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--slate-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Administration Styles (Horizontal Menu in blue tones) */
.admin-tabs-container {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    align-items: center;
}

.admin-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.admin-tab-button:hover {
    color: #1d4ed8;
    background-color: rgba(59, 130, 246, 0.05);
}

.admin-tab-button.active {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Sub-panels inside Administration */
.admin-panel {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.admin-panel .subtitle {
    color: var(--slate-500);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    width: max-content;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Drag & Drop Zone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.upload-dropzone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.upload-btn {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.upload-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.upload-btn-secondary {
    background-color: white;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.form-field input, .form-field select {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus, .form-field select:focus {
    border-color: #3b82f6;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.2s ease;
}

/* Última actualización de archivos BI */
.filter-last-update {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    border: 1px dashed #93c5fd;
    margin-left: auto;
    align-self: center;
}

.filter-last-update i {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

.filter-last-update div {
    display: flex;
    flex-direction: column;
}

.filter-last-update .update-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-last-update .update-date {
    font-size: 0.825rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.125rem;
}

.filter-right-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    align-self: center;
}

.filter-right-container .filter-last-update {
    margin-left: 0;
    align-self: stretch;
}

@media (max-width: 768px) {
    .filter-last-update {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: stretch;
        justify-content: center;
    }
    .filter-right-container {
        margin-left: 0;
        align-items: center;
        align-self: stretch;
        margin-top: 1rem;
        gap: 0.75rem;
    }
}


/* Modal Glassmorphism Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6); /* slate-900 with opacity */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Content Container */
.modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wide modal for data-heavy table views */
.modal-content.modal-wide {
    max-width: 1200px;
    width: 95%;
}


@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Modal Header styling */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-header-icon {
    width: 24px;
    height: 24px;
    color: #2563eb; /* Royal blue */
    padding: 0.5rem;
    background-color: #dbeafe;
    border-radius: var(--radius-md);
    box-sizing: content-box;
}

.modal-header-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
}

.modal-header-title p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.125rem;
    font-weight: 500;
}

.modal-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--slate-400);
    padding: 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--slate-700);
    background-color: var(--slate-200);
}

.modal-close-btn i {
    width: 20px;
    height: 20px;
}

/* Modal Body styling */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    background-color: #ffffff;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--slate-500);
    gap: 1rem;
}

.modal-no-data {
    text-align: center;
    color: var(--slate-400);
    padding: 3rem 0;
    font-size: 0.95rem;
}

/* Modal Table custom container */
.modal-table-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: auto; /* changed from hidden to allow scrollbars */
    box-shadow: var(--shadow-sm);
}

.modal-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table-container th {
    background-color: var(--slate-50);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-table-container td {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

/* Compact Table overrides for stock details */
.compact-table th {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.65rem !important;
    white-space: nowrap;
}

.compact-table td {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
}

.compact-table tfoot td {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.70rem !important;
}

.modal-table-container tr:last-child td {
    border-bottom: none;
}

.modal-table-container tr:hover td {
    background-color: #f8fafc;
}

/* Clickable Table Rows */
.clickable-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-row:hover td {
    background-color: #f1f5f9 !important;
}

/* Modal table footer for subtotal */
.modal-table-container tfoot td {
    font-weight: 700;
    background-color: #f8fafc;
    border-top: 2px solid var(--border);
    border-bottom: none;
    color: var(--slate-900);
}

/* Login screen glassmorphism */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 90%);
    overflow: hidden;
    z-index: 10000;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0) 70%);
    top: 15%;
    left: 20%;
    filter: blur(40px);
    pointer-events: none;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: 10%;
    right: 15%;
    filter: blur(40px);
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-logo i {
    width: 48px;
    height: 48px;
    color: #3b82f6;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-sizing: content-box;
}

.login-logo h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.login-logo p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-input-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.login-input-wrapper input:focus {
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-btn {
    background: #2563eb;
    color: white;
    font-weight: 700;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

/* Actions in CRUD tables */
.btn-action-group {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    color: var(--slate-600);
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--slate-50);
}

.btn-action-edit:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.btn-action-delete:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 320px;
    width: 100%;
}

.admin-search-wrapper i {
    position: absolute;
    left: 0.75rem;
    color: var(--slate-400);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.admin-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}



