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

/* Global Custom Scrollbar for Entire Project */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 86, 179, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 86, 179, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.3);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 86, 179, 0.1);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) rgba(0, 86, 179, 0.1);
}

/* Improved Typography Scale */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Typography Hierarchy */
h1 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
h2 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.3px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.2px; }
h4 { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.1px; }
h5 { font-size: 16px; font-weight: 500; line-height: 1.5; }
h6 { font-size: 14px; font-weight: 500; line-height: 1.5; }

/* Text sizes */
.text-xs { font-size: 12px; line-height: 1.5; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.6; }
.text-lg { font-size: 18px; line-height: 1.6; }
.text-xl { font-size: 20px; line-height: 1.5; }
.text-2xl { font-size: 24px; line-height: 1.4; }

/* Font weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.portal-container {
    width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Header Styles - Compact Design */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 15px 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #e9ecef;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 220px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.portal-title {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-title h2 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Header Styles (for updated header.php) */
.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 15px 30px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #e9ecef;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-width: 220px;
}

.header-logo-section .logo {
    width: 200px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo-section .logo:hover {
    transform: scale(1.02);
}

.header-portal-title {
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.header-portal-title h2 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 15px 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 86, 179, 0.1);
    border-left: 3px solid #0056b3;
}

.header-nav-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #004085 0%, #0056b3 100%);
    transform: scale(1.05);
}

.sidebar-toggle .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.sidebar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 3px);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-3px, -3px);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-menu a:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
}

.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid rgba(0, 86, 179, 0.1);
    overflow: hidden;
}

.mobile-nav-dropdown.show {
    display: block;
}

/* Active states for mobile menu */
.mobile-nav-dropdown.active {
    display: block;
}

.mobile-menu-toggle.active {
    background-color: rgba(0, 86, 179, 0.1);
}

.mobile-nav-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-nav-dropdown a:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
}

.mobile-nav-dropdown a:last-child {
    border-bottom: none;
}

/* Additional header component styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(0, 123, 255, 0.03) 100%);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 86, 179, 0.15);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
}

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

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    position: relative;
    padding-left: 28px;
}

.user-name::before {
    content: '👤';
    position: absolute;
    left: 0;
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.user-actions {
    display: flex;
    align-items: center;
}

.header-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.header-btn:hover::before {
    left: 100%;
}

.header-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.logout-btn::after {
    content: '🚪';
    margin-left: 4px;
}

.logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.guest-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-link:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
}

.login-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.login-link:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
}

/* Mobile navigation styles */
.mobile-user-info {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mobile-user-details {
    text-align: center;
}

.mobile-user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: block;
}

.mobile-nav-links {
    padding: 10px 0;
}

.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mobile-nav-link:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link.logout {
    color: #dc3545;
    font-weight: 500;
}

.mobile-nav-link.logout:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

/* Hamburger menu animation */
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Modal styles for portal info */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

.portal-info-content {
    color: #2c3e50;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.info-section p {
    line-height: 1.6;
    margin: 0;
}



@media (max-width: 480px) {
    .footer-bottom {
        padding: 6px 8px;
    }

    .footer-info {
        gap: 4px;
    }

    .footer-brand {
        font-size: 14px;
    }

    .footer-details {
        font-size: 12px;
    }

    .footer-tagline {
        font-size: 10px;
    }
}

/* Mobile responsive for modern header */
@media (max-width: 768px) {
    .modern-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .header-logo-section .logo {
        width: 200px;
        height: 80px;
    }

    .header-portal-title {
        margin: 0;
        text-align: center;
    }

    .header-portal-title h2 {
        font-size: 18px;
        padding: 12px 20px;
    }

    .header-nav-section {
        width: 100%;
        justify-content: space-between;
    }

    .sidebar-toggle {
        display: flex;
    }

    .user-menu {
        display: none; /* Hide user menu on mobile, sidebar handles navigation */
    }
}

