.exam-table {
    border: 1px solid #000;
    border-collapse: collapse;
}

/* MODERN LOGIN PAGE STYLING */
/* Beautiful, clean, and professional login design */

/* Login Page Background */
.login-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

/* Login Card Styling */
.login-form .card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 2rem !important;
    overflow: hidden !important;
}

/* Login Card Body */
.login-form .card-body {
    padding: 3rem 2.5rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Login Header Styling */
.login-form .text-center .icon-people {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    font-size: 2.5rem !important;
    width: 80px !important;
    height: 80px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

/* Login Title */
.login-form h5 {
    color: #2d3748 !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Login Subtitle */
.login-form .text-muted {
    color: #718096 !important;
    font-size: 0.95rem !important;
    margin-bottom: 2rem !important;
}

/* Form Groups */
.login-form .form-group {
    margin-bottom: 1.5rem !important;
    position: relative !important;
}

/* Form Inputs */
.login-form .form-control {
    background: rgba(247, 250, 252, 0.8) !important;
    border: 2px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    color: #2d3748 !important;
    transition: all 0.3s ease !important;
    height: auto !important;
}

.login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.login-form .form-control::placeholder {
    color: #a0aec0 !important;
    font-weight: 400 !important;
}

/* Remember Me and Forgot Password */
.login-form .form-check-label {
    color: #4a5568 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
}

.login-form .form-check-input {
    margin-right: 0.5rem !important;
}

.login-form a {
    color: #667eea !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.login-form a:hover {
    color: #764ba2 !important;
    text-decoration: none !important;
}

/* Login Button */
.login-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    text-transform: none !important;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.login-form .btn-primary:active {
    transform: translateY(0) !important;
}

/* Alert Styling */
.login-form .alert {
    border-radius: 12px !important;
    border: none !important;
    margin-bottom: 1.5rem !important;
}

.login-form .alert-danger {
    background: rgba(248, 113, 113, 0.1) !important;
    color: #dc2626 !important;
    border-left: 4px solid #dc2626 !important;
}

/* Login Navigation Header */
.navbar-dark.login-navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-dark.login-navbar .navbar-brand {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-cover {
        padding: 0.5rem !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
    }
    
    .content-wrapper {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .login-form .card {
        margin: 0.5rem !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .login-form .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .login-form .text-center .icon-people {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }
    
    .login-form h5 {
        font-size: 1.3rem !important;
    }
    
    .login-form .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }
    
    .login-form .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 44px !important; /* Touch-friendly */
    }
}

@media (max-width: 576px) {
    .login-form .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .login-form .card {
        margin: 0.25rem !important;
        border-radius: 12px !important;
    }
    
    .login-form h5 {
        font-size: 1.2rem !important;
    }
    
    .login-form .text-muted {
        font-size: 0.9rem !important;
    }
}

/* Loading Animation */
.login-form .btn-primary:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Additional Polish */
.login-form .form-group:last-of-type {
    margin-bottom: 0 !important;
}

/* Smooth Animations */
.login-form .card {
    animation: slideInUp 0.6s ease-out !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Focus Animation */
.login-form .form-control {
    position: relative !important;
}

.login-form .form-control:focus {
    animation: inputFocus 0.3s ease-out !important;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* LANDING PAGE STYLES */
/* Modern, professional landing page design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.nav-mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #4a5568;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #667eea;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-illustration > i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.icon-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: floatAround 4s ease-in-out infinite;
}

.icon-1 { top: 20%; right: 20%; animation-delay: 0s; }
.icon-2 { bottom: 20%; left: 20%; animation-delay: 1s; }
.icon-3 { top: 60%; right: 10%; animation-delay: 2s; }
.icon-4 { top: 30%; left: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.problem-card p {
    color: #718096;
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    padding: 5rem 0;
    background: white;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.solution-card p {
    color: #718096;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid #667eea;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    color: #718096;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
}

.period {
    font-size: 0.9rem;
    color: #718096;
    display: block;
}

.pricing-features {
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature i {
    color: #48bb78;
    font-size: 1.1rem;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
}

.pricing-note p {
    font-size: 1.1rem;
    color: #667eea;
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #718096;
}

.compatibility-note {
    text-align: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.compatibility-note p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0;
}

.compatibility-note i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-brand p {
    color: #a0aec0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .problem-grid,
    .solution-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* CURRENT SESSION TEXT STYLING */
/* Make the Current Session text white in the header */

.page-header-dark .header-elements .btn-link .font-weight-semibold,
.page-header-dark .header-elements .btn-float .font-weight-semibold,
.page-header-dark .header-elements span.font-weight-semibold {
    color: #ffffff !important; /* White text for Current Session */
}

.page-header-dark .header-elements .btn-link,
.page-header-dark .header-elements .btn-float {
    color: #ffffff !important; /* White text for the entire link */
}

.page-header-dark .header-elements .btn-link:hover,
.page-header-dark .header-elements .btn-float:hover {
    color: #e0e0e0 !important; /* Slightly dimmed white on hover */
}

/* Mobile-Friendly Logout Button in Sidebar */
.sidebar .nav-link.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
    border-left: 3px solid #dc3545;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #c82333;
    transform: translateX(2px);
    color: #dc3545 !important;
}

.sidebar .nav-link.text-danger i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Make logout button always visible on mobile */
@media (max-width: 768px) {
    /* Enhanced sidebar logout button for mobile */
    .sidebar .nav-link.text-danger {
        color: #dc3545 !important;
        border-left: 3px solid #dc3545;
        font-weight: 700;
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
    
    .sidebar .nav-link.text-danger:hover {
        background: rgba(220, 53, 69, 0.1);
        border-left-color: #c82333;
        transform: translateX(2px);
    }
    
    .sidebar .nav-link.text-danger i {
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }
    
    /* Make logout button more prominent in sidebar */
    .sidebar .nav-item:last-child {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Enhanced top navigation logout for mobile */
    .navbar-nav .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        z-index: 1050 !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 1rem !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar-nav .dropdown-item.text-danger {
        color: #dc3545 !important;
        font-weight: 600 !important;
        background: rgba(220, 53, 69, 0.05) !important;
    }
    
    .navbar-nav .dropdown-item.text-danger:hover {
        background: rgba(220, 53, 69, 0.1) !important;
    }
}


/* =========================================
   SYSTEM-WIDE MOBILE OPTIMIZATIONS
   ========================================= */

@media (max-width: 768px) {
    /* 1. Global Table Responsiveness */
    /* Ensure all tables scroll horizontally if they overflow */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    /* Remove padding from cards to give more space for content on small screens */
    .card-body {
        padding: 1rem !important;
    }
    
    /* 2. Header Elements Stacking */
    /* Stack header elements (title + buttons) vertically on mobile */
    .header-elements-inline {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .header-elements-inline h6.card-title,
    .header-elements-inline h5.card-title {
        margin-bottom: 15px;
        width: 100%;
    }

    .header-elements {
        margin-top: 10px;
        width: 100%;
        position: static; /* Reset absolute positioning if any */
        background: transparent;
        border: none;
        padding: 0;
    }
    
    /* 3. Form Layouts */
    /* Stack form groups vertically */
    .form-group.row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-form-label {
        width: 100%;
        padding-bottom: 5px;
        text-align: left !important;
        font-weight: 600;
    }
    
    /* Ensure columns take full width on mobile */
    .col-lg-9, .col-lg-3, .col-lg-10, .col-lg-2, .col-md-6 {
        max-width: 100%; /* Use max-width to allow flex-basis to work if needed, or stick to width: 100% */
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important; 
    }
    
    /* 4. DataTables Mobile Fixes */
    /* Reset DataTable controls to stack vertically */
    .datatable-header, .datatable-footer {
        flex-direction: column;
        padding: 15px 0;
        text-align: center;
    }
    
    .dataTables_filter, 
    .dataTables_length,
    .dt-buttons {
        margin: 5px 0 !important;
        text-align: center;
        width: 100%;
        float: none !important;
        display: block !important;
    }
    
    .dataTables_filter label,
    .dataTables_length label {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .dataTables_filter input {
        width: 100% !important; /* Full width search box */
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    /* Fix pagination alignment */
    .dataTables_paginate {
        text-align: center !important;
        float: none !important;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}