/* ===== VARIABLES ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a1a;
    --card-bg: #1a1a2e;
    --card-hover: #252547;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6c6c8c;
    --border-color: #2a2a4a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #ec4899, #f97316);
    --gradient-dark: linear-gradient(135deg, #0f0f23, #1a1a2e);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.logo-loader {
    text-align: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ===== TYPOGRAPHY ===== */
.logo-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title .title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.hero-title .title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .title-line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-register {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-outline-light {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-cards .card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation: float 3s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation: float 3s ease-in-out infinite 0.5s;
}

.floating-cards .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.floating-cards .card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background: var(--darker-bg);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
}

.process-steps {
    position: relative;
}

.process-line {
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step h5 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-brand .logo-italic {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.footer h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CASE MANAGEMENT STYLES ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.case-sidebar .card-header {
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.case-sidebar .card-title {
    color: white;
    margin: 0;
}

.case-list {
    max-height: 600px;
    overflow-y: auto;
}

.case-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item:hover {
    background: var(--card-hover);
}

.case-item.active {
    background: var(--primary-color);
    color: white;
}

.case-item.active .case-status {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.case-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.case-item-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.case-title {
    font-weight: 600;
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.case-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.case-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.case-detail {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.case-detail .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.case-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.case-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-actions .btn-group .btn {
    border-radius: 8px;
    margin-left: 0.5rem;
}

.ai-disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.case-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.case-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-secondary);
}

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.attachment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
}

.attachment-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.attachment-name {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    word-break: break-all;
}

.report-section {
    margin-bottom: 1.5rem;
}

.report-section:last-child {
    margin-bottom: 0;
}

.report-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.report-section-title i {
    margin-right: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.7;
    color: var(--text-secondary);
}

.lawyer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.lawyer-image, .lawyer-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.lawyer-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.lawyer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.call-button {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

.version-preview .version-item {
    background: transparent;
    border: none;
    padding: 0.75rem 0;
}

.empty-state, .empty-case-state {
    padding: 3rem 1rem;
}

.empty-state i, .empty-case-state i {
    opacity: 0.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-line {
        display: none;
    }
    
    .case-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .case-status {
        margin-top: 0.5rem;
    }
    
    .attachments-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card, .case-detail, .case-sidebar {
        margin: 0.5rem;
    }
    
    .floating-cards .card {
        position: relative;
        margin: 1rem 0;
        animation: none;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
}

/* ===== ANIMATIONS ===== */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* ===== ENHANCED AUTH STYLES ===== */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 3rem !important;
}

.auth-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-main-icon {
    font-size: 2.5rem;
    color: white;
}

.auth-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.auth-main-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Auth Card */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

/* Form Styles */
.form-group-wrapper {
    margin-bottom: 1.5rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1.5rem 1rem 0.5rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-floating > label {
    color: var(--text-secondary);
    padding: 1rem 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.form-floating > .form-control:focus ~ .form-underline {
    width: 100%;
}

/* Auth Submit Button */
.auth-submit-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Auth Footer */
.auth-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Visual Side */
.auth-visual-side {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 20px;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 60%;
    animation-delay: 1s;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.main-visual-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visual-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.visual-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Stats Display */
.stats-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.stat-item-large {
    text-align: center;
}

.stat-item-large .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item-large .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Testimonial */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feature Cards */
.features-grid {
    margin-top: 2rem;
}

.feature-card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-mini:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon-mini {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.2rem;
}

.feature-card-mini h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card-mini p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Benefits Grid */
.benefits-title {
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.benefit-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Password Requirements */
.password-requirements {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.requirements-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.requirement-item i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Features Showcase */
.features-showcase {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.feature-showcase-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.badge-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
    font-size: 1rem;
}

.badge-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.badge-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .auth-main-title {
        font-size: 2rem;
    }
    
    .stats-display {
        gap: 1.5rem;
    }
    
    .stat-item-large .stat-number {
        font-size: 1.8rem;
    }
    
    .benefit-card {
        margin-bottom: 1rem;
    }
    
    .achievement-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-main-title {
        font-size: 1.8rem;
    }
    
    .visual-title {
        font-size: 1.8rem;
    }
    
    .stats-display {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ===== NAVIGATION ENHANCEMENTS ===== */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.navbar-nav .nav-link:not(.btn-register):hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color) !important;
}

/* Get Started Button Styles */
.btn-register {
    background: var(--gradient-primary);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.6rem 1.5rem !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

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

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    color: white !important;
    border-color: transparent;
}

.btn-register:active {
    transform: translateY(0);
}

/* Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.125rem 0;
    }
    
    .btn-register {
        margin: 0.5rem 0 0 0;
        padding: 0.75rem 1.5rem !important;
        justify-content: flex-start;
        width: auto;
        display: inline-flex;
    }
    
    .navbar-nav .ms-lg-2 {
        margin-left: 0 !important;
    }
    
    .navbar-nav .mt-2 {
        margin-top: 1rem !important;
    }
}

/* Desktop Navigation Refinements */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    .btn-register {
        margin-left: 0.5rem;
    }
    
    /* Hover effect for regular links */
    .navbar-nav .nav-link:not(.btn-register)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .navbar-nav .nav-link:not(.btn-register):hover::after {
        width: 80%;
    }
}

/* Active state for current page */
.navbar-nav .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color) !important;
}

/* Loading screen adjustment for fixed navbar */
body {
    padding-top: 76px; /* Adjust based on navbar height */
}

/* Ensure proper spacing for fixed navbar */
.container.mt-5.pt-4 {
    min-height: calc(100vh - 76px);
}

/* Smooth transitions for navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}



/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    padding: 1rem 0;
}

/* Welcome Card */
.welcome-card {
    background: var(--gradient-dark);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.welcome-emoji {
    font-style: normal;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Stats Cards */
.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.stats-card-primary {
    border-left: 4px solid var(--primary-color);
}

.stats-card-success {
    border-left: 4px solid var(--success-color);
}

.stats-card-warning {
    border-left: 4px solid var(--warning-color);
}

.stats-card-info {
    border-left: 4px solid var(--info-color);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stats-card-success .stats-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stats-card-warning .stats-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stats-card-info .stats-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stats-label {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.stats-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions-card,
.recent-cases-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.quick-actions-card .card-header,
.recent-cases-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.quick-actions-card .card-title,
.recent-cases-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.action-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
    color: var(--text-primary);
}

.action-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.action-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.action-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
}

/* Cases Timeline */
.cases-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.case-timeline-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.case-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.case-meta {
    margin: 0;
}

.status-completed {
    background: var(--success-color) !important;
}

.status-processing {
    background: var(--warning-color) !important;
}

.status-pending {
    background: var(--info-color) !important;
}

/* ===== SUBMIT CASE STYLES ===== */
.submit-case-container {
    padding: 1rem 0;
}

.submit-header {
    margin-bottom: 3rem;
}

.submit-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-lg);
}

.submit-icon i {
    font-size: 2.5rem;
    color: white;
}

.submit-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.submit-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.submit-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Form Sections */
.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* File Upload */
.file-upload-area {
    margin-top: 1rem;
}

.file-upload-card {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-card:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-card h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-upload-input {
    display: none;
}

.file-upload-info {
    margin-top: 1rem;
}

/* Case Description Textarea */
.case-description-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.case-description-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

/* Submit Button */
.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Tips Card */
.tips-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.tips-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ===== VIEW CASES STYLES ===== */
.cases-container {
    padding: 1rem 0;
}

.page-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Cases Sidebar */
.cases-sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.cases-sidebar-card .card-header {
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.cases-sidebar-card .card-title {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

.cases-list {
    max-height: 600px;
    overflow-y: auto;
}

.case-list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.case-list-item:last-child {
    border-bottom: none;
}

.case-list-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
}

.case-list-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
}

.case-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-item-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.case-title {
    font-weight: 600;
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.case-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
}

.status-completed {
    background: var(--success-color);
}

.status-processing {
    background: var(--warning-color);
}

.status-pending {
    background: var(--info-color);
}

.case-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.case-item-actions .btn-group {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-list-item:hover .case-item-actions .btn-group {
    opacity: 1;
}

/* Case Detail Card */
.case-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.case-detail-card .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
}

.case-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-status-lg {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.case-meta-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.case-actions .btn-group .btn {
    border-radius: 8px;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Case Sections */
.case-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.case-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.case-section .section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.case-description-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Welcome Case Card */
.welcome-case-card {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    text-align: center;
}

.welcome-case-icon {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.welcome-case-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.welcome-features {
    margin-top: 2rem;
}

.feature-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-point i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-point span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Empty States */
.empty-state {
    padding: 3rem 1rem;
}

.empty-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .submit-title,
    .page-title {
        font-size: 2rem;
    }
    
    .case-detail-title {
        font-size: 1.5rem;
    }
    
    .case-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .case-actions .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .case-actions .btn-group .btn {
        margin: 0.25rem 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .welcome-card,
    .submit-form-card,
    .cases-sidebar-card,
    .case-detail-card {
        margin: 0 0.5rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .submit-title,
    .page-title {
        font-size: 1.8rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}







/* ===== EDIT CASE STYLES ===== */
.edit-case-container {
    padding: 1rem 0;
}

.breadcrumb-nav .breadcrumb {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Edit Form Card */
.edit-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.edit-form-card .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.edit-form-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.case-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* Form Sections for Edit */
.edit-case-form .form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.edit-case-form .form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.edit-case-form .section-header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.edit-case-form .section-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Original Description */
.original-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Case Edit Textarea */
.case-edit-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 150px;
}

.case-edit-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Form Select Styling */
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Form Actions */
.form-actions {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* AI Report Card */
.ai-report-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.ai-report-card .card-header {
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.ai-report-card .card-title {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Case Info Card */
.case-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.case-info-card .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.case-info-card .card-title {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.info-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.info-item span {
    color: var(--text-secondary);
    text-align: right;
}

.version-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Edit History Card */
.edit-history-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.edit-history-card .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.edit-history-card .card-title {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.history-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-header strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-meta {
    margin-bottom: 0.25rem;
}

.history-reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.empty-history {
    padding: 2rem 1rem;
}

/* Quick Actions Card */
.quick-actions-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.quick-actions-card .card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.quick-actions-card .card-title {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateX(5px);
}

/* ===== CASE HISTORY STYLES ===== */
.case-history-container {
    padding: 1rem 0;
}

.history-main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.history-main-card .card-header {
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.history-main-card .card-title {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

/* History Accordion */
.history-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.history-accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.history-accordion-header {
    margin: 0;
}

.history-accordion-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.history-accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.history-accordion-button:hover {
    background: rgba(99, 102, 241, 0.15);
}

.history-accordion-button::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.history-accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.version-header {
    flex: 1;
    text-align: left;
}

.version-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.version-title strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.version-reason {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.version-meta {
    text-align: right;
    margin-left: 1rem;
}

.version-author {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* History Accordion Body */
.history-accordion-collapse {
    transition: all 0.3s ease;
}

.history-accordion-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.history-accordion-body .section-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.detail-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Attachments List */
.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.attachment-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.attachment-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.attachment-link:hover {
    color: var(--secondary-color);
}

/* Analysis Sections */
.analysis-section {
    margin-top: 1rem;
}

.analysis-item {
    margin-bottom: 1.5rem;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

.analysis-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.analysis-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

.no-analysis {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

/* Empty History State */
.empty-history {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-history-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-history-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.empty-history-text {
    font-size: 1.1rem;
}

/* Responsive Design for Edit & History Pages */
@media (max-width: 768px) {
    .edit-form-card .card-header,
    .history-main-card .card-header {
        padding: 1.5rem;
    }
    
    .history-accordion-button {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .version-meta {
        text-align: left;
        margin-left: 0;
        width: 100%;
    }
    
    .history-accordion-body {
        padding: 1.5rem;
    }
    
    .version-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-item span {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .edit-case-container,
    .case-history-container {
        padding: 0.5rem;
    }
    
    .edit-form-card,
    .history-main-card {
        margin: 0 0.5rem 1rem;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
        margin: 0 !important;
    }
}

/* Fix for form-select in dark theme */
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

/* Ensure options are readable in dark theme */
.form-select option {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

.form-select option:checked {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Fix for file upload input */
.file-upload-input {
    display: none;
}

.file-upload-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-card:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}