/**
 * Reports Module - CSS Theme Variables v1.0.0
 *
 * Design System:
 * - Primary: #1e40af (Deep Blue)
 * - Secondary: #3b82f6 (Bright Blue)
 * - Accent: #60a5fa (Light Blue)
 *
 * Integrates with Teams module design
 * Dark mode is default, light mode via data-theme="light"
 */

/* ========================================
   DARK MODE (DEFAULT)
   ======================================== */
:root {
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #475569;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Border Colors */
    --border-color: #334155;
    --border-light: #475569;

    /* Accent Colors - Blue Theme (matches Teams) */
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;

    /* Match Status Colors */
    --status-live: #ef4444;
    --status-scheduled: #3b82f6;
    --status-completed: #10b981;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px 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.2);

    /* Gradients */
    --gradient-header: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-card: linear-gradient(135deg, #1e293b, #334155);
    --gradient-success: linear-gradient(135deg, #10b981, #34d399);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f87171);

    /* Header */
    --header-bg: #1e293b;
    --header-text: #f1f5f9;
    --header-border: #334155;

    /* Cards */
    --card-bg: #1e293b;
    --card-border: #334155;
    --card-hover-bg: #334155;

    /* Forms */
    --input-bg: #334155;
    --input-border: #475569;
    --input-text: #f1f5f9;
    --input-placeholder: #64748b;
    --input-focus-border: #3b82f6;
    --input-focus-ring: rgba(59, 130, 246, 0.2);

    /* Tables */
    --table-header-bg: rgba(59, 130, 246, 0.1);
    --table-row-hover: rgba(59, 130, 246, 0.05);
    --table-border: #334155;

    /* Theme Toggle */
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-hover-bg: rgba(255, 255, 255, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ========================================
   LIGHT MODE
   ======================================== */
[data-theme="light"] {
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);

    /* Gradients */
    --gradient-card: linear-gradient(135deg, #ffffff, #f8fafc);

    /* Header - Keep gradient in light mode */
    --header-bg: linear-gradient(135deg, #1e40af, #3b82f6);
    --header-text: #ffffff;
    --header-border: rgba(255, 255, 255, 0.2);

    /* Cards */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover-bg: #f8fafc;

    /* Forms */
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-text: #1f2937;
    --input-placeholder: #9ca3af;

    /* Tables */
    --table-header-bg: #f8fafc;
    --table-row-hover: #f1f5f9;
    --table-border: #e2e8f0;

    /* Theme Toggle */
    --toggle-bg: rgba(0, 0, 0, 0.1);
    --toggle-hover-bg: rgba(0, 0, 0, 0.15);
}

/* ========================================
   HEADER STYLES
   ======================================== */
.header {
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-link img {
    height: 2.5rem;
    width: auto;
}

.header-divider {
    height: 2rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.header-title {
    display: none;
}

@media (min-width: 640px) {
    .header-title {
        display: block;
    }
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-title h1 i {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-md);
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.back-btn:hover,
.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.stats-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-bar-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    background: var(--bg-primary);
    min-height: calc(100vh - 120px);
    padding: 1.5rem;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */
.tab-nav {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--accent-primary);
}

/* ========================================
   STAT CARDS
   ======================================== */
.stat-card {
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: white;
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-card.success {
    background: var(--gradient-success);
}

.stat-card.warning {
    background: var(--gradient-warning);
}

.stat-card.danger {
    background: var(--gradient-danger);
}

/* ========================================
   MATCH CARDS
   ======================================== */
.match-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-normal);
}

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

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.match-team.away {
    justify-content: flex-end;
    text-align: right;
}

.match-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.match-team-name {
    font-weight: 600;
    color: var(--text-primary);
}

.match-team-name.winner {
    color: var(--success);
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.match-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.match-score-value.winner {
    color: var(--success);
}

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

.match-date {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
}

.match-date-day {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.match-date-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.match-meta {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   MATCH STATUS BADGES
   ======================================== */
.match-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-status.live {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-live);
    animation: pulse 2s infinite;
}

.match-status.scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: var(--status-scheduled);
}

.match-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--status-completed);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   STANDINGS TABLE
   ======================================== */
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--table-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.standings-table thead {
    background: var(--table-header-bg);
}

.standings-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--table-border);
    position: sticky;
    top: 0;
    background: var(--table-header-bg);
    z-index: 10;
}

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

.standings-table tbody tr {
    transition: background var(--transition-fast);
}

.standings-table tbody tr:hover {
    background: var(--table-row-hover);
}

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

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.standings-table .team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 500;
    color: var(--text-primary);
}

.standings-table .position {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.standings-table .position.qualified {
    background: var(--success);
    color: white;
}

.standings-table .position.playoff {
    background: var(--warning);
    color: white;
}

.standings-table .position.relegated {
    background: var(--error);
    color: white;
}

/* ========================================
   GROUP CARDS
   ======================================== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.group-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.group-card-header {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.group-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.group-card-body {
    padding: 0.5rem;
}

.group-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.group-team:hover {
    background: var(--bg-tertiary);
}

.group-team-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.group-team-left span {
    color: var(--text-primary);
}

.group-team-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.group-team-points {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.group-team-gd {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   POSITION BADGES
   ======================================== */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.position-badge.qualified {
    background: var(--success);
    color: white;
}

.position-badge.contention {
    background: var(--warning);
    color: white;
}

.position-badge.eliminated {
    background: var(--text-muted);
    color: white;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

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

.btn-secondary:hover {
    background: var(--bg-hover);
}

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

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

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--input-text);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.form-input::placeholder {
    color: var(--input-placeholder);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.theme-toggle i {
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: transform var(--transition-normal);
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: inline-block;
}

:root .theme-toggle .fa-moon {
    display: none;
}

:root .theme-toggle .fa-sun {
    display: inline-block;
}

/* ========================================
   THEME TRANSITION
   ======================================== */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.empty-state-message {
    color: var(--text-secondary);
}

/* ========================================
   INFO BOXES
   ======================================== */
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.info-box i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* ========================================
   REPORT CARDS
   ======================================== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

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

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

.report-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    text-decoration: none;
    display: block;
}

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

.report-card.hidden-report {
    opacity: 0.5;
    border-style: dashed;
}

.report-card.hidden-report:hover {
    opacity: 0.8;
}

.report-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.report-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.report-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.report-icon.yellow {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.report-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.report-icon.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.report-icon.indigo {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.report-icon.pink {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.report-icon.amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.report-icon.emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.report-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.report-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.report-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.report-link i {
    transition: transform var(--transition-fast);
}

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

/* Hide/Show Toggle Button */
.visibility-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 10;
}

.report-card:hover .visibility-toggle {
    opacity: 1;
}

.visibility-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.visibility-toggle.hidden {
    color: var(--error);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-primary);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Show Hidden Toggle */
.show-hidden-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.show-hidden-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.show-hidden-toggle.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hidden Badge on Card */
.hidden-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--error);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Confirmation Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
}

.toast.success i {
    color: var(--success);
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.875rem;
}
