/* F1 G-Force Sculpture Gallery - Styles */

:root {
    /* Default theme colors (McLaren Papaya Orange - muted) */
    --theme-primary: #E87800;
    --theme-secondary: #F09030;
    --theme-accent: #1E1E1E;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    overflow-x: hidden;
}

#container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#canvas-container {
    width: 100%;
    height: 100%;
}

/* Controls Panel */
#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    z-index: 100;
}

#controls h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--theme-primary);
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-primary) 50%, transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.f1-logo {
    height: 28px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.f1-logo:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #aaa;
}

select, button {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Modern select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E87800' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

select:hover, button:hover {
    border-color: var(--theme-primary);
    background-color: #252525;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

select:focus {
    outline: none;
    border-color: var(--theme-primary);
    background-color: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(232, 120, 0, 0.1);
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

button {
    background: var(--theme-primary);
    border: none;
    font-weight: bold;
    margin-top: 10px;
}

button:hover {
    background: var(--theme-secondary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-row.hidden {
    display: none;
}

.button-row .half-width {
    flex: 1;
    margin-top: 0;
}

.button-row .half-width.hidden {
    display: none;
}

/* Multi-Driver Selection */
.driver-selection {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.driver-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
}

/* Scrollbar styling */
.driver-list::-webkit-scrollbar {
    width: 8px;
}

.driver-list::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

.driver-list::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 4px;
}

.driver-list::-webkit-scrollbar-thumb:hover {
    background: var(--theme-secondary);
}

/* Driver checkbox item */
.driver-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.driver-item:hover {
    background: #252525;
    border-color: var(--theme-primary);
}

.driver-item.selected {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    border-color: var(--theme-primary);
}

.driver-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--theme-primary);
}

.driver-item label {
    cursor: pointer;
    font-size: 13px;
    color: #ddd;
    margin: 0;
    flex: 1;
    user-select: none;
}

.driver-item.selected label {
    color: #fff;
    font-weight: 600;
}

.driver-selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #333;
}

#driver-count {
    font-size: 12px;
    color: var(--theme-primary);
    font-weight: 600;
}

.clear-drivers-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: #ef4444;
    border: 1px solid #dc2626;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    font-weight: 600;
}

.clear-drivers-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.clear-drivers-btn.hidden {
    display: none;
}

/* Empty state */
.driver-list.empty::after {
    content: 'Select session first...';
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

/* Loading state */
.loading-drivers {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

.error-loading {
    text-align: center;
    padding: 20px;
    color: #ef4444;
    font-size: 13px;
}

/* Info Panel */
#info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 250px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

#info.minimized {
    padding: 10px 15px;
}

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

#info h3 {
    color: var(--theme-primary);
    font-size: 16px;
    margin: 0;
}

.toggle-stats-btn {
    background: transparent;
    border: none;
    color: var(--theme-primary);
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
    transition: all 0.3s;
    width: auto;
    margin: 0;
    min-width: 24px;
}

.toggle-stats-btn:hover {
    color: var(--theme-secondary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    transform: none;
    box-shadow: none;
}

.stats-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

#info.minimized .stats-content {
    max-height: 0;
    opacity: 0;
}

/* Interaction Hint */
.interaction-hint {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
    border-radius: 6px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeIn 0.5s ease-in;
}

.hint-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.hint-text {
    font-size: 12px;
    line-height: 1.5;
    color: #ccc;
}

.hint-text strong {
    color: var(--theme-primary);
    display: block;
    margin-bottom: 5px;
}

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

#info p {
    font-size: 13px;
    margin: 5px 0;
    color: #ccc;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.stat-label {
    color: #888;
}

.stat-value {
    color: var(--theme-primary);
    font-weight: bold;
}

/* Tabbed Stats Panel (for comparison mode) */
.stats-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stats-tab {
    padding: 6px 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: #aaa;
    margin: 0;
    width: auto;
}

.stats-tab:hover {
    background: #2a2a2a;
    border-color: var(--theme-primary);
    transform: none;
    box-shadow: none;
}

.stats-tab.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #000;
    font-weight: bold;
}

.stats-tab-content {
    display: none;
}

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

/* Toggle Controls Button */
#toggle-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 101;
}