@media (max-width: 480px) {
    .modern-header {
        padding: 15px;
    }

    .header-logo-section .logo {
        width: 150px;
        height: 60px;
    }

    .header-portal-title h2 {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 20px 0;
}

/* Login Section - Compact Size */
.login-section {
    flex: 0 0 420px;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-right: 20px;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.login-form {
    background: transparent;
}

/* Login Header Styling */
.login-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.login-icon {
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.login-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Enhanced Form Group for Login */
.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .form-group input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    background-color: #fff;
    font-size: 14px;
    outline: none;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-group input::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.login-form .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* Login Footer */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.login-help {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* Enhanced Alert for Login Page */
.login-form .alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.3s ease;
}

.login-form .alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.login-form .alert svg {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input {
    width: 100%;
    height: 42px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    outline: none;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
    align-items: center;
}

/* Full width button for single button layouts */
.full-width-btn {
    width: 100% !important;
    flex: none !important;
}

.login-btn,
.forgot-password-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    padding: 14px 28px;
    font-size: 15px;
    min-width: 100%;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.login-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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}

.forgot-password-btn {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
    padding: 10px 20px;
    font-size: 12px;
    min-width: 130px;
}

.forgot-password-btn:hover {
    background: linear-gradient(135deg, #545b62, #383d41);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* Statistics Section - Dynamic Size */
.stats-section {
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Stats Header */
.stats-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.stats-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Individual Stat Card */
.stat-card-login {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-login.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat-card-login:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.15);
    border-color: #007bff;
}

/* Pulse Effect Background */
.stat-card-pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    animation: pulse-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-login:hover .stat-card-pulse {
    opacity: 1;
}

@keyframes pulse-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Stat Card Icon */
.stat-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-login:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon Color Schemes */
.scholars-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.guides-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.2);
}

.allocations-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #388e3c;
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.2);
}

.pending-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

.departments-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #c2185b;
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
}

.activity-icon {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #00796b;
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.2);
}

/* Stat Card Content */
.stat-card-content {
    position: relative;
    z-index: 1;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    color: #0056b3;
    margin: 0 0 8px 0;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 86, 179, 0.1);
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-label {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* System Status Indicator */
.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.status-indicator.active {
    background: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Stats Section */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card-login {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 32px;
    }
    
    .stat-card-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card-login {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 15px;
    }
    
    .stat-card-value {
        font-size: 28px;
    }
    
    .stat-card-label {
        font-size: 12px;
    }
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Better Spacing System */
.spacing-xs { margin: 4px; padding: 4px; }
.spacing-sm { margin: 8px; padding: 8px; }
.spacing-md { margin: 16px; padding: 16px; }
.spacing-lg { margin: 24px; padding: 24px; }
.spacing-xl { margin: 32px; padding: 32px; }
.spacing-2xl { margin: 48px; padding: 48px; }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }
.m-6 { margin: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }

/* Extended Color Palette */
:root {
    /* Primary Blues */
    --primary-50: #e3f2fd;
    --primary-100: #bbdefb;
    --primary-200: #90caf9;
    --primary-300: #64b5f6;
    --primary-400: #42a5f5;
    --primary-500: #2196f3;
    --primary-600: #1e88e5;
    --primary-700: #1976d2;
    --primary-800: #1565c0;
    --primary-900: #0d47a1;

    /* Status Colors */
    --success-50: #e8f5e8;
    --success-100: #c8e6c9;
    --success-500: #4caf50;
    --success-600: #43a047;
    --success-700: #388e3c;

    --warning-50: #fff8e1;
    --warning-100: #ffecb3;
    --warning-500: #ff9800;
    --warning-600: #fb8c00;
    --warning-700: #f57c00;

    --error-50: #ffebee;
    --error-100: #ffcdd2;
    --error-500: #f44336;
    --error-600: #e53935;
    --error-700: #d32f2f;

    --info-50: #e3f2fd;
    --info-100: #b3e5fc;
    --info-500: #2196f3;
    --info-600: #1e88e5;
    --info-700: #1976d2;

    /* Neutral Grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    font-weight: normal;
}

/* Enhanced Stat Card Styles for Dashboard Modules */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0056b3 0%, #007bff 50%, #0056b3 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 123, 255, 0.2);
}

.stat-card h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.stat-card p {
    font-size: 32px;
    font-weight: 800;
    color: #0056b3;
    margin: 0;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 86, 179, 0.1);
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* Stats Grid Layout Enhancement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive Stats Grid */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        min-height: 120px;
    }

    .stat-card p {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
        min-height: 100px;
    }

    .stat-card p {
        font-size: 24px;
    }

    .stat-card h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

