:root {
    --success-color: rgba(75, 192, 192, 0.8);
    --success-border: rgba(75, 192, 192, 1);
    --danger-color: rgba(255, 99, 132, 0.8);
    --danger-border: rgba(255, 99, 132, 1);
    --warning-color: rgba(255, 206, 86, 0.8);
    --warning-border: rgba(255, 206, 86, 1);
    --info-color: rgba(54, 162, 235, 0.8);
    --info-border: rgba(54, 162, 235, 1);
    --secondary-color: rgba(153, 102, 255, 0.8);
    --secondary-border: rgba(153, 102, 255, 1);
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #4a5568;
    font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.container {
    margin-top: 20px;
}

/* Professional Card Styling */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15), 0 4px 8px -1px rgba(0, 0, 0, 0.08);
}

/* KPI Cards */
.kpi-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trend Indicators */
.trend-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

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

.trend-down {
    color: var(--danger-border);
}

.performance-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* List Items */
.list-group-item {
    background-color: #fff;
    border-color: #e2e8f0;
    color: #4a5568;
}

.list-group-item-success {
    background-color: #f0fff4 !important;
    color: #2f855a !important;
}

.list-group-item-danger {
    background-color: #fff5f5 !important;
    color: #c53030 !important;
}

.clickable-row {
    cursor: pointer;
}

.list-group-item:hover, .clickable-row:hover {
    background-color: #edf2f7 !important;
}

/* Ranked System */
.rank-crest-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.rank-crest, .tier-wing, .wing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Icons */
.item-icon {
    width: 32px;
    height: 32px;
    margin-right: 2px;
}

