/* =============================================
   LOGIN SCREEN — Clean Blue
   ============================================= */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0079bf 0%, #026aa7 40%, #01578f 100%);
}

.login-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: loginCardSlideUp 0.4s ease-out;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    display: inline-block;
}

.login-logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #172b4d;
    margin: 0;
}

.login-logo p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #626f86;
    margin: 4px 0 0 0;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #44546f;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-field input {
    width: 100%;
    padding: 10px 14px;
    background: #fafbfc;
    border: 1.5px solid #dfe1e6;
    border-radius: 6px;
    color: #172b4d;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.login-field input:focus {
    border-color: #0079bf;
    box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.15);
}

.login-field input::placeholder {
    color: #8993a4;
}

.login-error {
    background: #ffeceb;
    border: 1px solid #f5c6c2;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    color: #ca3521;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    animation: loginErrorShake 0.3s ease;
}

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

.login-btn {
    width: 100%;
    padding: 10px 20px;
    background: #0079bf;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.login-btn:hover {
    background: #026aa7;
}

.login-btn:active {
    background: #01578f;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   USER INFO IN NAVBAR
   ============================================= */
.user-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.user-role-badge {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-logout {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.25) !important;
}

.btn-admin {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-admin:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */
.admin-create-form {
    background: #fafbfc;
    border: 1px solid var(--border, #dfe1e6);
    border-radius: 8px;
    padding: 20px;
}

.admin-create-form h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #172b4d;
    margin: 0 0 16px 0;
}

.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.15s;
}

.admin-user-row:hover {
    background: #fafbfc;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.admin-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #172b4d;
}

.admin-user-email {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #626f86;
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-role-select {
    padding: 4px 8px;
    border-radius: 4px;
    background: #fafbfc;
    border: 1px solid #dfe1e6;
    color: #172b4d;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.btn-danger-sm {
    background: #ffeceb;
    color: #ca3521;
    border: 1px solid #f5c6c2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger-sm:hover {
    background: #fdd;
}
