/* Professional Red & White Blockchain Evidence Management System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --primary-red: #D32F2F;
    --primary-red-dark: #C41C3B;
    --primary-red-light: #FFEBEE;
    --secondary-red: #F44336;
    --accent-red: #FF5252;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #757575;
    --text-primary: #212121;
    --text-secondary: #424242;
    --text-muted: #757575;
    --border-light: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(211, 47, 47, 0.2);
    --card-bg: var(--white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off-white);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: float 25s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(211, 47, 47, 0.1);
}

@keyframes neonGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Professional Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

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

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

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

/* Professional Buttons */
.btn {
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    position: relative;
    box-shadow: var(--shadow-light);
    font-family: 'Inter', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-success {
    background: #2E7D32;
}

.btn-success:hover {
    background: #1B5E20;
}

.btn-warning {
    background: #F57C00;
}

.btn-warning:hover {
    background: #E65100;
}

.btn-danger {
    background: var(--secondary-red);
}

.btn-danger:hover {
    background: var(--primary-red-dark);
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
    letter-spacing: -0.01em;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-control:hover {
    border-color: var(--medium-gray);
}

/* Select Dropdown */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23757575' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Role Selection */
.role-selection {
    margin: 40px 0;
}

.role-selection h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.role-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-light);
}

.role-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--neon-blue), var(--neon-purple), var(--neon-green), var(--neon-blue));
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.role-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    z-index: 1;
}

.role-card:hover::before {
    opacity: 1;
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-medium);
}

.role-card.selected {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
    box-shadow: var(--shadow-medium);
}

.role-card.selected::before {
    opacity: 1;
}

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

.role-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.role-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional Status Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
}

.badge-public { background: #2E7D32; }
.badge-investigator { background: var(--primary-red); }
.badge-forensic { background: #F57C00; }
.badge-legal { background: #7B1FA2; }
.badge-court { background: #1976D2; }
.badge-manager { background: #455A64; }
.badge-auditor { background: #5D4037; }
.badge-admin { background: #424242; }

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: 500;
    border-left: 5px solid;
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-success {
    background: #E8F5E8;
    border-color: #2E7D32;
    color: #1B5E20;
}

.alert-error {
    background: #FFEBEE;
    border-color: var(--secondary-red);
    color: var(--primary-red-dark);
}

.alert-info {
    background: #E3F2FD;
    border-color: #1976D2;
    color: #0D47A1;
}

/* Loading Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-heavy);
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wallet Status */
.wallet-status {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
    background: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid var(--border-light);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Features Section */
.features-section {
    margin: 50px 0;
    text-align: center;
}

.features-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* User Info Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 4rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-details h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.user-role {
    margin: 10px 0;
}

.user-details p {
    color: var(--text-secondary);
    margin: 4px 0;
    letter-spacing: -0.01em;
}

/* Card Headers */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 1.875rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* Wallet Info */
.wallet-info {
    text-align: center;
    margin: 30px 0;
}

.wallet-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.wallet-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Form Styling */
.registration-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.card-actions {
    text-align: center;
    margin-top: 30px;
}

/* Subtitle styling */
.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 16px;
    letter-spacing: -0.01em;
}

.highlight {
    color: var(--primary-red);
    font-weight: 600;
}

/* Network name styling */
.network-name {
    color: var(--primary-red);
    font-weight: 600;
}

/* Wallet details */
.wallet-details {
    margin: 20px 0;
}

.wallet-details p {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.wallet-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* About Section */
.about-section {
    margin: 40px 0;
}

.about-section .card-body {
    text-align: left;
}

.about-section h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 24px 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-section li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    letter-spacing: -0.01em;
}

.about-section li::before {
    content: '🔹';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.about-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1, .dashboard-hero h1 {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 25px;
        margin: 20px 0;
    }
    
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-list {
        flex-wrap: wrap;
    }
}

/* Professional Fields Animation */
.professional-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.professional-fields.show {
    max-height: 500px;
    opacity: 1;
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px currentColor;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--light-gray);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

/* Dashboard Hero */
.dashboard-hero {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin: 24px 0;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.dashboard-hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.dashboard-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.75rem;
    color: var(--primary-red);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-red);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-text {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.stats-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Tabs */
.tabs {
    margin: 32px 0;
}

.tab-list {
    display: flex;
    list-style: none;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.tab-button.active {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.tab-button:hover:not(.active) {
    background: var(--light-gray);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    margin-top: 30px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Form Elements for Dashboard */
.form-input, .form-select, .form-textarea {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    outline: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Button Variants */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Utility Classes */
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.p-8 { padding: 2rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Loading Animation */
.loading {
    width: 32px;
    height: 32px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Lists */
.list-disc {
    list-style-type: disc;
}

.pl-6 {
    padding-left: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Text Utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

/* Modal Updates */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.modal-close:hover {
    color: var(--primary-red);
}

.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--glass-border);
}

.comments-section h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Role-Based Dashboard Styles */

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.case-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
}

.case-meta {
    margin-bottom: 12px;
}

.case-meta span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.case-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Evidence List */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.evidence-icon {
    font-size: 1.5rem;
}

.evidence-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

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

/* Task List */
.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.task-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
}

.task-item label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

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

.tool-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-red);
}

.report-icon {
    font-size: 1.8rem;
    color: var(--primary-red);
}

.report-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

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

/* Action Items */
.action-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-light);
}

.action-icon {
    font-size: 1.5rem;
    color: var(--secondary-red);
    flex-shrink: 0;
}

.action-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Case Analysis Cards */
.case-analysis-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.case-analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.evidence-count {
    margin-bottom: 15px;
}

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

/* Evidence Analysis Styles */
.evidence-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.evidence-analysis-item {
    background: var(--light-gray);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
}

.evidence-analysis-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.evidence-analysis-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.evidence-actions {
    display: flex;
    gap: 8px;
}

.analysis-actions {
    text-align: center;
    margin-top: 20px;
}

/* Modal Large Variant */
.modal-content.large {
    max-width: 900px;
    width: 95%;
}

/* Status Classes for Badges */
.badge-secondary { background: #6c757d; }
.badge-primary { background: #007bff; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-info { background: #17a2b8; }
.badge-success { background: #28a745; }
.badge-danger { background: #dc3545; }
.badge-dark { background: #343a40; }

/* Button Groups */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Search Interface */
.search-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow-light);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-primary);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.filter-select, .filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--primary-red);
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Adjustments for Role Dashboards */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .case-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .evidence-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group {
        flex-direction: column;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sort-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Case Detail Page Styles */

/* Case Detail Header */
.case-detail-header {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow-light);
}

.case-title-section h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.case-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

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

.case-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Case Overview Grid */
.case-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.overview-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Suspects Section */
.suspects-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.suspects-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-red);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-light);
}

.timeline-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

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

/* Blockchain Status */
.blockchain-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.status-icon {
    font-size: 1.5rem;
}

.status-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* Evidence Item Styles */
.evidence-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.evidence-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.evidence-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.evidence-content {
    flex: 1;
}

.evidence-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.evidence-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.evidence-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.evidence-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.evidence-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsive adjustments for case details */
@media (max-width: 768px) {
    .case-detail-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .case-title-section h1 {
        font-size: 1.75rem;
    }

    .case-overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .overview-item span {
        text-align: left;
    }

    .case-actions {
        justify-content: center;
    }

    .evidence-item {
        flex-direction: column;
        gap: 12px;
    }

    .evidence-meta {
        justify-content: center;
    }

    .evidence-actions {
        justify-content: center;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -15px;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}