/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f39c12;
    --accent-color: #27ae60;
    --danger-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(44, 90, 160, 0.1);
    --shadow-medium: 0 5px 20px rgba(44, 90, 160, 0.15);
    --shadow-heavy: 0 10px 30px rgba(44, 90, 160, 0.2);
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    --gradient-secondary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
    min-height: 100vh;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    /* Improve touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility Improvements */

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: -100px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
}

.skip-link:focus {
    top: 6px;
    left: 6px;
    opacity: 1;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Error messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    line-height: 1.4;
}

.error-message.show {
    display: block;
}

.form-group input[aria-invalid="true"] {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
    *:focus {
        outline: 3px solid #000;
        outline-offset: 2px;
    }
}

/* Ensure interactive elements have proper focus states */
button:focus,
input:focus,
.system-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default focus outline and add custom one */
button:focus-visible,
input:focus-visible,
.system-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Keyboard navigation support */
.system-card[tabindex="0"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transform: translateY(-2px);
}

/* Improve color contrast for better accessibility */
.text-light {
    color: #5a6c7d;
    /* Improved contrast ratio */
}

/* Loading states with proper ARIA support */
[aria-busy="true"] {
    cursor: wait;
}

/* Notification accessibility improvements */
.notification[role="alert"] {
    border-left-width: 4px;
    border-left-style: solid;
}

.notification.success[role="alert"] {
    border-left-color: var(--accent-color);
}

.notification.error[role="alert"] {
    border-left-color: var(--danger-color);
}

.notification.warning[role="alert"] {
    border-left-color: var(--secondary-color);
}

.notification.info[role="alert"] {
    border-left-color: var(--primary-color);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.90) 50%,
        rgba(51, 65, 85, 0.85) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding-bottom: 20px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.header::after {
    display: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.logo {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1001;
    margin: -3px 0 -55px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.logo:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3) !important;
    transform: scale(1.02);
}

.school-info {
    margin-top: 10px;
    transform: translateY(10px);
}

.school-info h1 {
    font-size: 1.6rem;
    color: #f1f5f9 !important;
    margin-bottom: 0.3rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    letter-spacing: -0.02em;
    line-height: 0.8;
}

.school-info p {
    color: #cbd5e1 !important;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    font-weight: 600;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    line-height: 0.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.54rem;
    transition: opacity 300ms ease-in-out;
    color: #1e3a8a;
}

.logout-btn {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.8) 0%, 
        rgba(220, 38, 38, 0.8) 100%) !important;
    color: #fef2f2 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9) 0%, 
        rgba(220, 38, 38, 0.9) 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* Login Section */
.login-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    padding: 2rem;
    transition: opacity 300ms ease-in-out;
}

.login-section.hidden {
    display: none !important;
}

.dashboard-section.hidden {
    display: none !important;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 1;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 585px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    max-width: 585px !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}



/* Dashboard Section */
.dashboard-section {
    padding: 2rem;
    min-height: calc(100vh - 100px);
    transition: opacity 300ms ease-in-out;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.welcome-message h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.no-systems-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-top: 2rem;
}

.no-systems-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-systems-message h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-systems-message p {
    color: var(--text-light);
    font-size: 1rem;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.system-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.system-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.system-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-medium);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.system-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.system-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.access-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.access-btn:hover {
    transform: translateY(-2px);
}

.system-card.disabled .access-btn {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.card-features {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-badge {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid #e1e8ed;
}

.access-warning {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    color: #856404;
    font-size: 0.8rem;
    text-align: center;
}

.system-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.system-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.system-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Loading states for various elements */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* Button loading states */
.login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn.loading .loading-spinner {
    margin-right: 0.5rem;
}

/* System card loading states */
.system-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.system-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Inline loading states */
.inline-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.inline-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-top-color: var(--primary-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for loading elements */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Skeleton loading animation */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
}

.loading-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Enhanced Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    position: relative;
    border-left: 4px solid var(--primary-color);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.notification.slide-out {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
}

.notification.success {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
}

.notification.error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(192, 57, 43, 0.05) 100%);
}