.required {
    color: #d32f2f;
}

.chart-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.chart-placeholder canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.chart-image {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
}

/* Form-specific styles */
.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0, 86, 179, 0.1);
    margin: 0;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0056b3 0%, #007bff 50%, #0056b3 100%);
}

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

.form-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    letter-spacing: 0.3px;
    text-decoration: none;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
    color: #495057;
    letter-spacing: 0.3px;
}

.registration-form {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 40px;
}

.form-table tr {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 86, 179, 0.08);
}

.form-table tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.form-table td {
    padding: 20px 18px;
    vertical-align: top;
    border-right: 1px solid rgba(0, 86, 179, 0.06);
}

.form-table td:last-child {
    border-right: none;
}

.field-number {
    width: 45px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: #ffffff !important;
    font-size: 16px;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 86, 179, 0.3);
}

.field-label {
    width: 40%;
    font-size: 15px;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 20px 18px;
    border-radius: 0;
}

.field-input {
    width: auto;
    padding-left: 20px;
}

.field-input input[type="text"],
.field-input input[type="number"],
.field-input input[type="date"],
.field-input input[type="email"],
.field-input select,
.field-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.field-input input:focus,
.field-input select:focus,
.field-input textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15), 0 4px 8px rgba(0, 86, 179, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.field-input textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.field-input input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.field-input input[type="file"]:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-1px);
}

.field-input select {
    height: 48px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.note {
    color: #dc3545;
    font-style: italic;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    display: block;
    letter-spacing: 0.2px;
}

.conditional-text {
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.add-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.collaborator-group,
.copi-group {
    margin: 15px 0;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.collaborator-group h4,
.copi-group h4 {
    margin-bottom: 12px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.form-actions {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
    margin-top: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Button hierarchy structure */
.primary-actions {
    margin-bottom: 20px;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Primary submit button - highly visible */
.primary-submit-btn {
    font-size: 18px !important;
    padding: 16px 40px !important;
    font-weight: 600 !important;
    min-width: 280px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
    position: relative;
    overflow: hidden;
}

.primary-submit-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;
}

.primary-submit-btn:hover::before {
    left: 100%;
}

.primary-submit-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.5) !important;
}

/* Secondary buttons - reduced prominence */
.secondary-btn {
    font-size: 14px !important;
    padding: 10px 20px !important;
    font-weight: 400 !important;
    opacity: 0.8;
    background: #6c757d !important;
    border: 1px solid #5a6268 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    min-width: 140px;
}

.secondary-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Button icons */
.btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Status-Based Color Coding */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-100) 0%, var(--success-50) 100%);
    color: var(--success-700);
    border-color: var(--success-200);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-100) 0%, var(--warning-50) 100%);
    color: var(--warning-700);
    border-color: var(--warning-200);
}

.badge-danger {
    background: linear-gradient(135deg, var(--error-100) 0%, var(--error-50) 100%);
    color: var(--error-700);
    border-color: var(--error-200);
}

.badge-info {
    background: linear-gradient(135deg, var(--info-100) 0%, var(--info-50) 100%);
    color: var(--info-700);
    border-color: var(--info-200);
}

