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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #06b6d4;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --code-bg: #f8fafc;
    --code-header-bg: #e2e8f0;
    --code-border: #cbd5e1;
    --code-text: #1e293b;
    --code-keyword: #0369a1;
    --code-string: #059669;
    --code-comment: #64748b;
    --hero-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --footer-bg: #0f172a;
    --footer-text: #ffffff;
    --footer-text-secondary: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    
    /* Severity Colors */
    --color-critical: #DC2626;
    --color-error: #EA580C;
    --color-warning: #F59E0B;
    --color-success: #10B981;
    --color-info: #3B82F6;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #94a3b8;
    --accent: #22d3ee;
    --background: #0f172a;
    --background-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-bg-scrolled: rgba(15, 23, 42, 0.98);
    --code-bg: #0d1117;
    --code-header-bg: #161b22;
    --code-border: #21262d;
    --code-text: #d4d4d4;
    --code-keyword: #569cd6;
    --code-string: #ce9178;
    --code-comment: #6a9955;
    --hero-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --footer-bg: #f8fafc;
    --footer-text: #0f172a;
    --footer-text-secondary: rgba(15, 23, 42, 0.7);
    --footer-border: rgba(15, 23, 42, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-padding-top: 6rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 79.4px;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 78.4px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Theme Toggle */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.theme-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: absolute;
}

.theme-toggle-btn:hover .theme-icon {
    color: var(--primary);
}

.theme-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.hidden {
    display: none;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Explore Section */
.explore {
    padding: 0 0 4rem;
    background: var(--background);
    margin-top: 5rem;
    scroll-margin-top: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.search-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input:focus {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.browse-section {
    padding: 0 0 4rem;
    background: var(--background);
    margin-top: 5rem;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 500px;
    max-width: 100%;
    margin-top: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--background-secondary);
}

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

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

.search-result-icon {
    font-size: 1.5rem;
}

.search-result-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.search-result-findings {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.search-result-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--secondary);
    flex-wrap: wrap;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Reports Section */
.reports-section {
    padding: 6rem 0;
    background: var(--background-secondary);
    scroll-margin-top: 6rem;
}

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

.report-card {
    display: block;
    background: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

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

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

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.report-card .icon {
    font-size: 1.5rem;
}

.report-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.report-date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.severity-summary {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.severity-badge.high {
    background: rgba(220, 38, 38, 0.1);
    color: var(--color-critical);
}

.severity-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.severity-badge.low {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.report-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.report-link-text::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.report-card:hover .report-link-text {
    gap: 0.75rem;
}

.report-card:hover .report-link-text::after {
    transform: translateX(4px);
}

/* Table Section */
.table-section {
    padding: 0 0 6rem;
    background: var(--background);
}

.table-view {
    background: var(--background-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.close-table-btn {
    padding: 0.5rem 1rem;
    background: var(--color-error);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.close-table-btn:hover {
    background: var(--color-critical);
    transform: translateY(-2px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.filter-group select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    background: var(--background) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    appearance: none;
}

.filter-group select:focus {
    border-color: var(--primary);
}

.table-wrapper {
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    background: var(--background);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: var(--background-secondary);
}

.sort-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--text-secondary);
    transition: all 0.2s ease;
    opacity: 0.5;
}

.sortable.sort-asc .sort-indicator {
    border-bottom: 4px solid var(--primary);
    border-top: none;
    opacity: 1;
}

.sortable.sort-desc .sort-indicator {
    border-top: 4px solid var(--primary);
    border-bottom: none;
    opacity: 1;
}

.reports-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.reports-table tr:last-child td {
    border-bottom: none;
}

.reports-table tr:hover {
    background: var(--background);
}

.text-center {
    text-align: center !important;
}

.project-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.severity-high {
    color: var(--color-critical);
    font-weight: 600;
}

.severity-medium {
    color: var(--color-warning);
    font-weight: 600;
}

.severity-low {
    color: var(--color-info);
    font-weight: 600;
}

.tool-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--footer-text);
}

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

.footer-section p {
    color: var(--footer-text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

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

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

.footer-section a:hover {
    color: var(--footer-text);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--footer-text-secondary);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Loading and Error States */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0.9;
}

.error {
    grid-column: 1 / -1;
    background: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--color-error);
}

.error h3 {
    color: var(--color-error);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== SCORE CIRCLE ===== */
.score-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, currentColor, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
}

.score-circle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.125rem;
}

.score-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-align: center;
}

/* Score color variants */
.score-circle.excellent {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
}

.score-circle.good {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.score-circle.fair {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
}

.score-circle.poor {
    background: linear-gradient(135deg, #EA580C 0%, #FB923C 100%);
    color: white;
}

.score-circle.critical {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translate(0, 0.66rem) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translate(0, -0.66rem) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mobile nav link styles */
    .nav-menu .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: right;
        font-size: 1.1rem;
    }

    .nav-menu .nav-link:last-of-type {
        border-bottom: none;
    }

    /* Mobile theme toggle */
    .nav-menu .theme-toggle-btn {
        margin-top: 1rem;
        align-self: flex-end;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .explore {
        margin-top: 4rem;
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
        min-width: unset;
    }
    
    .stat-value {
        font-size: 2.25rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .reports-grid {
        gap: 1.5rem;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .reports-table {
        font-size: 0.85rem;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .report-card h3 {
        font-size: 1.25rem;
    }
}
