/* Global Settings */
html, body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #eee;
    font-family: 'Roboto', sans-serif;
}

/* Bootstrap Theme Overrides */
.bg-primary {
    background-color: #1976d3 !important;
    margin-top: 0;
}

.bg-primary-dark {
    background-color: #0d47a1 !important;
}

.text-primary {
    color: #1976d3 !important;
}

/* Ensure the Bootstrap navbar uses its intended colors */
.navbar.navbar-dark.bg-primary {
    background-color: #1976d3 !important;
}

.navbar.navbar-dark.bg-primary .nav-link {
    color: #ffffff !important;
}

.navbar.navbar-dark.bg-primary .nav-link:hover,
.navbar.navbar-dark.bg-primary .dropdown-menu .dropdown-item:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

/* Icons */
.bi-large {
    font-size: 72px;
}

.material-icons.large {
    font-size: 72px; /* Increase icon size */
}

.btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.system-name {
    margin-top: 10px;
    font-size: 16px;
}

/* Flexbox for equal height cards */
.flex-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flex-card .card-content ul.collection {
    flex: 1;
    overflow-y: auto;
}

.flex-card .card-content p {
    margin-top: auto;
}

.card-content-case-upload {
    color: #3e0404;
    background-color: #1e1e1e;
}

/* Global blue star favorite styling */
.bi-star, .bi-star-fill {
    transition: all 0.2s ease;
}

.favorite-btn .bi-star {
    color: #007bff !important;
}

.favorite-btn .bi-star-fill {
    color: #007bff !important;
}

.favorite-btn.btn-primary .bi-star-fill {
    color: #ffffff !important;
}

/* Header navigation star color */
.dropdown-item .bi-star-fill {
    color: #007bff !important;
}

/* Case card hover effects */
.case-card:hover .favorite-btn {
    transform: scale(1.05);
}

.favorite-btn:hover .bi-star {
    color: #ffffff !important;
}

/* Favorites and Recent Views */
.favorite-btn {
    transition: all 0.2s ease;
    border: 1px solid #007bff !important;
    color: #007bff !important;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background-color: #007bff !important;
    color: white !important;
}

.favorite-btn.btn-primary {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.favorite-btn.btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.favorite-btn i {
    color: inherit;
}

.favorite-btn.btn-primary i {
    color: white !important;
}

.favorite-btn:not(.btn-primary) i {
    color: #007bff !important;
}

.case-card {
    position: relative;
}

.case-card .favorite-btn {
    position: relative;
    z-index: 10;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.case-card .favorite-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Dashboard Card Customizations */
.dashboard-card {
    /* standard card styling applied via Materialize plus theme overrides */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(4, 122, 134, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: #242424;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(4, 122, 134, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Representative Image Styling */
.dashboard-card .card-image img {
    width: 100%;
    height: auto;
}

.dashboard-card .card-body {
    padding-bottom: 1.5rem;
    padding: 1rem;
    flex: 1 0 auto; /* Grow but don't shrink */
    display: flex;
    flex-direction: column;
}

/* Explore Cases Button */
.btn-explore {
    background-color: #1976d3;
    color: #1e1e1e;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.btn-explore:hover {
    background-color: #1976d3;
}

.modern-dashboard {
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
}

.dashboard-header {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: left;
}

/* Ensure grid items and cards use flex for uniform heights */
.grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 1fr; /* This ensures rows are same height */
}

.grid-item {
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%;
}

/* Make the card a flexible container */
.card.modern-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Slider styles (Materialize defaults can be overridden as needed) */
.slider {
    height: 500px;
    position: relative;
    overflow: hidden;
}
.slider .slides li .caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
}
.slider .slides li img {
    object-fit: cover;
    height: 500px;
    display: block;
    width: 100%;
}

.slider .slides li {
    height: 500px !important;
}

.slider .caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(4, 122, 134, 0.6);
    padding: 20px 30px;
    border-radius: 8px;
}

.slider .caption h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2.5rem;
}