.badge-secondary {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn::before,
.submit-btn::before,
.reset-btn::before,
.draft-btn::before,
.action-btn::before,
.template-btn::before,
.load-template-btn::before,
.save-template-btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-success::before,
.btn-warning::before,
.btn-danger::before,
.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before,
.submit-btn:hover::before,
.reset-btn:hover::before,
.draft-btn:hover::before,
.action-btn:hover::before,
.template-btn:hover::before,
.load-template-btn:hover::before,
.save-template-btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-success:hover::before,
.btn-warning:hover::before,
.btn-danger:hover::before,
.btn-info:hover::before {
    opacity: 1;
}

/* Enhanced Button Animations */
.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    border-color: #0056b3;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #004085 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.25);
}

/* Secondary Button (Reset/Cancel) */
.btn-secondary,
.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover,
.reset-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.25);
}

/* Success Button (Approve) */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.25);
}

/* Warning Button (Draft/Template) */
.btn-warning,
.draft-btn,
.template-btn,
.save-template-btn,
.load-template-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    border-color: #ffc107;
    font-weight: 700;
}

.btn-warning:hover,
.draft-btn:hover,
.template-btn:hover,
.save-template-btn:hover,
.load-template-btn:hover {
    background: linear-gradient(135deg, #e0a800 0%, #e8590c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.25);
    color: #000;
}

/* Danger Button (Reject/Delete) */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.25);
}

/* Info Button (View/Details) */
.btn-info,
.action-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
}

.btn-info:hover,
.action-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.25);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 90px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 160px;
}

/* Button Groups */
.btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-group .btn,
.btn-group .submit-btn,
.btn-group .reset-btn,
.btn-group .draft-btn {
    margin: 0;
}

/* Active and Focus States */
.btn:active,
.submit-btn:active,
.reset-btn:active,
.draft-btn:active,
.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn:focus,
.submit-btn:focus,
.reset-btn:focus,
.draft-btn:focus,
.action-btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Disabled State */
.btn:disabled,
.submit-btn:disabled,
.reset-btn:disabled,
.draft-btn:disabled,
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled:hover,
.submit-btn:disabled:hover,
.reset-btn:disabled:hover,
.draft-btn:disabled:hover,
.action-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    float: right;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
}

/* Enhanced input styles */
.field-input input.error {
    border-color: #dc3545;
}

