/* Add smooth scrolling and improved typography */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(42, 62, 95, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f8fda, #007bff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #007bff, #6f42c1);
}

/* Selection color */
::selection {
    background: rgba(79, 143, 218, 0.3);
    color: #ffffff;
}

/* Improved focus states for accessibility */
.btn:focus,
.logout-btn:focus,
.nav-links a:focus {
    outline: 2px solid rgba(79, 143, 218, 0.6);
    outline-offset: 2px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2b47 0%, #0f1b30 50%, #1e3a56 100%); /* Gradient background */
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0d1a2d 0%, #1a2b47 100%);
    border-bottom: 2px solid rgba(79, 143, 218, 0.3);
    padding: 15px 30px;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #4f8fda, #6f42c1, #e83e8c);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Navigation Links Styling */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #b8c5d1;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: rgba(42, 62, 95, 0.4);
    border: 2px solid rgba(79, 143, 218, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 143, 218, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(79, 143, 218, 0.7) 0%, rgba(0, 123, 255, 0.7) 100%);
    border-color: rgba(79, 143, 218, 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(79, 143, 218, 0.4);
    text-shadow: none;
}

.nav-links a.active {
    background: linear-gradient(135deg, #4f8fda 0%, #007bff 100%);
    color: #ffffff;
    border-color: rgba(79, 143, 218, 0.8);
    box-shadow: 
        0 6px 20px rgba(79, 143, 218, 0.4),
        0 0 0 1px rgba(79, 143, 218, 0.3);
    text-shadow: none;
    transform: translateY(-1px);
}

.nav-links a.active::after {
    display: none;
}

/* Enhanced Navigation Effects - Remove bottom line effect */
.nav-links a::after {
    display: none;
}

/* Glowing Effect for Active Link */
.nav-links a.active {
    box-shadow: 
        0 6px 20px rgba(79, 143, 218, 0.4),
        0 0 0 1px rgba(79, 143, 218, 0.3);
}

/* Remove the problematic border glow animation */
.nav-links a.active::before {
    display: none;
}

/* Icon Support for Navigation Links */
.nav-link-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-links a:hover .nav-link-icon,
.nav-links a.active .nav-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Navigation Icon Styling */
.nav-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Menu icon and dropdown */
.menu-container {
    position: relative;
}

.menu-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.menu-icon img {
    width: 100%;
    height: 100%;
     background: transparent; 
    /* object-fit: cover; */
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #0d1a2d; /* Darker blue background */
    border: 1px solid #304b75;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    min-width: 200px;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu ul li {
    padding: 0; /* Remove padding from li */
    border-bottom: 1px solid #304b75; /* Move border to li */
    transition: background 0.2s;
}

.dropdown-menu ul li:last-child {
    border-bottom: none;
}

.dropdown-menu ul li a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    padding: 10px 15px;
    /* Remove height and line-height */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    transition: color 0.2s;
}

.dropdown-menu ul li:hover {
    background-color: #4f8fda; /* Apply hover background to li */
}

.dropdown-menu ul li:hover a {
    color: #0d1a2d;
}

/* Page title */
.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff; /* White title text */
    text-align: center;
}

/* User profile */
.user-profile {
    width: 40px;
    height: 40px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #304b75;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dashboard content */
.dashboard-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-content h1 {
    margin-bottom: 20px;
    color: #ffffff; /* White text */
}

/* Stats cards */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: #2a3e5f; /* Slightly lighter blue for cards */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 30%;
    min-width: 200px;
    margin-bottom: 20px;
    color: #ffffff; /* White text */
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #4f8fda; /* Light blue for stat values */
    margin-top: 10px;
}

/* Recent activity */
.recent-activity {
    background-color: #2a3e5f; /* Slightly lighter blue for cards */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.recent-activity h2 {
    margin-bottom: 15px;
    color: #ffffff; /* White text */
    font-size: 20px;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #304b75;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item p {
    color: #e0e0e0; /* Light gray text for better readability */
}

.activity-item strong {
    color: #4f8fda; /* Light blue for emphasis */
}

/* List styling for menu (when shown without CSS) */
ul li {
    margin-bottom: 8px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(79, 143, 218, 0.2);
    transform: scale(1.1);
}

/* Welcome Header Styling */
.welcome-header {
    background: linear-gradient(135deg, rgba(42, 62, 95, 0.4) 0%, rgba(26, 43, 71, 0.6) 100%);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(79, 143, 218, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.welcome-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 143, 218, 0.1), transparent);
    animation: welcomeShine 4s ease-in-out infinite;
}

