/* Enhanced Track Info */
.enhanced-track-info {
    background: transparent; 
    color: white;
    padding: 0; 
    border-radius: 0; /* Remove border radius for sidebar */
    margin-bottom: 0;
    box-shadow: none; 
    border: none; 
    height: 100%; /* Full height */
}

/* Remove the absolute positioning specific styles */
#enhanced-track-info {
    /* Remove filter drop-shadow when in sidebar */
    filter: none;
}

/* Accordion Container - adjusted for sidebar */
.accordion-container {
    background: #34495e;
    border-radius: 0; /* No rounded corners for sidebar */
    border: none; /* Remove border for cleaner look */
    box-shadow: none; /* Remove shadow in sidebar */
    overflow: hidden;
    /* height: 100%; */
}

/* Accordion Card */
.accordion-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-card:last-child {
    border-bottom: none;
}

/* Accordion Header */
.accordion-header {
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Accordion Title */
.accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95em;
    color: #74b9ff;
}

.accordion-title i {
    width: 20px;
    text-align: center;
    color: #ffeaa7;
}

.violation-quickview {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

.violation-chip {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.violation-chip.is-ok {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.6);
    background: rgba(40, 167, 69, 0.15);
}

.violation-chip.is-violation {
    color: #ffffff;
    border-color: rgb(231, 77, 60);
    background: rgba(231, 77, 60, 0.539);
}

.violation-chip.is-missing {
    color: #95a5a6;
    border-color: rgba(149, 165, 166, 0.6);
    background: rgba(149, 165, 166, 0.18);
}

/* Accordion Chevron */
.accordion-chevron {
    transition: transform 0.3s ease;
    color: #74b9ff;
    font-size: 0.9em;
}

.accordion-chevron.rotated {
    transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content[style*="display: block"] {
    max-height: none;
    overflow-y: visible;
}

.accordion-content.is-open {
    max-height: none;
    overflow-y: visible;
}

/* Violation Card Special Styling */

.accordion-card.violation-card.gps-warning .accordion-header {
    background: rgba(149, 165, 166, 0.18);
}

.accordion-card.violation-card.gps-warning .accordion-header:hover {
    background: rgba(149, 165, 166, 0.26);
}

.accordion-card.violation-card.gps-warning .accordion-header.active {
    background: rgba(149, 165, 166, 0.32);
}

.accordion-card.violation-card.gps-warning .accordion-title,
.accordion-card.violation-card.gps-warning .accordion-title i,
.accordion-card.violation-card.gps-warning .accordion-chevron {
    color: #95a5a6;
}

/* Clean Flight Violation Card (Green) */
.accordion-card.violation-card.clean-flight .accordion-header {
    background: rgba(40, 167, 69, 0.15);
}

.accordion-card.violation-card.clean-flight .accordion-header:hover {
    background: rgba(40, 167, 69, 0.25);
}

.accordion-card.violation-card.clean-flight .accordion-header.active {
    background: rgba(40, 167, 69, 0.35);
}

.accordion-card.violation-card.clean-flight .accordion-title,
.accordion-card.violation-card.clean-flight .accordion-title i,
.accordion-card.violation-card.clean-flight .accordion-chevron {
    color: #28a745;
}

/* Pending Violation Card (Neutral Blue) */
.accordion-card.violation-card.pending .accordion-header {
    background: rgba(52, 152, 219, 0.18);
}

.accordion-card.violation-card.pending .accordion-header:hover {
    background: rgba(52, 152, 219, 0.26);
}

.accordion-card.violation-card.pending .accordion-header.active {
    background: rgba(52, 152, 219, 0.34);
}

.accordion-card.violation-card.pending .accordion-title,
.accordion-card.violation-card.pending .accordion-title i,
.accordion-card.violation-card.pending .accordion-chevron {
    color: #74b9ff;
}

/* Card Body in Accordion */
.accordion-content .card-body {
    padding: 12px 16px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
}

.accordion-card.violation-card.pending .accordion-content .card-body {
    background: rgba(52, 152, 219, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.accordion-card.violation-card.clean-flight .accordion-content .card-body {
    background: rgba(40, 167, 69, 0.16);
    color: rgba(255, 255, 255, 0.95);
}

.accordion-card.violation-card.gps-warning .accordion-content .card-body {
    background: rgba(149, 165, 166, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

/* Stats Tabs */
.stats-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #34495e; 
    border-radius: 8px 8px 0 0; 
    border-bottom: none;
    padding: 12px 12px 0 12px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-bottom: none; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.tab-button {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    margin-right: 2px;
    position: relative;
    z-index: 2;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tab-content {
    display: none;
}

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

/* Stats Section */
.stats-section {
    background: #34495e; 
    border-radius: 0 0 8px 8px; 
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-top: none;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.overview-card {
    background: rgb(11 36 52 / 91%);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.overview-card:hover {
    background: rgba(16, 59, 86, 0.91);
    transform: translateY(-1px);
}

.violation-card {
    background: rgb(79 34 34 / 92%);
    border-color: rgba(255, 255, 255, 0.1);
}

.violation-card:hover {
    background: rgba(112, 49, 49, 0.92);
    border-color: rgba(255, 255, 255, 0.37);
}



.violation-card .card-header {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(220, 53, 69, 0.4);
}



.violation-card.clean-flight {
  background: rgba(40, 167, 69, 0.25) !important;
  border: 1px solid rgba(40, 167, 69, 0.4) !important;
}


.violation-card.clean-flight:hover {
  background: rgba(40, 167, 69, 0.35) !important;
}

.violation-card.clean-flight .card-header {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(40, 167, 69, 0.4);
}

/* Card Elements */
.card-header {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #74b9ff;
}

.card-body {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.3;
}

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

.info-row i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
    color: #ffeaa7;
    min-width: 16px;
}

.info-row strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.trackinfo-pilot-link,
.trackinfo-pilot-name {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    padding: 2px 9px;
    border-radius: 8px;
    border: 1px solid rgba(116, 185, 255, 0.36);
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.18), rgba(0, 184, 148, 0.2));
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.trackinfo-pilot-link {
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.trackinfo-pilot-link:hover {
    transform: translateY(-1px);
    border-color: rgba(116, 185, 255, 0.56);
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.28), rgba(0, 184, 148, 0.28));
    color: #ffffff;
    text-decoration: none;
}

.trackinfo-pilot-link:focus-visible {
    outline: 2px solid rgba(116, 185, 255, 0.72);
    outline-offset: 2px;
}

.info-row.info-note {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 24px;
    line-height: 1.4;
}

.info-row--subtle {
    padding-left: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.info-row--compact-gap {
    margin-top: 6px;
}

.info-row--break {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.distance-note--section {
    margin-bottom: 6px;
}

.clickable-point--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
}

.clickable-point--button i {
    pointer-events: none;
}

.clickable-point--button:hover {
    color: #4ea2ff;
}

.clickable-point--success {
    color: #28a745;
}

.trackinfo-icon {
    width: 16px;
    min-width: 16px;
    text-align: center;
}

.trackinfo-icon--info {
    color: #17a2b8;
}

.trackinfo-icon--success {
    color: #28a745;
}

.trackinfo-icon--danger {
    color: #dc3545;
}

.trackinfo-icon--warning {
    color: #fd7e14;
}

.trackinfo-icon--muted {
    color: #6c757d;
}

.trackinfo-icon--primary {
    color: #007bff;
}

.trackinfo-icon--spaced {
    margin-left: 8px;
}

.trackinfo-icon--dynamic {
    color: var(--trackinfo-icon-color, #74b9ff);
}

.trackinfo-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 8px;
    padding-bottom: 4px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trackinfo-section-title--info {
    color: #17a2b8;
    border-bottom-color: rgba(23, 162, 184, 0.3);
}

.trackinfo-section-title--success {
    color: #28a745;
    border-bottom-color: rgba(40, 167, 69, 0.3);
}

.trackinfo-section-title--warning {
    color: #ffc107;
    border-bottom-color: rgba(255, 193, 7, 0.3);
}

.trackinfo-swatch {
    display: inline-block;
    width: 12px;
    height: 3px;
    margin-right: 6px;
    border-radius: 1px;
    background: var(--trackinfo-swatch-color, #74b9ff);
}

.trackinfo-muted-note {
    color: #6c757d;
    font-size: 0.9em;
}

.info-row small {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.2;
}

/* Stats Title */
.stats-title {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.performance-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Stat Items */
.stat-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 24px; 
}

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

.stat-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.8em;
    opacity: 0.9;
}

.stat-item .click-hint {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 0.65em;
    opacity: 0.6;
    color: #ffeaa7;
    pointer-events: none;
}

/* Weather Station Cards */
.weather-station-cards-section {
    padding: 16px;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-station-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.weather-station-section-header .accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-station-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98em;
    font-weight: 600;
    color: inherit;
    text-transform: none;
    letter-spacing: 0.01em;
}

.weather-station-section-title i {
    color: #ffeaa7;
}

.weather-station-section-header:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.35);
}

.weather-station-section-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(116, 185, 255, 0.15);
    border: 1px solid rgba(116, 185, 255, 0.35);
    font-size: 0.72em;
    color: rgba(233, 246, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.weather-station-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weather-station-cards-section.is-collapsed .weather-station-cards {
    display: none;
}

.weather-station-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.weather-station-card:hover {
    transform: translateY(-2px);
    border-color: rgba(116, 185, 255, 0.4);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.weather-station-card.is-active {
    border-color: rgba(116, 185, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.25);
}

.weather-station-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    outline: none;
}

.weather-station-card__header:focus-visible {
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.45);
}

.weather-station-card__header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-station-card__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-station-card__title {
    font-size: 1.05em;
    font-weight: 600;
    color: #ffffff;
}

.weather-station-card__subtitle {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.65);
}

.weather-station-card__turnpoint-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(116, 185, 255, 0.18);
    border: 1px solid rgba(116, 185, 255, 0.45);
    font-size: 0.68em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d6ecff;
}

.weather-station-card__badge {
    align-self: flex-start;
    background: rgba(116, 185, 255, 0.18);
    color: #d6ecff;
    border: 1px solid rgba(116, 185, 255, 0.45);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.68em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.weather-station-card__action {
    background: rgba(116, 185, 255, 0.16);
    border: 1px solid rgba(116, 185, 255, 0.45);
    color: #eaf5ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.weather-station-card__action:hover,
.weather-station-card__action:focus-visible {
    background: rgba(116, 185, 255, 0.32);
    border-color: rgba(116, 185, 255, 0.7);
    transform: translateY(-1px);
}

.weather-station-card__action i {
    font-size: 0.95em;
}

.weather-station-card__chevron {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease;
}

.weather-station-card__chevron.rotated {
    transform: rotate(180deg);
}

.weather-station-cards-section.is-collapsed .accordion-chevron {
    transform: rotate(0deg);
}

.weather-station-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.86em;
}

.weather-station-card.is-collapsed .weather-station-card__body[hidden] {
    display: none;
}

.weather-station-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.weather-station-card__metric {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-station-card__metric .metric-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.weather-station-card__metric .metric-value {
    font-size: 1.05em;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.weather-station-card__turnpoints {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.72);
}

.turnpoints-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72em;
    color: rgba(182, 210, 255, 0.85);
}

.turnpoints-values {
    font-size: 0.95em;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.turnpoints-empty {
    color: rgba(255, 255, 255, 0.45);
}

.turnpoint-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(116, 185, 255, 0.12);
    border: 1px solid rgba(116, 185, 255, 0.32);
    font-size: 0.85em;
    color: #eaf5ff;
    line-height: 1.4;
}

.weather-station-card__charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.weather-station-card__charts canvas {
    display: block;
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.weather-station-card__labels {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
}

.weather-station-card__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}

.weather-station-card__table th,
.weather-station-card__table td {
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    font-variant-numeric: tabular-nums;
}

.weather-station-card__table th:first-child,
.weather-station-card__table td:first-child {
    text-align: left;
}

.weather-station-card__table tbody tr:hover {
    background: rgba(116, 185, 255, 0.12);
}

.weather-station-card__labels strong {
    font-weight: 600;
    color: #eaf5ff;
}

.weather-station-card.is-expanded {
    border-color: rgba(116, 185, 255, 0.45);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

/* Highlights */
.highlight-positive {
    background: rgba(46, 204, 113, 0.15) !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

.highlight-negative {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

.highlight-speed {
    background: rgba(52, 152, 219, 0.15) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
}

/* Altitude Analysis */
.altitude-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.altitude-gain-item,
.altitude-loss-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 15px 35px 15px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.altitude-gain-item:hover,
.altitude-loss-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.altitude-gain-header {
    color: #2ecc71;
    font-size: 1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.altitude-loss-header {
    color: #e74c3c;
    font-size: 1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.altitude-gain-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 6px;
}

.altitude-loss-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 6px;
}

.altitude-gain-details,
.altitude-loss-details {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 2px;
}

.click-hint {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75em;
    opacity: 0.7;
    color: #ffeaa7;
}

/* Legacy Support */
.track-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
}

.track-stats > div {
    min-width: 120px;
    font-size: 0.97em;
    color: #222;
}
@media (max-width: 768px) {
    #enhanced-track-info {
        width: 350px !important;
    }
}

@media (max-width: 480px) {
    #enhanced-track-info {
        width: calc(100% - 30px) !important;
        right: 15px !important;
        left: 15px !important;
    }
}

/* Display Settings Overlay Collapsible */
#display-settings-overlay {
    transition: all 0.3s ease-out;
}

.display-settings-header {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.display-settings-header:hover {
    background: #e9ecef !important;
}


/* Smooth transitions for collapse/expand */
#display-settings-content.collapsing {
    transition: max-height 0.3s ease-out;
}
