:root {
    --primary: #2563EB;
    --secondary: #03254c;
    /* Cambiado a azul profundo para mejor contraste en blanco */
    --accent: #38b2ac;
    --border: #e2e8f0;
    --border-dark: #023d69;
    --gradient: #010017;
    --color-hover: #1d4ed8;
    --color-border: #2563EB;
    --deep-blue: #03254c;
    --white: #ffffff;
    --text-muted: #64748b;
    --text-main: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    min-height: 100vh;
}

/* Centrado para Login */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    /* Fondo suave para resaltar la card */
    background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
    background-size: 32px 32px;
    /* Patrón de puntos sutil */
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(1, 0, 23, 0.1);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    text-align: center;
    letter-spacing: -0.025em;
}

.login-header p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--secondary);
}

.input-control {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Dashboard Styles */
.dashboard-page {
    display: flex;
    overflow: hidden;
    background-color: #f8fafc;
    color: var(--text-main);
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: #03254c;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.35rem;
    /* Ajustado para el nombre largo */
    font-weight: 800;
    color: #06FFFF;
    margin-bottom: 3rem;
    padding-left: 1rem;
    line-height: 1.2;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: #ffffff;
    border-left: 4px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2.5rem;
    background-color: #ffffff;
}

.logout-btn {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.stat-card {
    background: #ffffff;
    border: 1px solid rgba(1, 0, 23, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(1, 0, 23, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(1, 0, 23, 0.1);
}

.stat-card h3 {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gradient);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.table-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(1, 0, 23, 0.08);
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 4px 20px -2px rgba(1, 0, 23, 0.05);
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(1, 0, 23, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfdfe;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: #f8fafc;
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.filter-input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Button System */
.btn-assign {
    background: var(--primary);
    color: white;
    border: 1.5px solid var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-assign:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background: #ffffff !important;
    color: var(--gradient) !important;
    border: 1.5px solid rgba(1, 0, 23, 0.1) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #f8fafc !important;
    border-color: rgba(1, 0, 23, 0.2) !important;
    transform: translateY(-2px);
}

.btn-danger-light {
    background: #ffffff !important;
    color: #ef4444 !important;
    border: 1.5px solid rgba(239, 68, 68, 0.1) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-danger-light:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.alert ul {
    list-style: none;
    margin: 0;
}