@keyframes welcomeShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.welcome-header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    background: linear-gradient(135deg, #ffffff 0%, #4f8fda 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: center;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #b8c5d1;
    margin-top: 8px;
    padding: 8px 0;
}

.breadcrumb a {
    color: #4f8fda;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #007bff;
    background: rgba(79, 143, 218, 0.1);
}

.breadcrumb-separator {
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Navigation Badge/Notifications */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757 0%, #e74c3c 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
    animation: notificationPulse 2s ease-in-out infinite;
}

/* Notification Pulse Animation */
@keyframes notificationPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0);
    }
}

.nav-badge {
    animation: notificationPulse 2s ease-in-out infinite;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        height: auto;
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(79, 143, 218, 0.2);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 25px;
        font-size: 0.9rem;
        transform: none !important;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .welcome-header {
        padding: 10px 20px;
    }
    
    .welcome-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 15px;
    }
    
    .nav-links a {
        padding: 12px 18px;
        font-size: 0.85rem;
        margin: 3px 0;
        transform: none !important;
    }
    
    .welcome-header {
        padding: 8px 15px;
    }
}

/* Admin Dashboard Specific Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Add subtle animation to the entire container */
.dashboard-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(79, 143, 218, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(108, 117, 125, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, transparent, #4f8fda, transparent) bottom/100% 3px no-repeat;
    position: relative;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #4f8fda, #6f42c1);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(79, 143, 218, 0.6);
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 300;
    background: linear-gradient(135deg, #ffffff 0%, #4f8fda 50%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(79, 143, 218, 0.3);
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #e0e0e0;
    padding: 10px 20px;
    background: rgba(42, 62, 95, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 143, 218, 0.2);
}

.logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border: 2px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    display: none;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.5);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    background: linear-gradient(145deg, #2a3e5f 0%, #243447 50%, #2a3e5f 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 143, 218, 0.2);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #4f8fda, #6f42c1, #e83e8c);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(79, 143, 218, 0.3);
    border-color: rgba(79, 143, 218, 0.6);
}

.dashboard-card h3 {
    background: linear-gradient(135deg, #4f8fda 0%, #007bff 50%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.dashboard-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4f8fda, #007bff);
    border-radius: 1px;
}

.dashboard-card p {
    color: #b8c5d1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: 2px solid transparent;
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4448 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4f8fda;
    border: 2px solid #4f8fda;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #4f8fda 0%, #007bff 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 143, 218, 0.4);
}

.btn-outline:hover::before {
    width: 100%;
}

.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #445a74;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #b8c5d1;
    font-weight: 500;
}

.dashboard-card .stat-value {
    background: linear-gradient(135deg, #4f8fda 0%, #007bff 50%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 0 0 20px rgba(79, 143, 218, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Admin Dashboard Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .service-links {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-right: 0;
    }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a1525 0%, #1a2b47 50%, #0f1b30 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dashboard-card {
        border: 2px solid #4f8fda;
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

/* Add subtle animations to cards */
.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

/* Loading state animation */
@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.stat-item.loading {
    background: linear-gradient(90deg, transparent 25%, rgba(79, 143, 218, 0.1) 50%, transparent 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite linear;
}

/* Glow effect for important elements */
.dashboard-header h1,
.dashboard-card h3 {
    filter: drop-shadow(0 0 8px rgba(79, 143, 218, 0.3));
}

/* Add subtle micro-interactions */
.nav-links a {
    transform-origin: center;
}

.nav-links a:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Modern Form Styling for Admin Pages */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.modern-form-group.focused .modern-label {
    color: #4f8fda;
    transform: scale(0.95);
}

.modern-label {
    font-weight: 600;
    color: #b8c5d1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-input,
.modern-select {
    background: rgba(42, 62, 95, 0.3);
    border: 2px solid rgba(79, 143, 218, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: #4f8fda;
    background: rgba(42, 62, 95, 0.5);
    box-shadow: 0 0 20px rgba(79, 143, 218, 0.3);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: rgba(184, 197, 209, 0.6);
}

.modern-select option {
    background: #1a2b47;
    color: #ffffff;
    padding: 10px;
}

.form-hint {
    font-size: 0.8rem;
    color: rgba(184, 197, 209, 0.7);
    font-style: italic;
    margin-top: 4px;
}

.modern-submit-btn {
    background: linear-gradient(135deg, #4f8fda 0%, #007bff 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-submit-btn::before {
    display: none;
}

.modern-submit-btn:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 143, 218, 0.4);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.modern-submit-btn.loading {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    cursor: not-allowed;
    transform: none;
}

.modern-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error styling for form fields */
.modern-input.error,
.modern-select.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠️';
    font-size: 0.7rem;
}

/* Dashboard Messages Styling */
.dashboard-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.5s ease-out;
}

.success-message.dashboard-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(25, 135, 84, 0.2) 100%);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.error-message.dashboard-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(178, 34, 52, 0.2) 100%);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.error-list.dashboard-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(178, 34, 52, 0.1) 100%);
    border: 2px solid rgba(220, 53, 69, 0.2);
    flex-direction: column;
    align-items: flex-start;
}