.champion-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.champion-icon-map {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Sortable Headers */
.sortable-header {
    cursor: pointer;
}

/* Navigation */
.nav-tabs .nav-link {
    color: #4a5568;
    background-color: #fff;
    border-color: #e2e8f0;
}

.nav-tabs .nav-link.active {
    color: #2b6cb0;
    background-color: #ebf8ff;
    border-color: #bee3f8;
}

/* Tables */
.table {
    color: #4a5568;
}

.table-hover > tbody > tr:hover > * {
    color: #2d3748;
    background-color: #edf2f7;
}

/* Modals */
.modal-content {
    background-color: #fff;
    color: #4a5568;
}

.modal-header {
    border-bottom-color: #e2e8f0;
}

.btn-close {
    filter: none;
}

/* Forms */
.form-select, .form-control {
    background-color: #fff;
    color: #4a5568;
    border-color: #e2e8f0;
}

.form-select:focus, .form-control:focus {
    background-color: #fff;
    color: #4a5568;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Professional Loading Animation */
.spinner-border {
    color: #667eea;
    width: 3rem;
    height: 3rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .kpi-value {
        font-size: 2rem;
    }
    
    .trend-indicator {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .champion-icon-map {
        width: 20px;
        height: 20px;
    }
}

/* Header Styling */
.display-4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mini-map Statistics */
/* Mini-map Statistics Styling */
.minimap-statistics-section {
    clear: both;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.minimap-stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
}

.minimap-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.role-badges-container .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* Advanced Analytics Section */
.advanced-analytics-section {
    clear: both;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.analytics-header {
    text-align: left;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-hover:hover {
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15), 0 4px 8px -1px rgba(0, 0, 0, 0.08);
}

/* Live Metrics Styling */
.live-metrics .live-metrics-content {
    margin-top: 1rem;
}

.live-metric-box {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.live-metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.live-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: block;
}

.live-metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    line-height: 1.3;
    display: block;
}

/* Performance Heatmap */
.performance-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    max-width: 350px;
    margin: 0 auto;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    border-color: #333;
}

.legend-gradient {
    width: 100px;
    height: 10px;
    background: linear-gradient(to right, red, yellow, green);
    border-radius: 5px;
    margin: 0 0.5rem;
}

/* Game Details Tooltip */
.game-details-tooltip {
    background: rgba(0, 0, 0, 0.95) !important;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Performance Badge Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.performance-badge {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

/* Chart Container Enhancements */
.chart-container {
    position: relative;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.chart-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.chart-controls .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Advanced Responsive Design */
@media (max-width: 768px) {
    .live-metric-box {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    .live-metric-value {
        font-size: 1.25rem;
    }
    
    .live-metric-label {
        font-size: 0.6rem;
    }
    
    .performance-heatmap {
        max-width: 280px;
    }
    
    .performance-badge {
        right: 10px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Mini-map mobile responsiveness */
    .minimap-stat-card {
        padding: 0.75rem 0.5rem;
        min-height: 60px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .minimap-statistics-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .advanced-analytics-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .live-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric {
        padding: 0.5rem;
    }
}

/* Loading States for Dynamic Content */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Performance Indicators */
.performance-score-ring {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

.performance-score-ring svg {
    transform: rotate(-90deg);
}

.performance-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Champion Performance Enhancement Styles */

/* Champion trends */
.trends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trend-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.trend-item.improving {
    border-left: 4px solid var(--success-border);
}

.trend-item.declining {
    border-left: 4px solid var(--danger-border);
}

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

.trend-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
}

.trend-champion-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.trend-champion-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trend-champion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.champion-name {
    font-weight: 600;
    color: #374151;
}

.trend-value {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Champion comparison */
.comparison-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vs-text {
    font-weight: 600;
    color: #6b7280;
    font-size: 1.1rem;
}

.comparison-grid {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.comparison-header {
    margin-bottom: 2rem;
}

.comparison-metrics .metric-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
}

.comparison-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.comparison-summary {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Mastery progression */
.mastery-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.mastery-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mastery-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.mastery-info {
    margin-left: 1rem;
    flex: 1;
}

.mastery-level {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.mastery-points {
    font-size: 0.8rem;
}

.mastery-badge {
    margin-left: 1rem;
}

.mastery-badge i {
    font-size: 1.2rem;
}

/* Champion Detail Modal */
.champion-overview .stat-item,
.champion-advanced-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.champion-overview .stat-item:last-child,
.champion-advanced-stats .stat-item:last-child {
    border-bottom: none;
}

.stat-item .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-item .value {
    font-weight: 600;
}

.champion-performance-trends .trend-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
}

.trend-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.trend-value {
    font-weight: 600;
}

.champion-best-game .performance-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
}

.performance-kda {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.performance-result {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.recommendation-item i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Advanced filters */
.filter-panel {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

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

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

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}

.filter-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.filter-presets .btn-group-sm button {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.filter-status {
    font-size: 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* Sort indicators for multi-column sorting */
.sortable-header {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
}

.sortable-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sortable-header[data-sort-priority] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.sort-priority {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem !important;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 !important;
}

.sort-instructions {
    font-style: italic;
}

/* Responsive design for champion features */
@media (max-width: 768px) {
    .trends-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .comparison-controls .vs-text {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .mastery-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mastery-info {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .mastery-badge {
        margin-left: 0;
        align-self: flex-end;
        margin-top: -2rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .champion-performance-trends .trend-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .comparison-metrics .metric-comparison {
        padding: 0.75rem;
    }
    
    .mastery-timeline {
        max-height: 300px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Advanced Filters Panel */
.advanced-filters-panel .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.to-separator {
    font-size: 0.875rem;
    color: #6b7280;
    flex-shrink: 0;
}

.duration-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.duration-display {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.performance-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.performance-filters .form-check {
    margin: 0;
}

.kda-range {
    display: flex;
    gap: 0.5rem;
}

.kda-range .form-control {
    flex: 1;
}

/* Performance Breakdown */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.breakdown-section h7 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.875rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.breakdown-item .label {
    color: #6b7280;
    font-size: 0.875rem;
}

.breakdown-item .value {
    font-weight: 600;
    color: #374151;
}

.breakdown-item .rating {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.rating.excellent { 
    background: #dcfce7; 
    color: #166534; 
}

.rating.good { 
    background: #fef3c7; 
    color: #92400e; 
}

.rating.average { 
    background: #e0e7ff; 
    color: #3730a3; 
}

.rating.poor { 
    background: #fee2e2; 
    color: #991b1b; 
}

/* Match Timeline */
.timeline-container {
    position: relative;
    height: 80px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
}

.timeline-events {
    position: relative;
    height: 40px;
    padding: 0 0.5rem;
}

.timeline-event {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-event:hover {
    transform: translateY(-50%) scale(1.2);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-event.first-blood {
    background: #ef4444;
    color: white;
}

.timeline-event.tower {
    background: #8b5cf6;
    color: white;
}

.timeline-event.dragon {
    background: #f59e0b;
    color: white;
}

.timeline-event.baron {
    background: #7c3aed;
    color: white;
}

.timeline-event.herald {
    background: #f59e0b;
    color: white;
}

/* Enhanced Timeline Event Styling */
.timeline-event.critical {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

.timeline-event.high {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.timeline-event.medium {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Team-based styling */
.timeline-event.team-100 {
    border-left: 4px solid #3b82f6;
}

.timeline-event.team-200 {
    border-right: 4px solid #ef4444;
}

/* Enhanced Event Tooltip */
.enhanced-event-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    min-width: 180px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline-event:hover .enhanced-event-tooltip {
    opacity: 1;
}

.event-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.event-team {
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-team.blue-team {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.event-team.red-team {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.event-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.event-timestamp {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.event-timestamp i {
    font-size: 0.65rem;
}

/* Quick Filters */
.quick-filters {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.quick-filters-header {
    margin-bottom: 0.5rem;
}

.quick-filters-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.quick-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.quick-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-filter-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.quick-filter-btn i {
    font-size: 0.75rem;
}

/* Active state colors for specific filter types */
.quick-filter-btn[data-filter="recent-wins"].active {
    background-color: #3b82f6;
    border-color: #2563eb;
    color: white;
}

.quick-filter-btn[data-filter="recent-losses"].active {
    background-color: #ef4444;
    border-color: #dc2626;
    color: white;
}

.quick-filter-btn[data-filter="high-kda"].active {
    background-color: #10b981;
    border-color: #059669;
    color: white;
}

.quick-filter-btn[data-filter="long-games"].active {
    background-color: #f59e0b;
    border-color: #d97706;
    color: white;
}

.quick-filter-btn[data-filter="ranked-only"].active {
    background-color: #06b6d4;
    border-color: #0891b2;
    color: white;
}

.quick-filter-btn[data-filter="this-week"].active {
    background-color: #6b7280;
    border-color: #4b5563;
    color: white;
}

/* Event Tooltip */
.event-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.timeline-event:hover .event-tooltip {
    opacity: 1;
}

/* Match Comparison */
.comparison-setup {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.match-selector label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.comparison-results {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.match-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.result.win { 
    color: #059669; 
    font-weight: 600; 
}

.result.loss { 
    color: #dc2626; 
    font-weight: 600; 
}

.comparison-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-comparison {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.metric-name {
    font-weight: 600;
    color: #374151;
}

.metric-bar-container {
    position: relative;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.metric-bar.better {
    background: #10b981;
}

.metric-bar.worse {
    background: #ef4444;
}

/* Statistics Dashboard */
.statistics-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-category {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.stat-category h6 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item .label {
    color: #6b7280;
}

.stat-item .value {
    font-weight: 600;
    color: #374151;
}

/* Export Controls */
.export-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

/* Responsive Design for Advanced Features */
@media (max-width: 768px) {
    .advanced-filters-panel .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-setup {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-comparison {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .date-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .to-separator {
        text-align: center;
        padding: 0.25rem 0;
    }
    
    .kda-range {
        flex-direction: column;
    }
    
    .timeline-container {
        height: 60px;
    }
    
    .timeline-events {
        height: 30px;
    }
    
    .timeline-event {
        width: 16px;
        height: 16px;
    }
}

/* Win Prediction Gauge */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.prediction-content {
    text-align: center;
}

.gauge-container {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px 100px 0 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
    border-radius: 100px 100px 0 0;
    transition: width 1s ease-out;
}

.gauge-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prediction-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.prediction-factors {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

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

.factor:last-child {
    margin-bottom: 0;
}

.factor-label {
    font-weight: 500;
    opacity: 0.9;
}

.factor-value {
    font-weight: 700;
}

.prediction-recommendations {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.prediction-recommendations h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.prediction-recommendations ul {
    margin: 0;
}

.prediction-recommendations li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.prediction-recommendations li:last-child {
    margin-bottom: 0;
}

/* Timeline Match Tooltip */
.timeline-match-tooltip {
    background: rgba(0, 0, 0, 0.95) !important;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.timeline-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.timeline-tooltip-stats .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.timeline-tooltip-stats .stat-grid .result {
    grid-column: span 2;
    text-align: center;
    font-weight: 600;
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}

.timeline-tooltip-stats .result.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.timeline-tooltip-stats .result.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Timeline Controls */
.timeline-controls .form-select {
    min-width: 140px;
    font-size: 0.875rem;
}

/* Mastery Details Tooltip */
.mastery-details-tooltip {
    background: rgba(0, 0, 0, 0.95) !important;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mastery-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.mastery-tooltip-stats .mastery-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.mastery-tooltip-stats .progression-info {
    grid-column: span 2;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Mastery Card Styling */
.mastery-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
}

/* ========== MINI-MAP ENHANCED FEATURES ========== */

/* Enhanced Champion Icons */
.champion-icon-map.enhanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.0) saturate(1.0);
    cursor: pointer;
    z-index: 10;
}

.champion-icon-map.exceptional {
    animation: pulse-glow 2s infinite;
    filter: brightness(1.2) saturate(1.1);
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 8px var(--success-border); 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        box-shadow: 0 0 16px var(--success-border); 
        transform: translate(-50%, -50%) scale(1.1); 
    }
}

.champion-icon-map.poor-performance {
    opacity: 0.6;
    filter: saturate(0.5) brightness(0.8);
}

/* Enhanced Tooltips */
.enhanced-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    min-width: 200px;
    max-width: 280px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-header strong {
    font-size: 1rem;
    font-weight: 600;
}

.role-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.top { 
    background: rgba(239, 68, 68, 0.8);
    color: white;
}
.role-badge.jungle { 
    background: rgba(16, 185, 129, 0.8);
    color: white;
}
.role-badge.middle { 
    background: rgba(245, 158, 11, 0.8);
    color: white;
}
.role-badge.bottom { 
    background: rgba(59, 130, 246, 0.8);
    color: white;
}
.role-badge.utility { 
    background: rgba(139, 92, 246, 0.8);
    color: white;
}

.tooltip-stats {
    margin-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.kda-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #fbbf24;
}

.win {
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
}

.loss {
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
}

.performance-excellent { 
    color: #10b981; 
    font-weight: 600;
    text-transform: uppercase;
}
.performance-good { 
    color: #f59e0b; 
    font-weight: 600;
    text-transform: uppercase;
}
.performance-average { 
    color: #6b7280;
    text-transform: uppercase;
}
.performance-poor { 
    color: #ef4444; 
    font-weight: 600;
    text-transform: uppercase;
}

.tooltip-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

/* Heatmap Overlay */
.position-heatmap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
    border-radius: 0.5rem;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

.position-heatmap.visible {
    opacity: 0.8;
}

/* Mini-map Container Enhancements */
#mini-map-container {
    position: relative;
    display: inline-block;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#mini-map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

#mini-map-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#mini-map-icons .champion-icon-map {
    pointer-events: auto;
}

/* Temporal Analysis */
.temporal-analysis {
    margin-top: 2rem;
}

.temporal-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.temporal-controls .form-select {
    min-width: 140px;
    font-size: 0.875rem;
}

.temporal-timeline {
    height: 200px;
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.temporal-insights {
    background: rgba(248, 250, 252, 0.8);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.temporal-insights h6 {
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.insight-item i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.insight-content {
    flex: 1;
}

.insight-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.insight-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

/* Champion Synergies */
.champion-synergies {
    margin-top: 1.5rem;
}

.champion-synergies h6 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
}

.synergies-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.synergy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    background: white;
}

.synergy-item:hover {
    background-color: #f3f4f6;
}

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

.champion-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.champion-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.synergy-item:hover .champion-icon-small {
    border-color: #3b82f6;
    transform: scale(1.1);
}

.plus-sign {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
}

.synergy-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.win-rate.text-success {
    color: #10b981 !important;
    font-weight: 600;
}

.games-count {
    color: #6b7280;
    font-size: 0.8rem;
}

.combined-kda {
    color: #374151;
    font-weight: 500;
}

.synergy-filters {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.synergy-primary-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.synergy-secondary-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.synergy-secondary-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-weight: 500;
}

.synergy-secondary-stats i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.synergy-stats .win-rate {
    font-size: 1rem;
    font-weight: 700;
}

/* Customization Panel */
.mini-map-customization {
    display: none;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-map-customization.visible {
    opacity: 1;
    transform: translateY(0);
}

.mini-map-customization .card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.customization-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    border: 1px solid rgba(203, 213, 224, 0.5);
    transition: all 0.2s ease;
}

.option-group:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #a0aec0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    flex: 1;
}

.option-group input[type="range"] {
    width: 100px;
}

.option-group input[type="checkbox"] {
    transform: scale(1.1);
}

.option-group .size-display {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.option-group select {
    max-width: 140px;
    font-size: 0.875rem;
}

/* Champion icon state modifiers */
.champion-icon-map.no-outcome-colors {
    box-shadow: none !important;
    opacity: 0.8;
}

.champion-icon-map.no-performance-scaling {
    width: 24px !important;
    height: 24px !important;
}

.champion-icon-map.no-animations {
    transition: none !important;
    animation: none !important;
}

.champion-icon-map.no-animations:hover {
    transform: translate(-50%, -50%) !important;
}

.preset-layouts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.preset-layouts .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.preset-layouts .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Control Panel Toggle */
.customization-toggle {
    font-size: 0.875rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.customization-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.customization-toggle.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.customization-toggle.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Advanced Analytics Cards */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.analytics-card h6 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Performance Indicators */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-indicator.excellent {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.performance-indicator.good {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.performance-indicator.average {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.performance-indicator.poor {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design for Mini-map Features */
@media (max-width: 768px) {
    .champion-icon-map {
        width: 16px;
        height: 16px;
    }
    
    .enhanced-tooltip {
        font-size: 0.75rem;
        min-width: 150px;
        padding: 0.5rem;
    }
    
    .temporal-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mini-map-customization .customization-options {
        grid-template-columns: 1fr;
    }
    
    .preset-layouts {
        flex-direction: column;
    }
    
    .preset-layouts .btn {
        flex: none;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .synergy-stats {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-end;
    }
}

@media (max-width: 576px) {
    .champion-icon-map {
        width: 14px;
        height: 14px;
    }
    
    .enhanced-tooltip {
        min-width: 120px;
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .role-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .stat-row {
        font-size: 0.8rem;
    }
}

/* Champion Heatmap */
.champion-heatmap-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 0;
}

.champion-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 1rem 0;
}

.champion-heatmap-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.champion-heatmap-cell:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.champion-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.champion-heatmap-cell:hover .champion-icon-small {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.champion-stats {
    text-align: center;
}

.champion-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.champion-metrics {
    font-size: 0.7rem;
    color: #374151;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.heatmap-header {
    text-align: center;
    margin-bottom: 1rem;
}

.heatmap-legend {
    margin: 1rem 0;
    align-items: center;
    gap: 1rem;
}

.legend-gradient {
    width: 120px;
    height: 16px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.7) 0%,
        rgba(34, 197, 94, 0.7) 33%,
        rgba(245, 158, 11, 0.7) 66%,
        rgba(239, 68, 68, 0.7) 100%
    );
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.heatmap-footer {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Trends Chart Container */
.trends-container {
    min-height: 450px;
    position: relative;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

#performance-trends-chart {
    max-height: 400px;
    width: 100% !important;
    height: 400px !important;
}

/* Statistics Dashboard Navigation */
#stats-tabs .nav-link {
    color: #6b7280;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#stats-tabs .nav-link:hover {
    color: #374151;
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

#stats-tabs .nav-link.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Enhanced Tab Content */
.tab-content {
    margin-top: 1rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Responsive Enhancements for New Features */
@media (max-width: 768px) {
    .champion-heatmap-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .champion-heatmap-cell {
        min-height: 80px;
        padding: 8px;
    }
    
    .champion-icon-small {
        width: 28px;
        height: 28px;
    }
    
    .champion-name {
        font-size: 0.75rem;
    }
    
    .champion-metrics {
        font-size: 0.65rem;
    }
    
    .trends-container {
        padding: 1rem;
        min-height: 350px;
    }
    
    #performance-trends-chart {
        max-height: 300px !important;
        height: 300px !important;
    }
    
    .legend-gradient {
        width: 80px;
        height: 12px;
    }
    
    #stats-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .champion-heatmap-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .champion-icon-small {
        width: 24px;
        height: 24px;
    }
    
    .heatmap-legend {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .trends-container {
        min-height: 300px;
    }
    
    #performance-trends-chart {
        max-height: 250px !important;
        height: 250px !important;
    }
    
    .quick-filter-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }
    
    .quick-filter-btn i {
        font-size: 0.7rem;
    }
}

/* Additional responsive styles for advanced features */
@media (max-width: 768px) {
    .enhanced-event-tooltip {
        font-size: 0.75rem;
        min-width: 150px;
        padding: 0.5rem;
    }
    
    .timeline-event.critical {
        width: 24px;
        height: 24px;
    }
    
    .timeline-event.high {
        width: 20px;
        height: 20px;
    }
    
    .timeline-event.medium {
        width: 18px;
        height: 18px;
    }
    
    .quick-filters-buttons {
        gap: 0.375rem;
    }
}