.notification.warning {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, rgba(230, 126, 34, 0.05) 100%);
}

.notification.info {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(44, 90, 160, 0.25);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1rem;
    line-height: 1.3;
}

.notification-message {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-action-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-action-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.notification-action-btn .action-icon {
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: -0.2rem;
    margin-right: -0.3rem;
}

.notification-close:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

/* Enhanced animations */
@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 1rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    to {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Notification progress bar (for future use) */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
    transform-origin: left;
    animation: progressBar linear;
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Notification stacking effect */
.notification:nth-child(1) {
    z-index: 10005;
}

.notification:nth-child(2) {
    z-index: 10004;
    transform: translateX(0) scale(0.98);
    opacity: 0.9;
}

.notification:nth-child(3) {
    z-index: 10003;
    transform: translateX(0) scale(0.96);
    opacity: 0.8;
}

.notification:nth-child(4) {
    z-index: 10002;
    transform: translateX(0) scale(0.94);
    opacity: 0.7;
}

.notification:nth-child(5) {
    z-index: 10001;
    transform: translateX(0) scale(0.92);
    opacity: 0.6;
}

/* Accessibility improvements */
.notification:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: none;
        animation: none;
    }

    .notification.slide-in {
        transform: translateX(0);
        opacity: 1;
    }

    .notification.slide-out {
        display: none;
    }
}

/* Enhanced Responsive Design - Matching Gatepass System */