.field-input input.success {
    border-color: #28a745;
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
    .main-content {
        padding: 10px 0;
        gap: 20px;
    }

    .login-section {
        max-width: 100%;
        padding: 20px;
        margin: 0 10px;
    }

    .stats-section {
        max-width: 100%;
        margin: 0 10px;
    }

    .stats-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .stat-card {
        min-width: 250px;
        max-width: 100%;
        padding: 20px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 15px;
        margin: 0 5px;
    }

    .stats-row {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        min-width: unset;
        max-width: 100%;
        padding: 15px;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .portal-container {
        padding: 10px;
        border-radius: 8px;
    }
    
    .portal-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .logo {
        width: 200px;
        height: 80px;
    }
    
    .portal-title h2 {
        font-size: 18px;
        padding: 12px 20px;
    }
    
    .form-container {
        padding: 20px;
        border-radius: 8px;
    }
    
    .form-header {
        margin-bottom: 30px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 18px;
    }
    
    .form-table {
        border-spacing: 0 4px;
    }
    
    .form-table td {
        padding: 15px 12px;
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 86, 179, 0.08);
    }
    
    .form-table td:last-child {
        border-bottom: none;
    }
    
    .field-number {
        width: 100%;
        border-radius: 6px;
        margin-bottom: 10px;
        text-align: left;
        padding: 12px;
        box-sizing: border-box;
        font-weight: 800;
        background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(0, 86, 179, 0.3);
    }
    
    .field-label {
        width: 100%;
        background: transparent;
        font-size: 15px;
        font-weight: 700;
        color: #2c3e50;
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .field-input {
        width: 100%;
        padding-left: 0;
    }
    
    .form-actions {
        padding: 20px 0;
    }
    
    .submit-btn,
    .reset-btn,
    .draft-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        padding: 16px;
        font-size: 16px;
    }
    
    .collaborator-entry, .copi-entry {
        padding: 15px;
    }
    
    .collaborator-entry h4, .copi-entry h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .portal-container {
        padding: 5px;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 16px;
    }
    
    .form-table td {
        padding: 12px 8px;
    }
    
    .field-input input[type="text"],
    .field-input input[type="number"],
    .field-input input[type="date"],
    .field-input input[type="email"],
    .field-input select,
    .field-input textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .add-btn, .remove-btn {
        padding: 14px 20px;
        font-size: 15px;
        width: 100%;
        margin-top: 10px;
    }
    
    .logo {
        width: 150px;
        height: 60px;
    }
    
    .portal-title h2 {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Register Page Specific Styles */
.register-section {
    flex: 0 0 350px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* Fixed page layout - only register section scrolls */
.register-page html, .register-page body {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.register-page .portal-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.register-page .portal-header {
    flex-shrink: 0; /* Header stays fixed at top */
}

.register-page .main-content {
    flex: 1;
    display: flex;
    /*overflow: hidden;*/
    min-height: 0; /* Allow flex items to shrink */
}

.register-page .register-section {
    flex: 1;
    overflow-y: auto; /* Only register section scrolls vertically */
    max-height: 100%;
    padding: 30px;
    box-sizing: border-box;
}


.register-page-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-form {
    padding-right: 15px;
}

.register-form .form-group {
    margin-bottom: 22px;
}

.register-form .form-group label {
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.register-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
}

.register-form .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
    outline: none;
}

.register-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    cursor: pointer;
}

.register-form .form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
    outline: none;
}

.register-form input[type="file"] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-form input[type="file"]:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.file-note {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.register-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    min-width: 150px;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.register-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.login-link-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white !important;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.login-link-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
    text-decoration: none;
}

/* Register link section on login page */
.register-link-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    display: inline;
}

.register-link {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: 8px;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2);
    border: none;
    cursor: pointer;
}

.register-link:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Password strength indicator */
.register-form input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.register-form input:valid {
    border-color: #28a745;
}

.register-form input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Scrollbar for register form */
.register-form::-webkit-scrollbar {
    width: 6px;
}

.register-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.register-form::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 6px;
}

.register-form::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Dashboard Layouts - Full Width Styles */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    margin-top: 0;
    width: 100%;
}

.dashboard-content {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.content-section {
    display: none;
    width: 100%;
}

.content-section.active {
    display: block;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.dashboard-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Enhanced Sidebar Styles - Modern Design */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
    border-radius: 0;
    overflow: visible;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

/* Remove scrollbar but keep scrolling functionality */
.sidebar::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
}

.sidebar-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
}

.user-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    text-transform: capitalize;
}

.sidebar-nav {
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Allow flex item to shrink */
}

/* Enhanced Custom Scrollbar for Sidebar Navigation */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    margin: 2px 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.nav-item:hover::before {
    transform: scaleY(0.7);
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    text-decoration: none;
    padding-left: 24px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item.active::before {
    transform: scaleY(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-icon {
    font-size: 20px;
    margin-right: 14px;
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.sidebar-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 12px 15px;
}

.nav-item.logout {
    color: rgba(255, 200, 200, 0.95);
    margin-top: 15px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 14px;
    font-weight: 600;
}

.nav-item.logout::before {
    background: linear-gradient(180deg, #ff4444, #cc0000);
}

.nav-item.logout:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.25) 0%, rgba(220, 53, 69, 0.15) 100%);
    color: #ffdddd;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .dashboard-layout {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 120px;
        left: -280px;
        height: calc(100vh - 120px);
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        left: 0;
    }

    .dashboard-content {
        width: 100%;
        margin: 20px 0;
        padding: 15px;
    }

    .main-content {
        border-radius: 0;
        padding: 15px;
    }

    .dashboard-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 250px;
        left: -250px;
    }

    .sidebar.active {
        left: 0;
    }

    .nav-item {
        padding: 10px 15px;
    }

    .nav-text {
        font-size: 13px;
    }

    .dashboard-content {
        padding: 10px;
    }

    .main-content {
        padding: 10px;
    }

    .dashboard-section {
        padding: 15px;
    }
}

