/* Custom CSS Variables for consistent theming */
:root {
    --primary-color: #233580;
    --primary-light: #6ea8fe;
    --accent-color: #bd10bd;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-radius: 0.5rem;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Modern Menu Styling */
#menu {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2b5c 100%);
    box-shadow: var(--shadow);
}

#menu .navbar-brand img {
    max-height: 40px;
    width: auto;
}

#menu a {
    display: block;
    transition: all 0.3s ease;
}

#menu a, #menu a:visited, #menu li {
    color: white !important;
    border-radius: var(--border-radius);
}

#menu a:hover {
    background-color: var(--primary-light);
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

#menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-menu .nav-link a {
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    transition: background-color 0.2s ease;
}

.dropdown-menu .nav-link a:hover {
    background-color: var(--primary-light);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2b5c 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-stats .stat-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-stats .stat-card:hover {
    transform: translateY(-5px);
}

/* Modern Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    box-shadow: 0 0.5rem 1rem rgba(35, 53, 128, 0.15);
}

/* Quick Actions Cards - Make text white */
.quick-actions .card .card-body h3,
.quick-actions .card .card-body p {
    color: white !important;
}

.quick-actions .card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2b5c 100%);
    color: white;
}

/* News Items */
.news-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.news-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
}

.news-content a {
    font-weight: 500;
    transition: color 0.2s ease;
}

.news-content a:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2b5c 100%);
    box-shadow: 0 0.25rem 0.5rem rgba(35, 53, 128, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(35, 53, 128, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .quick-actions .card {
        margin-bottom: 1rem;
    }
}

/* Legacy Table Styling */
.table {
    width: 80%;
}

.table td {
    vertical-align: top;
}

/* Accessibility Improvements */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(35, 53, 128, 0.25);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-muted: #adb5bd;
    }
    
    .card {
        background-color: #2d3748;
        color: white;
    }
    
    .news-item:hover {
        background-color: #4a5568;
    }
}

.form-text
{
    color:white;
}