/* Tablet and Small Desktop (768px and below) */
@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem 0 1rem;
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .school-info {
        margin-top: 2px;
        transform: translateY(5px);
    }

    .school-info h1 {
        font-size: 1.3rem;
        line-height: 1.2;
        font-weight: 900;
        color: #1e3a8a !important;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    .school-info p {
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151 !important;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    }

    .user-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.54rem;
    }

    .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Login Section Responsive */
    .login-section {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }

    .login-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 12px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-header p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .login-btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Dashboard Section Responsive */
    .dashboard-section {
        padding: 1rem;
    }

    .dashboard-container {
        max-width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .welcome-message p {
        font-size: 1rem;
    }

    .user-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 100px;
        padding: 1rem 1.25rem;
    }

    /* System Cards Grid */
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .system-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .card-icon {
        font-size: 2.8rem;
        margin-bottom: 1.25rem;
    }

    .system-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .system-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    .access-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    /* Notification System Responsive */
    .notification-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 0.75rem;
        padding: 1rem 1.25rem;
        border-radius: 10px;
    }

    .notification-title {
        font-size: 0.95rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }

    /* No Systems Message */
    .no-systems-message {
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }

    .no-systems-icon {
        font-size: 3.5rem;
    }

    .no-systems-message h3 {
        font-size: 1.4rem;
    }

    .no-systems-message p {
        font-size: 0.95rem;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {

    /* Header Mobile Optimization */
    .header-container {
        padding: 0.5rem 0.5rem;
        gap: 0.6rem;
    }

    .logo {
        width: 72px;
        height: 72px;
        margin: -6px 0 -4px 0;
        border: 2px solid #ffffff;
    }

    .school-info {
        margin-top: -2px;
        transform: translateY(5px);
    }

    .school-info h1 {
        font-size: 1.1rem;
        line-height: 1.1;
        font-weight: 900;
        color: #1e3a8a !important;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    .school-info p {
        font-size: 0.85rem;
        font-weight: 600;
        color: #374151 !important;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    }

    .user-info {
        gap: 0.5rem;
    }

    .logout-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    /* Login Section Mobile */
    .login-section {
        padding: 0.5rem;
        min-height: calc(100vh - 120px);
    }

    .login-container {
        padding: 0 0.5rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .login-header {
        margin-bottom: 1.5rem;
    }

    .login-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .login-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .login-header p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .login-btn {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 8px;
    }



    /* Dashboard Section Mobile */
    .dashboard-section {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-header {
        padding: 1.25rem 0.75rem;
        gap: 1.25rem;
        border-radius: 10px;
    }

    .welcome-message h2 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .welcome-message p {
        font-size: 0.9rem;
    }

    .user-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    /* System Cards Mobile */
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 100%;
    }

    .system-card {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .system-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .system-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .access-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    /* Notification System Mobile */
    .notification-container {
        left: 5px;
        right: 5px;
        top: 5px;
    }

    .notification {
        margin-bottom: 0.5rem;
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }

    .notification-icon {
        font-size: 1.25rem;
    }

    .notification-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .notification-message {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .notification-close {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }

    .notification-actions {
        margin-top: 0.5rem;
        gap: 0.4rem;
    }

    .notification-action-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }

    /* No Systems Message Mobile */
    .no-systems-message {
        padding: 2.5rem 1rem;
        border-radius: 10px;
    }

    .no-systems-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .no-systems-message h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .no-systems-message p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Loading Overlay Mobile */
    .loading-overlay {
        padding: 1rem;
    }

    .loading-content {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .loading-content p {
        font-size: 1rem;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .header-container {
        padding: 0.25rem 0.25rem 0 0.25rem;
    }

    .logo {
        width: 64px;
        height: 64px;
        margin: -5px 0 -2px 0;
        border: 2px solid #ffffff;
    }

    .school-info {
        margin-top: -4px;
        transform: translateY(5px);
    }

    .school-info h1 {
        font-size: 0.95rem;
        font-weight: 900;
        color: #1e3a8a !important;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    .school-info p {
        font-size: 0.75rem;
        font-weight: 600;
        color: #374151 !important;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    }

    .login-card {
        padding: 1.25rem 0.75rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .dashboard-header {
        padding: 1rem 0.5rem;
    }

    .welcome-message h2 {
        font-size: 1.3rem;
    }

    .system-card {
        padding: 1.25rem 0.75rem;
    }

    .notification {
        padding: 0.75rem 0.875rem;
    }
}

/* Touch-Friendly Enhancements */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets for mobile devices */
    .login-btn,
    .access-btn,
    .logout-btn {
        min-height: 44px;
        /* iOS recommended minimum */
        padding: 12px 16px;
    }

    .form-group input {
        min-height: 44px;
        padding: 12px 16px;
    }

    .notification-close {
        min-width: 44px;
        min-height: 44px;
    }

    .notification-action-btn {
        min-height: 36px;
        padding: 8px 12px;
    }

    /* Remove hover effects on touch devices */
    .system-card:hover,
    .login-btn:hover,
    .access-btn:hover,
    .logout-btn:hover {
        transform: none;
    }

    /* Add active states for better touch feedback */
    .login-btn:active,
    .access-btn:active,
    .logout-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .system-card:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .login-section {
        min-height: calc(100vh - 80px);
        padding: 0.5rem;
    }

    .login-card {
        padding: 1.5rem;
        max-width: 585px;
        margin: 0 auto;
    }

    .dashboard-section {
        padding: 0.75rem;
    }

    .dashboard-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .systems-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .notification {
        transition: none;
    }

    .notification.slide-in {
        transform: translateX(0);
        opacity: 1;
    }

    .notification.slide-out {
        display: none;
    }

    .system-card:hover,
    .login-btn:hover,
    .access-btn:hover {
        transform: none;
    }
}

/* Dark Mode Support (disabled for now to maintain light theme) */
/* 
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e2e8f0;
        --text-light: #a0aec0;
        --background-light: #1a202c;
        --white: #2d3748;
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .login-section::before {
        opacity: 0.3;
    }
}
*/

/* Cross-Browser Compatibility */

/* Flexbox fallbacks for older browsers */
.header-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.logo-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.user-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Grid fallbacks for older browsers */
.systems-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* CSS Grid fallback using flexbox */
@supports not (display: grid) {
    .systems-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .system-card {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 300px;
        flex: 1 1 300px;
        max-width: 400px;
    }
}

/* Transform fallbacks */
.login-btn:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.system-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
}

/* Gradient fallbacks for older browsers */
.login-section {
    background: var(--primary-color);
    /* Fallback */
    background: -webkit-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: -o-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
}

.login-btn {
    background: var(--primary-color);
    /* Fallback */
    background: -webkit-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: -o-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
}

.access-btn {
    background: var(--primary-color);
    /* Fallback */
    background: -webkit-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: -o-linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
}

/* Box shadow fallbacks */
.login-card {
    -webkit-box-shadow: var(--shadow-heavy);
    -moz-box-shadow: var(--shadow-heavy);
    box-shadow: var(--shadow-heavy);
}

.system-card {
    -webkit-box-shadow: var(--shadow-medium);
    -moz-box-shadow: var(--shadow-medium);
    box-shadow: var(--shadow-medium);
}

/* Border radius fallbacks */
.login-card {
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.system-card {
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

/* Emoji Fallbacks for Older Systems */
.login-icon::after {
    content: "";
}

.card-icon::after {
    content: "";
}

.no-systems-icon::after {
    content: "";
}

/* Fallback for systems without emoji support */
@supports not (font-family: "Apple Color Emoji") {
    .login-icon::after {
        content: " [LOCK]";
        font-weight: bold;
        color: var(--primary-color);
    }

    .card-icon::after {
        content: " [SYSTEM]";
        font-weight: bold;
        color: var(--primary-color);
    }

    .no-systems-icon::after {
        content: " [LOCKED]";
        font-weight: bold;
        color: var(--text-light);
    }
}

/* Internet Explorer specific fixes */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .header-container {
        display: -ms-flexbox;
    }

    .systems-grid {
        display: -ms-grid;
    }

    .system-card {
        -ms-grid-column-span: 1;
    }
}

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
    .form-group input {
        -webkit-appearance: none;
        appearance: none;
    }

    .login-btn,
    .access-btn,
    .logout-btn {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .form-group input {
        -moz-appearance: none;
        appearance: none;
    }

    .login-btn,
    .access-btn,
    .logout-btn {
        -moz-appearance: none;
        appearance: none;
    }
}

/* Keyboard Navigation Improvements */
.system-card {
    cursor: pointer;
}

.system-card[tabindex="0"] {
    position: relative;
}

.system-card[tabindex="0"]:focus::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--primary-color);
    border-radius: 17px;
    pointer-events: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .login-card,
    .system-card {
        border: 2px solid;
    }

    .login-btn,
    .access-btn,
    .logout-btn {
        border: 2px solid;
    }

    .notification {
        border: 2px solid;
    }
}

/* Print Styles */
@media print {

    .header,
    .notification-container,
    .loading-overlay {
        display: none !important;
    }

    .login-section,
    .dashboard-section {
        background: white !important;
        box-shadow: none !important;
    }

    .system-card {
        break-inside: avoid;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    }

    /* Ensure text is readable when printed */
    * {
        color: black !important;
        background: white !important;
    }

    .login-btn,
    .access-btn {
        border: 2px solid black !important;
    }
}

/* System Cards Styles */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.system-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-card:hover::before {
    opacity: 1;
}

.system-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.system-info h3 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.system-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.system-actions {
    text-align: center;
}

.access-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.access-btn:active {
    transform: translateY(0);
}

/* No Systems Message */
.no-systems-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-systems-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-systems-message h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 12px;
}

.no-systems-message p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* Dashboard Header Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-message h2 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-message p {
    color: var(--text-light);
    font-size: 16px;
}

.user-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    min-width: 120px;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design for System Cards */
@media (max-width: 768px) {
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .user-stats {
        justify-content: space-between;
    }

    .stat-item {
        flex: 1;
        min-width: auto;
        text-align: center;
    }
}

/* Fee Tracking System Card Styles */
.fee-tracking-card {
    position: relative;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.02) 0%, rgba(52, 152, 219, 0.02) 100%);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.fee-tracking-card::before {
    background: linear-gradient(90deg, #2c5aa0 0%, #f39c12 50%, #27ae60 100%);
    opacity: 1;
}

.fee-tracking-card:hover {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.fee-tracking-icon {
    position: relative;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 52px;
    margin-bottom: 20px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

.fee-tracking-card .card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.fee-tracking-card .feature-badge {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    color: var(--primary-color);
    border: 1px solid rgba(44, 90, 160, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.fee-tracking-card .feature-badge:hover {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.15) 0%, rgba(52, 152, 219, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.fee-tracking-card .access-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #f39c12 100%);
    position: relative;
    overflow: hidden;
}

.fee-tracking-card .access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.fee-tracking-card .access-btn:hover::before {
    left: 100%;
}

.fee-tracking-card .access-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #e67e22 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

/* General Feature Badges for All Cards */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.feature-badge {
    background: var(--background-light);
    color: var(--text-dark);
    border: 1px solid #e1e8ed;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.feature-badge:hover {
    background: #e9ecef;
    border-color: var(--text-light);
    transform: translateY(-1px);
}

/* Card Icon Enhancements */
.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.system-card:hover .card-icon {
    transform: scale(1.1);
}

.fee-tracking-card:hover .fee-tracking-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.4));
}

/* Mobile Responsive Adjustments for Fee Tracking Card */
@media (max-width: 768px) {
    .fee-tracking-card .card-features {
        justify-content: center;
    }
    
    .fee-tracking-card .feature-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .fee-tracking-icon {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .fee-tracking-card .feature-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .fee-tracking-icon {
        font-size: 40px;
    }
}

/* Animation for Fee Tracking Card Loading */
@keyframes feeTrackingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fee-tracking-card.loading {
    animation: feeTrackingPulse 1.5s ease-in-out infinite;
}

.fee-tracking-card.loading .access-btn {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    cursor: not-allowed;
}

.fee-tracking-card.loading .access-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Accessibility Improvements for Fee Tracking Card */
.fee-tracking-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.fee-tracking-card[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.08) 0%, rgba(52, 152, 219, 0.08) 100%);
}

/* High Contrast Mode Support for Fee Tracking */
@media (prefers-contrast: high) {
    .fee-tracking-card {
        border: 2px solid var(--primary-color);
    }
    
    .fee-tracking-card .feature-badge {
        border: 2px solid var(--primary-color);
        background: var(--white);
    }
    
    .fee-tracking-icon {
        -webkit-text-fill-color: var(--primary-color);
        color: var(--primary-color);
    }
}

/* Reduced Motion Support for Fee Tracking Card */
@media (prefers-reduced-motion: reduce) {
    .fee-tracking-card,
    .fee-tracking-card .card-icon,
    .fee-tracking-card .feature-badge,
    .fee-tracking-card .access-btn {
        transition: none;
        animation: none;
    }
    
    .fee-tracking-card:hover .card-icon,
    .fee-tracking-card:hover .access-btn {
        transform: none;
    }
}/* 
========================================
   ENHANCED UNIVERSAL HEADER THEME
   ======================================== */

/* Update header buttons for dark theme */
.header-btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

/* Back to Portal Button - Dark theme */
.back-btn {
    background: linear-gradient(135deg, 
        rgba(71, 85, 105, 0.8) 0%, 
        rgba(51, 65, 85, 0.8) 100%) !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.back-btn:hover {
    background: linear-gradient(135deg, 
        rgba(71, 85, 105, 0.9) 0%, 
        rgba(51, 65, 85, 0.9) 100%) !important;
    color: #f1f5f9 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Dev Mode Indicator - Dark theme */
.dev-indicator-badge {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(37, 99, 235, 0.8) 100%) !important;
    color: #dbeafe !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: default;
}

/* Update user info text color */
#userName {
    color: #e2e8f0 !important;
    font-weight: 500;
}

/* Ensure header text is readable */
.user-info {
    color: #e2e8f0 !important;
}

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Add glow effect to active elements */
.header-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Add subtle animation to header elements */
.header-container > * {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for dark header theme */
@media (max-width: 768px) {
    .header {
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(30, 41, 59, 0.95) 100%) !important;
    }
    
    .header-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .school-info h1 {
        font-size: 1.3rem !important;
    }
    
    .school-info p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .header-btn span:not([aria-hidden="true"]) {
        display: none;
    }
    
    .school-info h1 {
        font-size: 1.1rem !important;
    }
    
    .school-info p {
        font-size: 0.85rem !important;
    }
    
    .dev-indicator-badge {
        font-size: 0;
    }
    
    .dev-indicator-badge::after {
        content: "Dev";
        font-size: 0.625rem;
    }
}

@media (max-width: 360px) {
    .school-info h1 {
        font-size: 0.95rem !important;
    }
    
    .school-info p {
        font-size: 0.75rem !important;
    }
}

/* Ensure proper layering */
.header-container {
    position: relative;
    z-index: 1;
}

/* Pulse animation for dev indicator */
.indicator-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}/* =======
=================================
   DARK THEME FOR OFFICE PORTAL
   ======================================== */

/* Update body to match fee tracking dark theme */
body {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 41, 59, 0.95) 100%) !important;
    color: #e2e8f0 !important;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* ========================================
   LOGIN SECTION DARK THEME
   ======================================== */

.login-section {
    background: transparent !important;
    min-height: calc(100vh - 120px);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 2.55rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    max-width: 585px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.login-header h2 {
    color: #f1f5f9 !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-header p {
    color: #cbd5e1 !important;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Form styling */
.form-group label {
    color: #e2e8f0 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(203, 213, 225, 0.6) !important;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    outline: none;
}

/* Login button */
.login-btn {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(79, 70, 229, 0.8) 100%) !important;
    color: #f0f4ff !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.9) 0%, 
        rgba(79, 70, 229, 0.9) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
}



/* ========================================
   DASHBOARD SECTION DARK THEME
   ======================================== */

.dashboard-section {
    background: transparent !important;
    min-height: calc(100vh - 120px);
    padding: 2rem;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-header h2 {
    color: #f1f5f9 !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dashboard-header p {
    color: #cbd5e1 !important;
    font-size: 1.125rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.user-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: #f1f5f9 !important;
    font-size: 1.25rem;
    font-weight: 700;
}

/* System cards */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.system-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-card:hover::before {
    opacity: 1;
}

.system-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2) !important;
}

.system-card > * {
    position: relative;
    z-index: 1;
}

.system-card h3 {
    color: #f1f5f9 !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.system-card p {
    color: #cbd5e1 !important;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.system-card .system-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Access button */
.access-btn {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.8) 0%, 
        rgba(22, 163, 74, 0.8) 100%) !important;
    color: #f0fdf4 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 4px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    margin-top: auto !important;
    align-self: stretch !important;
}

.access-btn:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(22, 163, 74, 0.9) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* No systems message */
.no-systems-message {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

.no-systems-message h3 {
    color: #f1f5f9 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-systems-message p {
    color: #cbd5e1 !important;
    font-size: 1rem;
}

.no-systems-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ========================================
   NOTIFICATION SYSTEM DARK THEME
   ======================================== */

.notification {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.4) !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.notification.warning {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

/* ========================================
   LOADING OVERLAY DARK THEME
   ======================================== */

.loading-overlay {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

.loading-content {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.loading-content p {
    color: #f1f5f9 !important;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .login-card {
        padding: 1.7rem !important;
        margin: 1rem;
    }
    
    .dashboard-header {
        padding: 1.5rem !important;
    }
    
    .dashboard-header h2 {
        font-size: 2rem !important;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .system-card {
        padding: 1.5rem !important;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.275rem !important;
    }
    
    .dashboard-header h2 {
        font-size: 1.75rem !important;
    }
    
    .system-card h3 {
        font-size: 1.25rem !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card,
.dashboard-header,
.system-card {
    animation: fadeInUp 0.6s ease-out;
}

.system-card:nth-child(2) {
    animation-delay: 0.1s;
}

.system-card:nth-child(3) {
    animation-delay: 0.2s;
}

.system-card:nth-child(4) {
    animation-delay: 0.3s;
}/* 
========================================
   FIX WHITE BACKGROUNDS - FORCE DARK THEME
   ======================================== */

/* Force dark theme on all white/light backgrounds */
.bg-white,
.bg-gray-50,
.bg-gray-100,
.bg-gray-200,
.bg-slate-50,
.bg-slate-100,
.bg-slate-200,
*[style*="background-color: white"],
*[style*="background-color: #fff"],
*[style*="background-color: #ffffff"],
*[style*="background: white"],
*[style*="background: #fff"],
*[style*="background: #ffffff"] {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

/* Specific fixes for user stats and system elements */
.user-stats,
.stat-item,
.systems-grid,
.system-card,
.dashboard-header,
.dashboard-container > *,
.login-container > *,
.login-card > * {
    background: transparent !important;
    color: inherit !important;
}

/* Force dark text colors */
.text-gray-900,
.text-gray-800,
.text-gray-700,
.text-black,
*[style*="color: black"],
*[style*="color: #000"],
*[style*="color: #000000"] {
    color: #f1f5f9 !important;
}

.text-gray-600,
.text-gray-500,
.text-gray-400 {
    color: #cbd5e1 !important;
}

/* Override any inline styles that might be setting white backgrounds */
div[style*="background"],
span[style*="background"],
p[style*="background"] {
    background: transparent !important;
}

/* Ensure all child elements inherit dark theme */
.dashboard-section *,
.login-section * {
    color: inherit;
}

/* Force dark borders */
.border-gray-200,
.border-gray-300,
.border-gray-400,
*[style*="border-color: #"] {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Additional specific overrides for common white elements */
.card,
.panel,
.box,
.container,
.wrapper {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

/* Override any CSS framework defaults */
.bg-light,
.bg-secondary,
.bg-info.bg-light {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

/* Ensure proper text contrast */
h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9 !important;
}

p, span, div, label {
    color: #e2e8f0 !important;
}

/* Force dark theme on dynamically generated content */
[class*="bg-white"],
[class*="bg-gray-"],
[class*="bg-slate-"] {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

/* Specific targeting for roles and systems display */
#userRole,
#systemCount,
.stat-value,
.stat-label {
    background: transparent !important;
    color: #f1f5f9 !important;
}

/* Override any JavaScript-set styles */
*[style] {
    background-color: transparent !important;
}

/* Ensure glassmorphism effect on all containers */
.dashboard-header,
.user-stats,
.stat-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .user-stats {
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }
}/* 
Card content wrapper to maintain proper spacing */
.system-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Ensure equal height for all cards in the grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    align-items: stretch !important;
}

/* Make sure all cards have the same height */
.system-card {
    height: 100% !important;
}

/* Reduce login box overall size by 15% */
.login-card {
    max-width: 497px !important; /* 585px reduced by 15% = 497px */
    padding: 1.7rem !important; /* 2rem reduced by 15% = 1.7rem */
}

.login-container {
    max-width: 497px !important; /* Match the card width */
}

/* Proportionally reduce internal elements by 15% */
.login-header h2 {
    font-size: 1.7rem !important; /* 2rem reduced by 15% = 1.7rem */
}

.login-header p {
    font-size: 0.85rem !important; /* 1rem reduced by 15% = 0.85rem */
}

.login-icon {
    font-size: 2.55rem !important; /* 3rem reduced by 15% = 2.55rem */
}

.form-group input {
    padding: 0.85rem !important; /* 1rem reduced by 15% = 0.85rem */
    font-size: 0.85rem !important; /* 1rem reduced by 15% = 0.85rem */
}

.login-btn {
    padding: 0.85rem 1.7rem !important; /* 1rem 2rem reduced by 15% = 0.85rem 1.7rem */
    font-size: 0.85rem !important; /* 1rem reduced by 15% = 0.85rem */
}

.form-group label {
    font-size: 0.765rem !important; /* 0.9rem reduced by 15% = 0.765rem */
}

