/* public/style.css */

/* ==========================================
   Reset and Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #5558e3;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   Typography
   ========================================== */
h1 { font-size: 3rem; font-weight: 700; margin-bottom: var(--spacing-md); }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.25rem; font-weight: 500; margin-bottom: var(--spacing-sm); }
h5 { font-size: 1.125rem; font-weight: 500; margin-bottom: var(--spacing-xs); }
h6 { font-size: 1rem; font-weight: 500; margin-bottom: var(--spacing-xs); }

p { margin-bottom: var(--spacing-md); }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background: white;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('./ksc-logo.png') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    margin-right: 8px;
}


.nav {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gray-900);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
    padding: 4rem var(--spacing-xl) 5rem;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-btn {
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: var(--spacing-md) 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ==========================================
   Category Cards
   ========================================== */
.categories {
    padding: 4rem var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-2xl);
    color: var(--gray-800);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.category-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   Forms
   ========================================== */
.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-section h3 {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

select.form-control {
    cursor: pointer;
}

.required {
    color: var(--danger-color);
}

/* ==========================================
   File Upload
   ========================================== */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    background: white;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

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

.file-list {
    margin-top: var(--spacing-md);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.file-remove {
    color: var(--danger-color);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

/* ==========================================
   Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.modal-header h2 {
    color: var(--gray-800);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--gray-600);
}

/* ==========================================
   Messages & Alerts
   ========================================== */
.success-message,
.error-message,
.warning-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: none;
    animation: slideDown 0.3s ease;
}

.success-message.show,
.error-message.show,
.warning-message.show {
    display: block;
}

.success-message {
    background: var(--success-color);
    color: white;
}

.error-message {
    background: var(--danger-color);
    color: white;
}

.warning-message {
    background: var(--warning-color);
    color: white;
}

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

/* ==========================================
   Anonymous Toggle
   ========================================== */
.anonymous-toggle {
    background: var(--gray-100);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.anonymous-toggle label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-800);
}

.anonymous-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.anonymous-note {
    margin-top: var(--spacing-sm);
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==========================================
   Status Display
   ========================================== */
.status-result {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.status-item {
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.status-item .label {
    display: block;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.status-item .value {
    font-weight: 600;
    font-size: 1.125rem;
}

.status-message {
    padding: var(--spacing-md);
    background: var(--info-color);
    color: white;
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

/* ==========================================
   Badges
   ========================================== */
.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.investigating { background: #dbeafe; color: #1e40af; }
.badge.resolved { background: #d1fae5; color: #065f46; }
.badge.rejected { background: #fee2e2; color: #991b1b; }

/* ==========================================
   Priority Indicators
   ========================================== */
.priority-critical { color: #991b1b; font-weight: 700; }
.priority-high { color: var(--danger-color); font-weight: 600; }
.priority-medium { color: var(--warning-color); }
.priority-low { color: var(--gray-500); }

/* ==========================================
   Footer
   ========================================== */
.footer {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: white;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.footer h2 {
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

/* ==========================================
   Utilities
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ==========================================
   Loading Spinner
   ========================================== */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: var(--spacing-xl) auto;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .header-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        gap: var(--spacing-sm);
    }
    
    .auth-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
    }
    
    .categories {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ==========================================
   Dark Mode Support (Optional)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}


/* ==========================================
   Public Reports Section
   ========================================== */
.public-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.public-report-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

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

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.report-category {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.public-report-card h3 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.report-summary {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.report-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.amount-recovered {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Filter buttons */
.filter-btn {
    margin: 0 0.25rem;
    background: white;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Public Report Detail Modal */
.public-report-detail {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.report-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.public-report-detail h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.report-date {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.report-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.report-section h3 {
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.report-section p,
.report-section li {
    color: var(--gray-700);
    line-height: 1.6;
}

.report-section ul {
    margin-left: 1.5rem;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
}

.warning-box h3 {
    color: #92400e;
}

.status-update {
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.status-update strong {
    color: var(--gray-700);
}

/* Enhanced status display */
.status-result {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
}

.status-result h3 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.public-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.public-notes h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.public-notes p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Authority badges */
.badge.authorities {
    background: #dbeafe;
    color: #1e40af;
}

/* Loading spinner enhancement */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .public-reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ==========================================
   Enhanced Category Cards (Keep existing)
   ========================================== */
.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    /* Optional: Add animation on hover */
    transition: transform var(--transition-normal);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Alternative icon styling with background */
.category-icon-alt {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Custom icons per category */
.category-card[data-category="theft"] .category-icon { color: #ef4444; }
.category-card[data-category="scam"] .category-icon { color: #8b5cf6; }
.category-card[data-category="phishing"] .category-icon { color: #06b6d4; }
.category-card[data-category="bug"] .category-icon { color: #10b981; }
.category-card[data-category="rug_pull"] .category-icon { color: #f59e0b; }
.category-card[data-category="abuse"] .category-icon { color: #6b7280; }

/* ==========================================
   Public Reports Section - Enhanced
   ========================================== */
.public-reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.public-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Ensure consistent card height */
.public-report-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.public-report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.public-report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #6366f1;
}

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

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.report-category {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category-specific colors */
.public-report-card[data-category="theft"] .report-category {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.public-report-card[data-category="scam"] .report-category {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6b21a8;
}

.public-report-card[data-category="phishing"] .report-category {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #075985;
}

.public-report-card[data-category="bug"] .report-category {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.public-report-card[data-category="rug_pull"] .report-category {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.public-report-card[data-category="abuse"] .report-category {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
}

.public-report-card h3 {
    color: #111827;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 0;
}

.report-summary {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.report-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.amount-recovered {
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Enhanced badge styles */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge.pending { 
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.badge.investigating { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge.resolved { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.badge.rejected { 
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.badge.authorities {
    background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
    color: #6b21a8;
}

/* Filter styles */
.reports-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.reports-filters select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-filters select:hover {
    border-color: #6366f1;
}

.reports-filters select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Empty state styling */
#noReportsMessage {
    animation: fadeIn 0.5s ease;
}

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

/* Loading state enhancement */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Public Report Detail Modal */
.public-report-detail {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.report-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.public-report-detail h2 {
    color: #111827;
    margin-bottom: 0.5rem;
}

.report-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.report-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.report-section h3 {
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.report-section p,
.report-section li {
    color: #4b5563;
    line-height: 1.6;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.warning-box h3 {
    color: #92400e;
}

.status-update {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #6366f1;
}

/* Enhanced status display */
.status-result {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
}

.status-result h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.public-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.public-notes h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .public-reports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reports-filters {
        padding: 1rem;
    }
    
    .reports-filters .filter-group {
        width: 100%;
    }
    
    .reports-filters select {
        width: 100%;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 1400px) {
    .public-reports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-900);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;  /* Keep flex display */
        gap: 0.75rem;   /* Smaller gap on mobile */
    }
    
    .nav-links a {
        font-size: 0.875rem;  /* Slightly smaller font */
        padding: 0.25rem;     /* Less padding */
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;    /* Slightly smaller logo text */
    }
}

/* Receipt Modal Styles */
.receipt-modal {
    max-width: 700px;  /* Increased from 600px */
    padding: 0;
    overflow: hidden;
    max-height: 90vh;  /* Taller - 90% of viewport height */
}

.receipt-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.checkmark-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke-width: 2;
    stroke: white;
    stroke-miterlimit: 10;
    animation: checkmark-scale .3s ease-in-out .1s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: white;
    animation: checkmark-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: white;
    animation: checkmark-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.receipt-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.receipt-id {
    padding: 1.5rem;
    background: #f0f9ff;
    border-bottom: 1px solid #e5e7eb;
}

.receipt-id label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.report-id-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
}

.report-id-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e40af;
    letter-spacing: 1px;
    flex: 1;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #2563eb;
}

.copy-btn.copied {
    background: #10b981;
}

.save-reminder {
    display: block;
    margin-top: 0.5rem;
    color: #f59e0b;
    font-weight: 500;
}

.receipt-details {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.receipt-details h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.receipt-content {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

.receipt-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.receipt-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 120px;
    font-size: 0.875rem;
}

.receipt-value {
    flex: 1;
    color: #111827;
}

.receipt-actions {
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Category-specific fields styling */
.category-fields {
    animation: slideDown 0.3s ease-out;
}

.category-fields h4 {
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

/* Dynamic URL list */
.phishing-url {
    margin-bottom: 0.5rem;
}

.url-remove-btn {
    color: #ef4444;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Severity colors */
option[value="critical"] { color: #dc2626; }
option[value="high"] { color: #ea580c; }
option[value="medium"] { color: #ca8a04; }
option[value="low"] { color: #16a34a; }

/* Print styles for receipt */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-modal, .receipt-modal * {
        visibility: visible;
    }
    
    .receipt-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .receipt-actions {
        display: none;
    }
    
    .checkmark-wrapper {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Markdown Content Styling */
.content-body {
    padding: 1.5rem;
}

.markdown-content {
    line-height: 1.8;
    color: #333;
}

.markdown-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.markdown-content h1:first-child {
    margin-top: 0;
}

.markdown-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #1a1a1a;
}

.markdown-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: #1a1a1a;
}

.markdown-content p {
    margin: 1rem 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content a {
    color: #6366f1;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.markdown-content th {
    background: #f9fafb;
    font-weight: 600;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.markdown-content strong {
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}


/* Fix for long addresses in receipt */
#receiptContent .receipt-value {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Make the receipt modal slightly wider to accommodate addresses */
.receipt-modal {
    max-width: 750px;  /* Increased from 700px */
}

/* On mobile, ensure proper wrapping */
@media (max-width: 768px) {
    .receipt-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .receipt-label {
        margin-bottom: 0.25rem;
    }

    .receipt-value {
        width: 100%;
    }
}

/* Format addresses in receipts */
.receipt-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    word-break: break-all;
    border-left: 3px solid #e5e7eb;
}

.receipt-address:hover {
    background: #f3f4f6;
    border-left-color: #6366f1;
}

/* Ensure receipt values with multiple lines display correctly */
.receipt-item .receipt-value {
    display: block;
    margin-top: 0.25rem;
}

.amount-lost {
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.amount-recovered {
    margin-top: 0.25rem; /* Reduced since it might follow amount-lost */
    padding: 0.625rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}