.error-item {
    color: #dc3545;
    margin: 2px 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Requirement Items Styling */
.requirement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(42, 62, 95, 0.2);
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid rgba(79, 143, 218, 0.2);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: rgba(42, 62, 95, 0.4);
    border-color: rgba(79, 143, 218, 0.4);
    transform: translateX(5px);
}

.requirement-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 143, 218, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(79, 143, 218, 0.3);
}

.requirement-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.requirement-details strong {
    color: #4f8fda;
    font-size: 1.1rem;
}

.requirement-details span {
    color: #b8c5d1;
    font-family: 'Courier New', monospace;
    background: rgba(79, 143, 218, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.info-note {
    background: rgba(79, 143, 218, 0.1);
    border: 1px solid rgba(79, 143, 218, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #b8c5d1;
    text-align: center;
}

.info-note em {
    color: #4f8fda;
}

/* Responsive design for form */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-form_group {
        gap: 6px;
    }
    
    .modern-input,
    .modern-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .modern-submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .requirement-item {
        padding: 12px;
        gap: 12px;
    }
    
    .requirement-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* Special styling for Create Worker button */
.nav-links a[href*="admin-create-worker"] {
    background: rgba(25, 135, 84, 0.4);
    border-color: rgba(25, 135, 84, 0.5);
}

.nav-links a[href*="admin-create-worker"]:hover {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.7) 0%, rgba(32, 201, 151, 0.7) 100%);
    border-color: rgba(25, 135, 84, 0.9);
    box-shadow: 0 12px 35px rgba(25, 135, 84, 0.4);
}

.nav-links a[href*="admin-create-worker"].active {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-color: rgba(25, 135, 84, 0.8);
    box-shadow: 
        0 6px 20px rgba(25, 135, 84, 0.4),
        0 0 0 1px rgba(25, 135, 84, 0.3);
}

/* Button click/loading states */
.nav-links a:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(79, 143, 218, 0.3);
    transition: all 0.1s ease;
}

.nav-links a.loading {
    pointer-events: none;
    opacity: 0.8;
}

.nav-links a.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ULTIMATE WHITE LIGHT KILLER - Override everything */
.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active,
.nav-links a.active,
.nav-links a:focus {
    text-shadow: none !important;
}

/* Remove all pseudo-elements that could create white effects */
.nav-links a::before,
.nav-links a::after {
    content: none !important;
    display: none !important;
}

/* Remove any possible white backgrounds or borders */
.nav-links a,
.nav-links a:hover,
.nav-links a.active {
    border-color: rgba(79, 143, 218, 0.5) !important;
}

.nav-links a[href*="admin-create-worker"],
.nav-links a[href*="admin-create-worker"]:hover,
.nav-links a[href*="admin-create-worker"].active {
    border-color: rgba(25, 135, 84, 0.5) !important;
}

/* Final cleanup - Remove ALL white effects */
.nav-links a *,
.nav-links a::before,
.nav-links a::after,
.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
    box-shadow: none !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
    display: none !important;
}

/* Reapply ONLY the colored shadows we want */
.nav-links a:hover {
    box-shadow: 0 12px 35px rgba(79, 143, 218, 0.4) !important;
}

.nav-links a.active {
    box-shadow: 
        0 6px 20px rgba(79, 143, 218, 0.4),
        0 0 0 1px rgba(79, 143, 218, 0.3) !important;
}

.nav-links a[href*="admin-create-worker"]:hover {
    box-shadow: 0 12px 35px rgba(25, 135, 84, 0.4) !important;
}

.nav-links a[href*="admin-create-worker"].active {
    box-shadow: 
        0 6px 20px rgba(25, 135, 84, 0.4),
        0 0 0 1px rgba(25, 135, 84, 0.3) !important;
}