/* Register page responsive adjustments */
@media (max-width: 768px) {
    .register-section {
        width: 100%;
        max-width: none;
        margin-right: 0;
        padding: 25px;
    }
    
    .register-form {
        max-height: 450px;
        padding-right: 10px;
    }
    
    .register-page-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .register-form .form-group {
        margin-bottom: 18px;
    }
    
    .register-form .form-group input,
    .register-form .form-group select,
    .register-form input[type="file"] {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .register-section {
        padding: 20px;
        border-radius: 6px;
    }
    
    .register-btn,
    .login-link-btn {
        padding: 14px 16px;
        font-size: 16px;
        min-width: 100px;
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .register-page-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .register-form {
        max-height: 400px;
    }
    
    .register-form .form-group label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .file-note {
        font-size: 12px;
    }
}

/* Mobile responsive adjustments for fixed height scrolling */
@media (max-width: 768px) {
    .register-page html, .register-page body {
        height: auto; /* Allow normal scrolling on mobile */
        overflow: auto;
    }

    .register-page .portal-container {
        height: auto; /* Allow normal height on mobile */
        display: block; /* Stack sections vertically */
    }

    .register-page .portal-header {
        flex-shrink: 0;
    }

    .register-page .main-content {
        flex: none;
        display: block; /* Stack register and stats vertically */
        overflow: visible;
        min-height: auto;
    }

    .register-page .register-section {
        flex: none;
        overflow: visible; /* Allow normal scrolling */
        max-height: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .register-page .stats-section {
        flex: none;
        overflow: visible;
        max-height: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .register-section {
        padding: 20px;
        border-radius: 6px;
    }
    
    .register-btn,
    .login-link-btn {
        padding: 14px 16px;
        font-size: 16px;
        min-width: 100px;
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .register-page-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .register-form {
        max-height: 400px;
    }
    
    .register-form .form-group label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .file-note {
        font-size: 12px;
    }
}

/* User and Mapping Tables */
.user-table, .mapping-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-table th, .user-table td,
.mapping-table th, .mapping-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th, .mapping-table th {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    font-weight: 600;
}

.user-table tr:hover, .mapping-table tr:hover {
    background-color: #f5f5f5;
}

/* Mapping Items */
.mappings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mapping-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}

.mapping-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.mapping-item p {
    margin: 5px 0;
    color: #666;
}

/* Profile Items */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}

.profile-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.profile-item p {
    margin: 5px 0;
    color: #666;
}

.documents {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.documents h4 {
    margin-bottom: 10px;
    color: #495057;
}

.documents ul {
    list-style: none;
    padding: 0;
}

.documents li {
    margin: 5px 0;
}

.documents a {
    color: #007bff;
    text-decoration: none;
}

.documents a:hover {
    text-decoration: underline;
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
    .main-content {
        padding: 10px 0;
        gap: 20px;
    }

    .login-section {
        max-width: 100%;
        padding: 20px;
        margin: 0 10px;
    }

    .stats-section {
        max-width: 100%;
        margin: 0 10px;
    }

    .stats-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .stat-card {
        min-width: 250px;
        max-width: 100%;
        padding: 20px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 15px;
        margin: 0 5px;
    }

    .stats-row {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        min-width: unset;
        max-width: 100%;
        padding: 15px;
        min-height: 160px;
    }
}
/* ========================================
   ENTERPRISE DASHBOARD MODULE STYLES
   ======================================== */

/* Module Container */
.module-container {
    background: white;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.module-container:hover {
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.12);
    transform: translateY(-2px);
}

/* Module Header */
.module-header {
    border-bottom: 3px solid #0056b3;
    padding-bottom: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.03) 0%, rgba(0, 123, 255, 0.02) 100%);
    border-radius: 8px;
    padding: 25px;
}

.module-header h2 {
    color: #0056b3;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.module-subtitle {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 15px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left-color: #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert strong {
    font-weight: 600;
    margin-right: 8px;
}

/* Form Group Overrides for Modules */
.module-container .form-group {
    margin-bottom: 25px;
}

.module-container .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
}

.module-container .form-group input[type='text'],
.module-container .form-group input[type='email'],
.module-container .form-group input[type='password'],
.module-container .form-group input[type='date'],
.module-container .form-group input[type='number'],
.module-container .form-group input[type='file'],
.module-container .form-group select,
.module-container .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Form Input Focus States */
.module-container .form-group input:focus,
.module-container .form-group select:focus,
.module-container .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* Button Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Subtle Pulse Animation for Important Actions */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

.module-container .form-group small {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 13px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
    color: #0056b3;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.info-box p {
    margin: 10px 0;
    color: #2c3e50;
    line-height: 1.6;
}

.info-box ol,
.info-box ul {
    margin: 15px 0;
    padding-left: 25px;
}

.info-box li {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
}

.data-table thead th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #004494;
}