/* Progress Overlay - NEW */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.progress-container {
    background: rgba(26, 26, 46, 0.95);
    padding: 40px;
    border-radius: 15px;
    min-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.progress-stage {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 40px;
    flex-direction: column;
}

.session-details {
    font-size: 14px;
    color: var(--theme-primary);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.session-date {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.stage-icon {
    font-size: 32px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stage-label {
    color: #fff;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease-out, background 0.3s ease;
    border-radius: 15px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    min-height: 20px;
}

.progress-percentage {
    font-size: 18px;
    color: var(--theme-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.cancel-button {
    padding: 10px 30px;
    background: #ef4444;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.cancel-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Error State */
.error-container {
    text-align: center;
    padding: 20px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-message {
    font-size: 16px;
    color: #ef4444;
    margin-bottom: 20px;
    max-width: 400px;
}

.error-container button {
    padding: 10px 30px;
    background: #3b82f6;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

/* Old loading spinner (keep for compatibility) */
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #FF8700;
    text-align: center;
    display: none;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #FF8700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Stage-specific colors */
.progress-bar.stage-loading-session {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.progress-bar.stage-extracting-telemetry {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar.stage-processing-sculpture {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* WebSocket connection indicator */
.ws-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.ws-indicator.disconnected {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.ws-indicator.connecting {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulse 1s infinite;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
    z-index: 50;
    padding: 12px 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
}

.footer-text {
    color: #aaa;
}

.footer-separator {
    color: #555;
}

.footer-link {
    color: var(--theme-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--theme-secondary);
    text-shadow: 0 0 8px color-mix(in srgb, var(--theme-primary) 50%, transparent);
}

.github-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 3D Sculpture Labels (HTML overlay) */
.sculpture-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sculpture-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--theme-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid var(--theme-primary);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    pointer-events: auto;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sculpture-label:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translate(-50%, -100%) scale(1.05);
}

.sculpture-label-text {
    user-select: none;
}

.sculpture-label-close {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    font-weight: bold;
}

.sculpture-label:hover .sculpture-label-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sculpture-label-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.sculpture-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: inherit; /* Inherit from parent's border-color */
}

/* G-Force Tooltip */
.gforce-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--theme-primary);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 13px;
    z-index: 100;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.gforce-tooltip-header {
    font-weight: bold;
    color: var(--theme-primary);
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--theme-primary);
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gforce-tooltip-close-btn {
    background: #ef4444;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    pointer-events: auto;
}

.gforce-tooltip-close-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.gforce-tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gforce-tooltip-row:last-child {
    border-bottom: none;
}

.gforce-tooltip-label {
    color: #aaa;
    font-weight: 600;
}

.gforce-tooltip-value {
    color: white;
    font-weight: bold;
}

.gforce-tooltip-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Help Button (floating, bottom-left) */
.help-button {
    position: fixed;
    bottom: 80px;
    left: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    color: #000;
}

.help-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    background: var(--theme-secondary);
}

.help-button svg {
    width: 30px;
    height: 30px;
}

/* Help Modal Overlay */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.help-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Help Modal */
.help-modal {
    background: rgba(15, 15, 15, 0.98);
    border: 2px solid var(--theme-primary);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

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

.help-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px 12px 0 0;
}

.help-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--theme-primary);
}

.close-help-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-help-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.help-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Custom scrollbar for help modal */
.help-modal-content::-webkit-scrollbar {
    width: 10px;
}

.help-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.help-modal-content::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 5px;
}

.help-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--theme-secondary);
}

/* Help sections */
.help-section {
    margin-bottom: 40px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--theme-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.help-section p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.help-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.help-section li {
    line-height: 1.8;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.help-section li strong {
    color: #fff;
}

.help-note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-top: 12px;
}

/* Legend items */
.legend-items {
    margin: 20px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.legend-color {
    width: 80px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.legend-item span {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* G-Force types */
.gforce-types {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--theme-primary);
}

.gforce-types p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
}

.gforce-types p:last-child {
    margin-bottom: 0;
}

.gforce-types strong {
    color: var(--theme-primary);
}

/* Control list */
.control-list {
    margin: 16px 0;
}

.control-item {
    padding: 14px 16px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--theme-primary);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.control-item strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

/* Credits section */
.help-credits {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    margin-top: 40px;
}

.help-credits p {
    margin-bottom: 14px;
    font-size: 15px;
}

.help-link {
    color: var(--theme-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.help-link:hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

.help-github-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.help-data-credit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .help-modal {
        max-width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .help-button {
        bottom: 70px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .help-button svg {
        width: 24px;
        height: 24px;
    }

    .help-modal-header {
        padding: 20px;
    }

    .help-modal-header h2 {
        font-size: 22px;
    }

    .help-modal-content {
        padding: 20px;
    }

    .help-section h3 {
        font-size: 18px;
    }

    .help-section p,
    .help-section li,
    .control-item {
        font-size: 14px;
    }
}
