/* VS Duel Tracker - Premium Styling System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0c10;
    --bg-card: rgba(21, 23, 30, 0.8);
    --bg-input: #15171e;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: #3b82f6;
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --accent: #4f46e5;
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.2);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #272a37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f4458;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(15, 17, 23, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    padding: 0 8px;
}

.brand-logo {
    font-size: 28px;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--text-main);
    background-color: var(--primary-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-lock {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-lock:hover {
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.btn-lock.authenticated {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - var(--sidebar-width));
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-title p {
    font-size: 14px;
    color: var(--text-muted);
}

.week-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dropdowns / Inputs */
select, input[type="text"], input[type="number"], input[type="date"], input[type="password"] {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-fast);
    outline: none;
}

select:focus, input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none; /* In production, we'd add hamburger. Keep it simple. */
    }
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 16px;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* KPI Stats */
.kpi-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-icon.blue { background-color: rgba(59, 130, 246, 0.12); color: var(--primary); }
.kpi-icon.green { background-color: rgba(16, 185, 129, 0.12); color: var(--success); }
.kpi-icon.warning { background-color: rgba(245, 158, 11, 0.12); color: var(--warning); }
.kpi-icon.danger { background-color: rgba(239, 68, 68, 0.12); color: var(--danger); }

.kpi-info .kpi-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-info .kpi-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Matchup Banner */
.matchup-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.matchup-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.alliance-vs-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.alliance-vs-block .server {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alliance-vs-block .tag {
    font-size: 40px;
    font-weight: 800;
    margin: 8px 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.alliance-vs-block .points {
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
}

.alliance-vs-block.our-side .points { color: var(--primary); }
.alliance-vs-block.opp-side .points { color: var(--danger); }

.vs-divider {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    font-style: italic;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-divider span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: rgba(15, 17, 23, 0.6);
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    white-space: nowrap;
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Table Highlighting */
.row-warning {
    background-color: rgba(239, 68, 68, 0.04);
}
.row-warning:hover {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.cell-zero {
    color: var(--danger);
    font-weight: bold;
}

.cell-target-missed {
    color: var(--warning);
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.mvp {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background-color: #dc2626;
}

/* View Containers */
.view-section {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.view-section.active {
    display: block;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #1b1d26;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

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

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* File Upload drag & drop zone */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.01);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.04);
}

.upload-dropzone i {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.upload-dropzone:hover i {
    color: var(--primary);
    transform: translateY(-4px);
}

.upload-dropzone p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-dropzone span {
    font-size: 12px;
    color: var(--text-dark);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    background-color: #1b1d26;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* Search boxes with autocomplete suggestions */
.search-container {
    position: relative;
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #1b1d26;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    list-style: none;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* CSV Preview Table modal */
.csv-preview-table-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Tabs inside a card */
.card-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.card-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.card-tab:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.02);
}

.card-tab.active {
    color: #fff;
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* MVP visual layouts */
.mvp-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 16px 20px;
    border-radius: 12px;
}

.mvp-banner i {
    font-size: 28px;
    color: var(--success);
    text-shadow: 0 0 10px var(--success-glow);
}

.mvp-banner-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: bold;
}

.mvp-banner-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* Report Export Infographic Styles */
.report-export-container {
    background-color: #0b0c10;
    color: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 800px; /* Fixed width for consistent export dimensions */
    margin: 0 auto;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.08) 0px, transparent 50%);
    box-sizing: border-box;
}

.report-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.report-header-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 6px;
}

.report-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.report-header-matchup {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
}

.report-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Weekly Podium Styles */
.report-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.podium-card {
    background: rgba(21, 23, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.podium-card.first {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(21, 23, 30, 0.6) 100%);
}

.podium-card.second {
    border-color: rgba(148, 163, 184, 0.25);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.04) 0%, rgba(21, 23, 30, 0.6) 100%);
}

.podium-card.third {
    border-color: rgba(180, 83, 9, 0.25);
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.04) 0%, rgba(21, 23, 30, 0.6) 100%);
}

.podium-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
}

.podium-card.first .podium-badge {
    background-color: var(--warning);
    color: #000;
    box-shadow: 0 0 10px var(--warning-glow);
}

.podium-card.second .podium-badge {
    background-color: #94a3b8;
    color: #000;
}

.podium-card.third .podium-badge {
    background-color: #b45309;
    color: #fff;
}

.podium-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.podium-score {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
    font-weight: bold;
}

/* Daily Breakdown Grid */
.report-daily-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.report-daily-card {
    background: rgba(21, 23, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
}

.report-daily-card-header {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-daily-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
    padding: 4px 6px;
    border-radius: 4px;
}

.report-daily-player-row:last-child {
    margin-bottom: 0;
}

.report-daily-player-row.mvp {
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.report-daily-player-row .player-name {
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.report-daily-player-row.mvp .player-name {
    color: #fff;
}

.report-daily-player-row .player-score {
    font-family: monospace;
    font-weight: bold;
    color: var(--text-muted);
}

.report-daily-player-row.mvp .player-score {
    color: var(--success);
}

/* Alert Tables */
.report-alerts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.report-alert-box {
    background: rgba(21, 23, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
}

.report-alert-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-alert-box-title i {
    font-size: 14px;
}

.report-alert-box-title.warning i { color: var(--warning); }
.report-alert-box-title.danger i { color: var(--danger); }

.report-alert-list {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.report-alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
}

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

.report-alert-item .name {
    font-weight: 600;
    color: #fff;
}

.report-alert-item .details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.report-alert-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.report-alert-badge.day-miss {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.report-alert-badge.day-low {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.report-alert-badge.inactive {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Train Conductor Report Infographic styling */
.train-report-container {
    background-color: #0b0c10;
    color: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(245, 158, 11, 0.15);
    width: 800px;
    margin: 0 auto;
    background-image: 
        radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.04) 0px, transparent 50%);
    box-sizing: border-box;
}

.train-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.train-podium-card {
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.03), rgba(21, 23, 30, 0.8));
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.train-podium-card.first {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.08), rgba(21, 23, 30, 0.9));
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
}

.train-podium-card.second {
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.04), rgba(21, 23, 30, 0.8));
}

.train-podium-card.third {
    border-color: rgba(180, 83, 9, 0.2);
    background: linear-gradient(to bottom, rgba(180, 83, 9, 0.04), rgba(21, 23, 30, 0.8));
}

.train-podium-card .badge-train {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e1b15;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.train-podium-card.first .badge-train {
    background: #f59e0b;
    color: #111;
    border: none;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.train-podium-card.second .badge-train {
    background: #94a3b8;
    color: #111;
    border: none;
}

.train-podium-card.third .badge-train {
    background: #b45309;
    color: #fff;
    border: none;
}

.train-podium-card .name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #f8fafc;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.train-podium-card .points-total {
    font-weight: 800;
    font-size: 18px;
    color: #f59e0b;
    font-family: monospace;
}

.train-podium-card .tie-breaker {
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 4px;
}

/* Rankings Table styling */
.train-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.train-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.train-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

.train-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}