.data-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.01) 0%, rgba(0, 123, 255, 0.005) 100%);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.03) 0%, rgba(0, 123, 255, 0.02) 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
    border-left: 3px solid #007bff;
}

.data-table tbody td {
    padding: 14px 14px;
    color: #2c3e50;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover td {
    color: #0056b3;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #856404;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e4606d 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #1fc8df 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: white;
}

/* Statistics Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
    border-color: #007bff;
}

.stat-icon {
    font-size: 42px;
    opacity: 0.9;
}

.stat-details h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #0056b3;
}

.stat-details p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Inline Forms */
.inline-form {
    display: inline-flex;
    gap: 8px;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
    text-decoration: none;
}

.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.action-card h4 {
    color: #0056b3;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.action-card p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* Responsive Module Styles */
@media (max-width: 768px) {
    .module-container {
        padding: 25px 20px;
    }

    .module-header {
        padding: 20px;
    }

    .module-header h2 {
        font-size: 24px;
    }

    .stats-summary {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .module-container {
        padding: 20px 15px;
    }

    .module-header h2 {
        font-size: 20px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-details h3 {
        font-size: 26px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
}


/* ============================================================
   GLOBAL DASHBOARD MODULE COMPONENT LIBRARY
   ============================================================
   
   Consistent, reusable styling for all dashboard module pages.
   This component library follows the design system established
   in overview.php and ensures visual consistency across:
   
   ✓ Upload Modules (guides, scholars, interview results)
   ✓ View Modules (guides, scholars, allocations, personal info)
   ✓ Approval Modules (allocations at different levels)
   ✓ Management Modules (pass marks, guide allocation)
   ✓ Settings Modules (change password)
   
   DESIGN PRINCIPLES:
   • Clean, modern card-based layouts
   • Gradient backgrounds for depth
   • Consistent spacing and typography
   • Professional color palette
   • Smooth animations and transitions
   • Mobile-responsive design
   
   COMPONENT USAGE:
   1. Wrap content in .module-container
   2. Use .module-header for page title
   3. Use .alert for feedback messages
   4. Use .form-container for forms
   5. Use .data-table-container for tables
   6. Use .btn variants for actions
   7. Use .stat-card for statistics
   8. Use .info-box for helpful information
   
   ============================================================ */

/* Module Container - Primary wrapper for all dashboard modules */
.module-container {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

/* Module Header - Consistent header styling */
.module-header {
    margin-bottom: 2em;
    text-align: center;
}

.module-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.module-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Section Header - For sub-sections within modules */
.section-header {
    margin-bottom: 2em;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 0.5em;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

/* Alert Messages - Success, Error, Info, Warning */
.alert {
    padding: 1.25em 1.75em;
    border-radius: 12px;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-size: 15px;
    animation: slideInDown 0.4s ease-out;
}

.alert strong {
    font-weight: 700;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-left: 4px solid #28a745;
    color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.alert-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(176, 42, 55, 0.08) 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.12) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 179, 0, 0.08) 100%);
    border-left: 4px solid #ffc107;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

/* Form Containers - Elevated card-style forms */
.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5em;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

/* Form Groups - Spacing for form fields */
.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.6em;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85em 1em;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.85em;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.form-group small {
    display: block;
    margin-top: 0.5em;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-bottom: 1.5em;
}

/* Button Styles - Primary, Secondary, Danger, etc. */
.btn {
    padding: 0.85em 1.75em;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3a3f44 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6em 1.2em;
    font-size: 13px;
}

.btn-lg {
    padding: 1.1em 2.2em;
    font-size: 16px;
}

.btn-icon {
    font-size: 1.2em;
}

/* Button Group - Horizontal button layouts */
.button-group {
    display: flex;
    gap: 1em;
    justify-content: flex-end;
    margin-top: 2em;
    flex-wrap: wrap;
}

/* Data Tables - Professional table styling */
.data-table-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

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

.data-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.data-table thead th {
    padding: 1.2em 1em;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.data-table tbody td {
    padding: 1.1em 1em;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #495057;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Info Boxes - Highlighted information sections */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2em;
    border-radius: 12px;
    border-left: 5px solid #007bff;
    margin-bottom: 2em;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 1em;
    font-size: 18px;
    font-weight: 700;
}

.info-box p,
.info-box ol,
.info-box ul {
    color: #495057;
    line-height: 1.7;
}

.info-box ol,
.info-box ul {
    margin-left: 1.5em;
}

.info-box ol li,
.info-box ul li {
    margin-bottom: 0.6em;
}

/* Statistics Cards - Reusable from overview */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5em;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-4px);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.stat-details h3 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.2em 0;
}

.stat-details p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Quick Actions Section */
.quick-actions-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2.5em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

.quick-actions-section h3 {
    margin-bottom: 1.5em;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2em;
}

.action-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1.3em 1.6em;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
}

.action-btn:active {
    transform: scale(0.98);
}

/* No Data Messages */
.no-data-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3em 2em;
    border-radius: 12px;
    text-align: center;
    color: #6c757d;
    font-size: 15px;
    margin: 2em 0;
}

.no-data-message p {
    margin: 0.5em 0;
}

/* Dashboard Section - Generic content wrapper */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.dashboard-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Animations */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments for Module Components */
@media (max-width: 768px) {
    .module-container {
        padding: 1.5em 1em;
    }

    .module-header h2,
    .section-header h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 0.8em 0.6em;
    }
}

@media (max-width: 480px) {
    .module-header h2 {
        font-size: 20px;
    }

    .stat-card {
        padding: 1.5em;
    }

    .stat-details h3 {
        font-size: 28px;
    }

    .form-container {
        padding: 2em 1.5em;
    }
}

/* Glassmorphism Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 0.3s ease-out;
    color: white;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: rgba(0, 0, 0, 0.9);
}

.modal-success .modal-content {
    border-color: rgba(40, 167, 69, 0.3);
}

.modal-error .modal-content {
    border-color: rgba(220, 53, 69, 0.3);
}

.modal-info .modal-content {
    border-color: rgba(0, 123, 255, 0.3);
}

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

@keyframes slideIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
}