.slider .sub-caption {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

/* Modern Welcome Card */
.row {
    margin: 20px 0;
}

.modern-card {
    background-color: #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #1e1e1e;
    width: 100%;
    margin-top: 30px;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.modern-card .card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modern-card .card-content {
    padding: 30px;
    background-color: #1e1e1e;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.modern-card .card-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1975d2;
    margin-bottom: 15px;
}

.modern-card .card-action {
    padding: 15px;
    text-align: right;
    background: #2c2c2c;
}

.modern-btn  {
    background-color: #1975d2;
    color: #fff;
    text-transform: uppercase;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    padding: 10px 20px;
    margin-right: 10px;
    display: inline-block; /* override any flex settings */
    vertical-align: middle;
    line-height: normal;    
}

.modern-btn:hover {
    background-color: #166ab3;
}

.register-btn {
    background-color: #fff;
    color: #1976d3;
    border: 2px solid #1976d3;
}
.register-btn:hover {
    background-color: #f0f0f0;
}

/* Home Page Container */
.home-page {
    padding: 0;
    width: 100%;
}

.card-content {
    padding: 30px;
    background-color: #1e1e1e;
    text-align: center;
}

.card-title {
    font-size: 2rem;
    color: #1976d3;
    margin-bottom: 15px;
    min-height: 30px; /* Ensure consistent height for titles */
    margin-bottom: 0.75rem;
}

.card-action {
    background-color: #fafafa;
    padding: 15px 30px;
    text-align: right;
}

.btn {
    background-color: #1975d2;
    color: #fff;
    text-transform: uppercase;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    padding: 10px 20px;
    margin-right: 10px;
    display: inline-block; /* override any flex settings */
    vertical-align: middle;
    line-height: normal;   
}

.btn:hover {
    background-color: #166ab3;
}

.secondary-btn {
    background-color: #fff;
    color: #1976d3;
    border: 2px solid #1976d3;
}

.secondary-btn:hover {
    background-color: #f0f0f0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    filter: brightness(0.65);
}
/* Centered Welcome Overlay */
.hero-welcome {
    position: absolute;
    top: 70%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 600px;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem;
    color: #fff;
}

.welcome-card {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(4, 122, 134, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modern Card Styling */
.modern-card {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #1e1e1e;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Card Content & Actions */
.card-content, .card-content.category-card {
    padding: 10px;
    background-color: #1e1e1e;
    text-align: center;
}

/* Force the card content to take up available space uniformly */
.card-content.category-card {
    flex: 1;
    /* min-height: 200px; */
}

.card-content h2 {
    font-size: 2rem;
    color: #1976d3;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eee;
}

.card-actions {
    padding: 20px;
    background: #2c2c2c;
    text-align: center;
}

/* Make all main containers as wide as .nav-wrapper.container */
nav .container,
.container.modern-dashboard,
.container.main-content,
.container {
    width: 100%;
    max-width: 1280px; /* Use the same max-width as Materialize's nav-wrapper container if needed; adjust as necessary */
    margin: 0 auto;
    padding: 0 15px; /* Optional: add horizontal padding if desired */
}

/* Header & Navigation */
/*
nav {
    background-color: #1e1e1e;
}
nav a {
    color: #eee;
}
*/

/* Mobile Sidenav */
.sidenav {
    background-color: #1e1e1e;
}
.sidenav a {
    color: #eee;
}

/* Links */
a {
    color: #1975d2;
    text-decoration: none;
}

/* Enhanced Homepage Styles */

/* Override container constraints for full-width hero */
.home-page .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* But restore normal container for content sections */
.home-page .stats-section .container,
.home-page .features-section .container,
.home-page .specialties-section .container,
.home-page .cta-section .container {
    max-width: 1200px !important;
    padding: 0 15px !important;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(25, 118, 210, 0.8), rgba(13, 71, 161, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-btn {
    font-weight: 600;
    padding: 15px 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1976d3;
    margin: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Add Case Button Styling */
.add-case-btn {
    background: linear-gradient(135deg, #1976d3 0%, #0d47a1 100%);
    border: 1px solid #1976d3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-case-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 118, 211, 0.3);
    background: linear-gradient(135deg, #2196f3 0%, #1976d3 100%);
}

.add-case-btn .stat-value {
    color: #ffffff;
    font-size: 2rem;
}

.add-case-btn .stat-label {
    color: #ffffff;
    font-weight: 600;
}

.add-case-btn .stat-value i {
    display: block;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1976d3, #42a5f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1976d3, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Specialty Cards */
.specialties-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.specialty-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.specialty-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-image img {
    transform: scale(1.1);
}

.specialty-content {
    padding: 1.5rem;
}

.specialty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.specialty-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #1976d3 0%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Enhanced Authentication Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.auth-bg-pattern {
    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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.auth-logo {
    animation: pulse 2s infinite;
}

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

.auth-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.auth-card .card-body {
    position: relative;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.auth-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form .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;
}

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

.auth-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.auth-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Enhanced Cases Page Styles */
.cases-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.cases-header::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="2" fill="rgba(13,110,253,0.1)"/></svg>');
    opacity: 0.5;
}

.cases-stats .stat-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cases-stats .stat-item:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.case-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.case-item .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.case-item .card-footer {
    background: rgba(248, 249, 250, 0.5);
}

/* Empty State Styles */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Enhanced Search and Filter Styles */
.input-group .form-control:focus {
    z-index: 3;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.btn-group .btn {
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Enhanced Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Enhanced Table Dark Mode Support */
.table-dark {
    --bs-table-bg: var(--bs-dark);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    --bs-table-hover-color: var(--bs-body-color);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

.table-dark > :not(caption) > * > * {
    border-bottom-color: var(--bs-border-color);
}

.table-dark thead th {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--bs-border-color);
}

/* Cases specific styling */
.cases-stats {
    background: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
}

.stat-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

/* Card dark mode improvements */
.card.bg-dark {
    border: 1px solid var(--bs-border-color);
}

.card.bg-dark .card-body {
    background: var(--bs-dark);
}

/* Better button styling in dark mode */
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Form controls in dark mode */
.form-control, .form-select {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bs-dark);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.input-group-text {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Toast Notifications */
.toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Theme Enhancements */
body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Enhanced Navigation Bar */
.navbar.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #1976d3 0%, #1565c0 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: #ffffff !important;
}

/* Enhanced Custom Dropdown */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-toggle {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-dropdown-toggle:hover,
.custom-dropdown-toggle:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.375rem;
}

.custom-dropdown-toggle.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.375rem;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 280px;
    padding: 0.75rem 0;
    margin: 0.5rem 0 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.custom-dropdown.show .custom-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-header {
    color: #888 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem !important;
    margin-bottom: 0.25rem;
}

.custom-dropdown-menu .dropdown-item {
    color: #e0e0e0 !important;
    padding: 0.75rem 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
}

.custom-dropdown-menu .dropdown-item:hover {
    background: rgba(25, 118, 210, 0.15) !important;
    color: #ffffff !important;
}

.custom-dropdown-menu .dropdown-item.active {
    background: rgba(25, 118, 210, 0.25) !important;
    color: #ffffff !important;
    position: relative;
}

.custom-dropdown-menu .dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1976d3;
}

.custom-dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.custom-dropdown-menu .dropdown-divider {
    border-color: #333 !important;
    margin: 0.5rem 0 !important;
}

/* Enhanced Main Content Area */
.container {
    background: transparent !important;
}

/* Enhanced Cards for Dark Mode */
.card {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #e0e0e0 !important;
}

.card-header {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #333 !important;
    color: #ffffff !important;
}

.card-body {
    background-color: #1e1e1e !important;
}

.card-footer {
    background-color: #2d2d2d !important;
    border-top: 1px solid #333 !important;
}

/* Enhanced Tables for Dark Mode */
.table {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

.table thead th {
    background-color: #2d2d2d !important;
    border-color: #333 !important;
    color: #ffffff !important;
}

.table tbody tr {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

.table tbody tr:hover {
    background-color: #2d2d2d !important;
}

.table td {
    border-color: #333 !important;
}

/* Enhanced Buttons for Dark Mode */
.btn-primary {
    background: linear-gradient(135deg, #1976d3 0%, #1565c0 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(25, 118, 211, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 211, 0.4);
}

.btn-outline-primary {
    border: 2px solid #1976d3 !important;
    color: #1976d3 !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #1976d3 !important;
    color: #ffffff !important;
    border-color: #1976d3 !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: #6c757d !important;
    color: #ffffff !important;
}

/* Enhanced Form Controls for Dark Mode */
.form-control {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

.form-control:focus {
    background-color: #2d2d2d !important;
    border-color: #1976d3 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 211, 0.25) !important;
}

.form-control::placeholder {
    color: #888 !important;
}

.form-select {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 6.5 6.5L14 6'/%3e%3c/svg%3e") !important;
}

.form-select:focus {
    background-color: #2d2d2d !important;
    border-color: #1976d3 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 211, 0.25) !important;
}

.input-group-text {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

/* Enhanced Labels and Text */
.form-label {
    color: #e0e0e0 !important;
    font-weight: 500;
}

.text-muted {
    color: #888 !important;
}

.form-text {
    color: #888 !important;
}

/* Enhanced Badges */
.badge.bg-primary {
    background: linear-gradient(135deg, #1976d3 0%, #1565c0 100%) !important;
}

.badge.bg-light {
    background-color: #444 !important;
    color: #e0e0e0 !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #000 !important;
}

/* Enhanced Alert Messages */
.alert {
    border: none !important;
    border-radius: 0.75rem !important;
}

.alert-primary {
    background-color: rgba(25, 118, 210, 0.15) !important;
    border-left: 4px solid #1976d3 !important;
    color: #e0e0e0 !important;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.15) !important;
    border-left: 4px solid #28a745 !important;
    color: #e0e0e0 !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-left: 4px solid #dc3545 !important;
    color: #e0e0e0 !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-left: 4px solid #ffc107 !important;
    color: #e0e0e0 !important;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.15) !important;
    border-left: 4px solid #17a2b8 !important;
    color: #e0e0e0 !important;
}

/* Enhanced Background Sections */
.bg-light {
    background-color: #2d2d2d !important;
}

.bg-white {
    background-color: #1e1e1e !important;
}

.bg-secondary {
    background-color: #404040 !important;
}

/* Enhanced Border Colors */
.border {
    border-color: #333 !important;
}

.border-light {
    border-color: #444 !important;
}

/* Enhanced Case Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border: 1px solid #333;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #1976d3;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d3;
}

.stat-label {
    color: #888;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Search and Filter Section */
.search-filter-bar .card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%) !important;
    border: 1px solid #333 !important;
}

/* Enhanced Modal for Dark Mode */
.modal-content {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}

.modal-header {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #333 !important;
}

.modal-footer {
    background-color: #2d2d2d !important;
    border-top: 1px solid #333 !important;
}

/* Enhanced Dropdown Menu Positioning for Mobile */
@media (max-width: 991.98px) {
    .custom-dropdown-menu {
        position: static;
        width: 100%;
        margin: 0.5rem 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
    }
    
    .custom-dropdown-menu .dropdown-item {
        padding: 0.75rem 1.5rem;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand i {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Section Animation */
.animate-in {
    animation: slideInUp 0.8s ease-out;
}

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

/* Final Polish and Accessibility Improvements */
/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.custom-dropdown-toggle:focus {
    outline: 2px solid #1976d3;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 211, 0.25) !important;
}

/* Improved card hover states */
.card:hover,
.dashboard-card:hover,
.feature-card:hover,
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Better responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Better form styling for dark mode */
.form-floating > label {
    color: #aaa !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1976d3 !important;
}

/* Improved alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left-color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left-color: #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-left-color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left-color: #17a2b8;
}

/* Enhanced modal styling for dark mode */
.modal-content {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
}

.modal-header {
    border-bottom: 1px solid #444 !important;
}

.modal-footer {
    border-top: 1px solid #444 !important;
}

/* Better pagination styling */
.pagination .page-link {
    background-color: #2a2a2a;
    border-color: #444;
    color: #eee;
}

.pagination .page-link:hover {
    background-color: #1976d3;
    border-color: #1976d3;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #1976d3;
    border-color: #1976d3;
}

/* Improved badge styling */
.badge {
    font-weight: 500;
    font-size: 0.75em;
    border-radius: 0.375rem;
}

/* Enhanced tooltips for dark mode */
.tooltip .tooltip-inner {
    background-color: #333;
    color: #eee;
}

.tooltip .tooltip-arrow {
    border-top-color: #333;
}

/* Better print styles */
@media print {
    .navbar,
    .btn,
    .sidebar {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .btn {
        border: 2px solid #fff;
    }
    
    .text-muted {
        color: #ccc !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-slideshow .hero-slide {
        animation: none !important;
    }
}

/* Upload Form Enhancements */
.upload-header {
    background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-gray-200) 100%);
    border-bottom: 1px solid var(--bs-border-color);
}

.form-progress {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--bs-gray-600);
    transition: all 0.3s ease;
    border: 2px solid var(--bs-gray-300);
}

.step.active .step-icon {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.875rem;
    color: var(--bs-gray-600);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.form-step {
    display: none;
}

.form-step.show {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

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

.modality-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--bs-border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bs-body-bg);
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.modality-card:hover {
    border-color: var(--bs-primary);
    background: var(--bs-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.15);
}

.modality-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--bs-gray-600);
    transition: color 0.3s ease;
}

.modality-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    transition: color 0.3s ease;
}

input[type="radio"]:checked + .modality-card {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

input[type="radio"]:checked + .modality-card i,
input[type="radio"]:checked + .modality-card span {
    color: var(--bs-primary);
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--bs-border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    background: var(--bs-light);
    min-height: 120px;
}

.file-upload-area:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.file-upload-area.has-file {
    border-color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.file-icon {
    font-size: 3rem;
    color: var(--bs-gray-500);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.file-upload-area.has-file .file-icon {
    color: var(--bs-success);
}

.file-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
    font-weight: 600;
}

.file-text small {
    color: var(--bs-gray-600);
}

.form-navigation {
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-light);
}

/* Dark mode adjustments for upload form */
@media (prefers-color-scheme: dark) {
    .upload-header {
        background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-gray-800) 100%);
    }
    
    .modality-card {
        background: var(--bs-dark);
        border-color: var(--bs-gray-700);
    }
    
    .modality-card:hover {
        background: var(--bs-gray-800);
    }
    
    .file-upload-area {
        background: var(--bs-dark);
        border-color: var(--bs-gray-700);
    }
    
    .file-upload-area:hover {
        background: var(--bs-gray-800);
    }
    
    .form-navigation {
        background: var(--bs-dark);
        border-color: var(--bs-gray-700);
    }
}