/* ================================
   TYPE FAST - Terminal Theme CSS
   ================================ */

/* CSS Variables for Terminal Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #00ff00;
    --text-secondary: #00cc00;
    --text-muted: #006600;
    --text-error: #ff0000;
    --text-warning: #ffb000;
    --text-correct: #00ff00;
    --border-color: #00ff00;
    --shadow-color: rgba(0, 255, 0, 0.2);
    --font-mono: 'Courier New', Courier, Monaco, 'Lucida Console', monospace;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.4;
    min-height: 100vh;
    padding: 10px;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
}

.ascii-art {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 0 10px var(--shadow-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--shadow-color);
    }
    to {
        text-shadow: 0 0 15px var(--shadow-color);
    }
}

.tagline {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

/* Box Component (Terminal Windows) */
.box {
    margin-bottom: 10px;
}

.box-header,
.box-footer {
    color: var(--text-secondary);
    font-size: 13px;
    user-select: none;
}

.box-content {
    background-color: var(--bg-secondary);
    padding: 8px 15px;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    min-height: 30px;
}

/* Lesson Stats Combined */
.lesson-stats .box-content {
    padding: 6px 15px;
}

/* Stats Display - Horizontal Layout */
.stats-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.stat-item {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.stat-item.stat-keys {
    flex: 1 1 auto;
    min-width: 200px;
}

.stat-item.stat-keys .stat-value {
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Test Duration Toggle */
.test-duration-toggle {
    padding: 4px 15px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-label {
    color: var(--text-muted);
}

.test-toggle-link {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.test-toggle-link:hover {
    color: var(--text-secondary);
}

.test-toggle-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
}

.toggle-sep {
    color: var(--text-muted);
}

/* Typing Section */
.typing-section {
    margin: 0;
}

.typing-section .box-content {
    position: relative;
    min-height: 80px;
}

.text-display {
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 1px;
    min-height: 60px;
}

.word {
    display: inline-block;
    white-space: nowrap;
}

.char {
    position: relative;
    transition: all 0.1s ease;
}

.char.correct {
    color: var(--text-correct);
    text-shadow: 0 0 5px var(--shadow-color);
}

.char.incorrect {
    color: var(--text-error);
    background-color: rgba(255, 0, 0, 0.2);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.char.current {
    background-color: rgba(0, 255, 0, 0.3);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Error flash animation - shown when wrong key pressed (user must retry) */
.char.error-flash {
    background-color: rgba(255, 0, 0, 0.5);
    color: var(--text-error);
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Hidden input for capturing keystrokes */
.typing-input-hidden {
    position: fixed;
    top: 0;
    left: -9999px;
    opacity: 0.01;
    width: 1px;
    height: 1px;
    border: none;
    outline: none;
}

/* Inline Results Display */
.inline-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
    z-index: 10;
}

.results-content {
    text-align: center;
    padding: 20px;
}

.results-title {
    font-size: 20px;
    color: var(--text-correct);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--shadow-color);
    font-weight: bold;
}

.results-stats {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--shadow-color);
}

.results-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 10px 0;
}

.results-next {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.05);
    }
}

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

/* Keyboard Display */
.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.key {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-mono);
    transition: all 0.15s ease;
    cursor: default;
    user-select: none;
}

.key.wide {
    min-width: 65px;
}

.key.wider {
    min-width: 85px;
}

.key.highlight {
    background-color: rgba(0, 255, 0, 0.2);
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
    transform: scale(1.05);
}

.key.correct-press {
    background-color: rgba(0, 255, 0, 0.4);
    animation: keyPressCorrect 0.3s ease;
}

.key.incorrect-press {
    background-color: rgba(255, 0, 0, 0.4);
    border-color: var(--text-error);
    animation: keyPressIncorrect 0.3s ease;
}

@keyframes keyPressCorrect {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes keyPressIncorrect {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Controls */
.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 8px 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover:not(:disabled) {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--text-muted);
}

.btn-danger {
    border-color: var(--text-error);
    color: var(--text-error);
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--text-error);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Progress Display */
.progress-display {
    font-size: 12px;
}

.progress-item {
    padding: 4px 0;
    border-bottom: 1px solid var(--text-muted);
    display: flex;
    justify-content: space-between;
}

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

.progress-label {
    color: var(--text-secondary);
}

.progress-value {
    color: var(--text-primary);
}

.progress-best {
    color: var(--text-warning);
    font-weight: bold;
}

/* Data Dashboard */
.data-dashboard {
    margin: 20px 0;
}

.session-history {
    font-size: 12px;
}

.session-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.session-history-table th {
    color: var(--text-secondary);
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--text-muted);
    font-weight: normal;
}

.session-history-table td {
    color: var(--text-primary);
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.session-history-table tr:hover {
    background-color: rgba(0, 255, 0, 0.05);
}

/* All-Time Statistics */
.all-time-stats {
    font-size: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

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

.stat-label-large {
    color: var(--text-secondary);
    font-size: 13px;
}

.stat-value-large {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Settings Page */
.settings-page {
    margin: 20px 0;
}

.settings-content {
    font-size: 12px;
}

.settings-content h3 {
    margin: 0;
}

.settings-content p {
    margin: 0;
}

.account-section {
    margin-bottom: 20px;
}

.account-section strong {
    color: var(--text-primary);
}

.storage-info {
    border-radius: 4px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .ascii-art {
        font-size: 10px;
    }

    .text-display {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .stats-horizontal {
        gap: 10px;
    }

    .stat-item.stat-keys {
        flex: 1 1 100%;
        min-width: auto;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 14px;
    }

    .key {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .key.wide {
        min-width: 50px;
    }

    .key.wider {
        min-width: 65px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================
   ANALYTICS PAGE STYLES
   ================================ */

/* Analytics Summary Cards */
.analytics-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.summary-card {
    margin-bottom: 0;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    color: var(--text-muted);
    font-size: 12px;
}

.summary-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Charts */
.chart-area {
    min-height: 120px;
}

.chart-container {
    display: flex;
    gap: 10px;
    height: 100px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    padding-right: 5px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    border-left: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    padding: 0 5px 0 5px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
    max-width: 30px;
}

.chart-bar {
    width: 100%;
    background: var(--text-primary);
    box-shadow: 0 0 5px var(--shadow-color);
    transition: all 0.3s ease;
    min-height: 2px;
}

.chart-bar:hover {
    background: var(--text-warning);
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
}

.chart-bar.bar-excellent {
    background: var(--text-primary);
}

.chart-bar.bar-good {
    background: var(--text-warning);
}

.chart-bar.bar-needs-work {
    background: var(--text-error);
}

.chart-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 8px;
}

.chart-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
    font-size: 13px;
}

/* Keyboard Heatmap */
.heatmap-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
}

.heatmap-row {
    display: flex;
    gap: 6px;
}

.heatmap-key {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
}

.heatmap-key:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--shadow-color);
}

.heatmap-key-label {
    font-size: 14px;
    font-weight: bold;
}

.heatmap-key-value {
    font-size: 10px;
    color: var(--text-secondary);
}

.heatmap-key-none {
    background: var(--bg-primary);
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.heatmap-key-good {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.heatmap-key-medium {
    background: rgba(255, 176, 0, 0.2);
    border-color: var(--text-warning);
    color: var(--text-warning);
}

.heatmap-key-weak {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--text-error);
    color: var(--text-error);
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border: 1px solid;
}

/* Key Mastery Bars */
.mastery-bars {
    max-height: 300px;
    overflow-y: auto;
}

.mastery-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mastery-key {
    width: 20px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}

.mastery-bar-track {
    flex: 1;
    height: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
}

.mastery-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.mastery-bar-fill.bar-excellent {
    background: var(--text-primary);
    box-shadow: 0 0 5px var(--shadow-color);
}

.mastery-bar-fill.bar-good {
    background: var(--text-warning);
}

.mastery-bar-fill.bar-needs-work {
    background: var(--text-error);
}

.mastery-percent {
    width: 40px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.mastery-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--text-muted);
    font-size: 12px;
}

.summary-mastered {
    color: var(--text-primary);
}

.summary-practicing {
    color: var(--text-warning);
}

.summary-weak {
    color: var(--text-error);
}

/* Learning Velocity */
.velocity-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.velocity-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.velocity-label {
    color: var(--text-muted);
    font-size: 13px;
}

.velocity-value {
    font-size: 16px;
    font-weight: bold;
}

.velocity-value.improving {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
}

.velocity-value.stable {
    color: var(--text-secondary);
}

.velocity-value.declining {
    color: var(--text-error);
}

.velocity-message {
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 20px;
    max-width: 350px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px var(--shadow-color);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-error);
}

.modal-key-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.modal-stats {
    margin-bottom: 20px;
}

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

.modal-stat-row:last-child {
    border-bottom: none;
}

.modal-stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-stat-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
}

.modal-stat-value.improving {
    color: var(--text-primary);
}

.modal-stat-value.stable {
    color: var(--text-secondary);
}

.modal-stat-value.declining {
    color: var(--text-error);
}

.modal-no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

.modal-recent {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--text-muted);
}

.modal-recent-label {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.sparkline {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 4px;
}

.sparkline-bar {
    flex: 1;
    background: var(--text-primary);
    min-height: 4px;
}

/* Session Detail Modal */
.modal-content-wide {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-session-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-color);
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 10px;
}

/* Session Summary Grid */
.session-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
}

.session-summary-stat {
    text-align: center;
}

.session-summary-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.session-summary-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
}

.session-summary-diff {
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.session-summary-diff.improving { color: var(--text-primary); }
.session-summary-diff.declining { color: var(--text-error); }
.session-summary-diff.stable { color: var(--text-secondary); }

/* Session Info Grid */
.session-info-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--text-muted);
}

.session-info-item {
    display: flex;
    gap: 8px;
}

.session-info-label {
    color: var(--text-muted);
}

.session-info-value {
    color: var(--text-primary);
}

/* Session Sections */
.session-section {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--text-muted);
}

.session-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.session-section-title {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: normal;
}

/* Session Mini Keyboard */
.session-mini-keyboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.session-keyboard-row {
    display: flex;
    gap: 4px;
}

.session-mini-key {
    width: 44px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.session-mini-key.focus-key {
    box-shadow: 0 0 10px var(--text-warning);
    border-width: 3px;
}

.mini-key-label {
    font-size: 12px;
    font-weight: bold;
}

.mini-key-value {
    font-size: 9px;
}

/* Session Key Bars */
.session-key-bars {
    max-height: 200px;
    overflow-y: auto;
}

.session-key-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 0;
}

.session-key-bar-row.focus-row {
    background: rgba(255, 176, 0, 0.1);
    padding: 6px 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-left: 3px solid var(--text-warning);
}

.session-bar-key {
    width: 24px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}

.session-bar-track {
    flex: 1;
    height: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
}

.session-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.session-bar-fill.bar-excellent {
    background: var(--text-primary);
}

.session-bar-fill.bar-good {
    background: var(--text-warning);
}

.session-bar-fill.bar-needs-work {
    background: var(--text-error);
}

.session-bar-value {
    width: 35px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.session-bar-count {
    width: 50px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Session Insights */
.session-insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.session-insight-item {
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

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

.session-insight-item::before {
    content: '> ';
    color: var(--text-muted);
}

.session-no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    font-style: italic;
}

/* Small button variant */
.btn-small {
    padding: 4px 8px;
    font-size: 10px;
}

/* Responsive adjustments for session modal */
@media (max-width: 600px) {
    .session-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content-wide {
        max-width: 100%;
        margin: 10px;
    }

    .session-info-grid {
        flex-direction: column;
        gap: 8px;
    }
}

/* Info Icon */
.info-icon {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
}

/* Info Modal */
.modal-info-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.modal-info-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* Onboarding Modal */
.onboarding-box {
    max-width: 350px;
    width: 90%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    text-align: center;
}

.onboarding-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.onboarding-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
}

.onboarding-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.onboarding-buttons .btn {
    min-width: 160px;
}

.btn-pro {
    border-color: #ffb000;
    color: #ffb000;
}

.btn-pro:hover {
    background-color: #ffb000;
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.5);
}

/* ================================
   GAMES STYLES
   ================================ */

/* Games Menu */
.games-menu {
    margin: 20px 0;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.game-card {
    padding: 20px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.game-card:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--shadow-color);
}

.game-card h3 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 16px;
    text-shadow: 0 0 5px var(--shadow-color);
}

.game-card p {
    color: var(--text-muted);
    margin: 0 0 15px 0;
    font-size: 12px;
    line-height: 1.5;
}

.game-card-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

.game-card-stats-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-card-stats-rows .stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card-stats-rows .stats-row > span:first-child {
    width: 55px;
}

.game-card-stats-rows .stats-row > span:nth-child(2) {
    color: var(--text-secondary);
    min-width: 40px;
}

.game-card-stats-rows .stats-played {
    margin-left: auto;
    color: var(--text-muted);
}

.game-card-stats-rows .stats-played span {
    color: var(--text-secondary);
}

.game-card-stats span span {
    color: var(--text-secondary);
}

.game-card-play {
    color: var(--text-secondary);
    font-size: 12px;
}

.game-card:hover .game-card-play {
    color: var(--text-primary);
}

/* Game Content Area */
.game-content {
    position: relative;
    min-height: 350px;
}

/* Game Stats Bar */
.game-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Speed-up animation for Word Rain */
.speed-up {
    animation: speedUpFlash 0.5s ease-out;
    color: var(--text-correct) !important;
}

@keyframes speedUpFlash {
    0% {
        color: var(--text-correct);
        text-shadow: 0 0 15px var(--text-correct);
        transform: scale(1.3);
    }
    100% {
        text-shadow: none;
        transform: scale(1);
    }
}

/* Mode display styling */
.wr-mode-display {
    text-transform: uppercase;
}

/* Game Arena (Word Rain) */
.game-arena {
    position: relative;
    height: 250px;
    border-bottom: 2px dashed var(--text-muted);
    overflow: hidden;
    margin-bottom: 15px;
}

/* Falling Words */
.falling-word {
    position: absolute;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 18px;
    white-space: nowrap;
    transition: top 0.05s linear;
}

.falling-word.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-color);
}

.falling-word .matched {
    color: var(--text-correct);
}

.falling-word .unmatched {
    color: var(--text-primary);
}

.falling-word.destroying {
    animation: wordDestroy 0.3s ease-out forwards;
}

@keyframes wordDestroy {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.falling-word.missed {
    animation: wordMiss 0.3s ease-out forwards;
}

@keyframes wordMiss {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Game Input Display */
.game-input-display {
    padding: 10px 0;
    font-size: 18px;
    color: var(--text-secondary);
}

.wr-current-word {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
    letter-spacing: 2px;
}

.wr-cursor, .cb-cursor {
    animation: blink 1s infinite;
    color: var(--text-primary);
}

/* Game Overlay (Pause/Game Over) */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.3s ease-in;
}

.game-overlay-content {
    text-align: center;
    padding: 40px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 0 30px var(--shadow-color);
}

.game-overlay-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.game-overlay-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 10px;
}

.game-over-title {
    color: var(--text-error) !important;
}

.game-over-stats {
    margin: 20px 0;
}

.game-over-stats .final-score {
    font-size: 24px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow-color);
    margin-bottom: 15px;
}

.game-overlay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Difficulty Selection */
.difficulty-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.difficulty-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.difficulty-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--text-secondary);
}

.difficulty-name {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.difficulty-info {
    font-size: 11px;
    color: var(--text-muted);
}

.difficulty-btn:hover .difficulty-info {
    color: var(--text-secondary);
}

.difficulty-highscores {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin-bottom: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

.difficulty-highscores span span {
    color: var(--text-secondary);
}

.btn-secondary {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.btn-secondary:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* New High Score Celebration */
.new-highscore {
    color: #ffd700 !important;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: highscorePulse 1.5s ease-in-out infinite;
}

@keyframes highscorePulse {
    0%, 100% {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    }
    50% {
        text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700;
    }
}

.prev-best {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 15px;
}

/* Code Breaker Terminal */
.game-terminal {
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    padding: 20px;
    margin-bottom: 15px;
    min-height: 150px;
}

.terminal-line {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.terminal-line.sequence-line {
    color: var(--text-secondary);
    font-size: 20px;
    letter-spacing: 3px;
}

.terminal-line.input-line {
    color: var(--text-primary);
    font-size: 20px;
    letter-spacing: 3px;
}

#cb-sequence .matched {
    color: var(--text-correct);
}

#cb-sequence .current {
    color: var(--text-primary);
    text-decoration: underline;
}

#cb-sequence .untyped {
    color: var(--text-muted);
}

#cb-input {
    color: var(--text-correct);
}

/* Code Breaker Progress Bar */
.cb-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.cb-progress-label {
    color: var(--text-muted);
    font-size: 12px;
    width: 60px;
}

.cb-progress-bar {
    flex: 1;
    height: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
}

.cb-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
    transition: width 0.2s ease;
}

.cb-progress-percent {
    color: var(--text-primary);
    font-size: 14px;
    width: 40px;
    text-align: right;
}

/* Alert indicators */
.alert-filled {
    color: var(--text-error) !important;
}

/* Screen shake for errors */
.screen-shake {
    animation: screenShake 0.3s ease;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Timer warning states */
.timer-warning {
    color: var(--text-warning) !important;
    animation: pulse 0.5s infinite;
}

.timer-critical {
    color: var(--text-error) !important;
    animation: pulse 0.3s infinite;
}

/* Victory state */
.victory-title {
    color: var(--text-correct) !important;
}

/* Responsive Games */
@media (max-width: 768px) {
    .game-arena {
        height: 200px;
    }

    .falling-word {
        font-size: 14px;
    }

    .game-stats-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .game-overlay-content {
        padding: 20px;
        margin: 10px;
    }

    .game-overlay-buttons {
        flex-direction: column;
    }

    .terminal-line.sequence-line,
    .terminal-line.input-line {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
}

/* ================================
   DAILY GOAL STYLES
   ================================ */

/* Daily Goal - Inline style in stats row */
.stat-daily-goal {
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-goal-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-goal-bar {
    display: inline-block;
    width: 100px;
    height: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
}

.daily-goal-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--text-secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.daily-goal-fill.complete {
    background: var(--text-correct);
}

/* Settings Dropdown */
.terminal-select {
    background: var(--bg-secondary);
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
}

.terminal-select:hover {
    border-color: var(--text-secondary);
}

.terminal-select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 5px var(--shadow-color);
}

.terminal-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Activity Chart (GitHub-style) */
.activity-chart {
    padding: 10px 0;
    overflow-x: auto;
}

.activity-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Month labels row */
.activity-months {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.activity-month-label {
    font-size: 10px;
    color: var(--text-muted);
    min-width: 12px;
}

.activity-month-spacer {
    min-width: 12px;
}

/* Day rows */
.activity-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.activity-row-label {
    width: 28px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    padding-right: 4px;
    flex-shrink: 0;
}

/* Individual day cells */
.activity-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--bg-secondary);
    cursor: default;
    flex-shrink: 0;
}

.activity-cell.active {
    background: var(--text-correct);
}

.activity-cell.future {
    background: transparent;
}

/* Legend */
.activity-legend {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    justify-content: flex-end;
}

.activity-legend-text {
    margin: 0 2px;
}

.activity-cell-legend {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.activity-cell-legend.inactive {
    background: var(--bg-secondary);
}

.activity-cell-legend.active {
    background: var(--text-correct);
}

/* Responsive Daily Goal */
@media (max-width: 768px) {
    .activity-cell,
    .activity-cell-legend {
        width: 10px;
        height: 10px;
    }

    .activity-row-label {
        font-size: 9px;
        width: 24px;
    }

    .activity-month-label {
        font-size: 9px;
    }
}

/* ================================
   PROFILE INDICATOR STYLES
   ================================ */

.profile-indicator {
    position: relative;
    display: inline-block;
    margin: 8px 0;
}

.profile-trigger {
    background: transparent;
    border: 1px solid var(--text-muted);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.profile-trigger:hover {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
}

.profile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-primary);
    box-shadow: 0 0 5px currentColor;
    flex-shrink: 0;
}

.profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-arrow {
    font-size: 8px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.profile-trigger.open .profile-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--shadow-color);
    z-index: 100;
    margin-top: 5px;
}

.profile-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.profile-dropdown-item:hover {
    background: rgba(0, 255, 0, 0.1);
    color: var(--text-primary);
}

.profile-dropdown-item.active {
    background: rgba(0, 255, 0, 0.15);
    color: var(--text-primary);
}

.profile-dropdown-item .profile-dot {
    width: 8px;
    height: 8px;
}

.profile-dropdown-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-wpm {
    font-size: 10px;
    color: var(--text-muted);
}

.profile-dropdown-active {
    color: var(--text-primary);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--text-muted);
    margin: 5px 0;
}

.profile-manage-link {
    color: var(--text-muted);
    font-size: 11px;
    justify-content: center;
}

.profile-manage-link:hover {
    color: var(--text-secondary);
}

/* ================================
   SETTINGS PAGE CARD STYLES
   ================================ */

.settings-page {
    padding: 20px 0;
}

.settings-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.settings-card-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: normal;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-card-content {
    padding: 15px;
}

.settings-text {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.settings-text:last-of-type {
    margin-bottom: 15px;
}

.settings-text strong {
    color: var(--text-secondary);
}

/* Danger Zone Card */
.settings-card-danger {
    border-color: var(--text-error);
}

.settings-card-header-danger {
    color: var(--text-error);
    border-bottom-color: var(--text-error);
}

/* Storage Info Box */
.storage-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--text-muted);
}

.storage-info-box span:first-child {
    color: var(--text-secondary);
    font-size: 12px;
}

.storage-size-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
}

/* Daily Goal Selector */
.daily-goal-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-goal-selector label {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ================================
   SETTINGS PROFILE SECTION STYLES
   ================================ */

.profile-current-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 15px;
}

.profile-current-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.profile-current-name {
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
    min-width: 100px;
}

.profile-current-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.profile-current-stats span span {
    color: var(--text-secondary);
}

/* Profile List */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.profile-list-item.active {
    border-color: var(--border-color);
}

.profile-list-item .profile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-list-item-name {
    flex: 1;
    color: var(--text-primary);
    min-width: 80px;
}

.profile-list-item-stats {
    color: var(--text-muted);
    font-size: 11px;
}

.profile-list-item-active {
    color: var(--text-secondary);
    font-size: 11px;
}

.profile-list-item-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Small Button Variant */
.btn-small {
    padding: 4px 8px;
    font-size: 10px;
}

/* Secondary Button Variant */
.btn-secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--text-muted);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Color Picker */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 0;
    justify-items: center;
}

.color-picker-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker-option:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px currentColor;
}

.color-picker-option.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 15px currentColor;
    transform: scale(1.1);
}

/* Terminal Input */
.terminal-input {
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.terminal-input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px var(--shadow-color);
}

.terminal-input::placeholder {
    color: var(--text-muted);
}

/* Profile Modal Content */
.profile-modal-content {
    max-width: 320px;
}

/* Profile Section Responsive */
@media (max-width: 600px) {
    .profile-current-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-current-name {
        width: 100%;
        margin-bottom: 5px;
    }

    .profile-current-stats {
        flex-direction: column;
        gap: 5px;
    }

    .profile-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-list-item-actions {
        margin-top: 8px;
        width: 100%;
    }

    .color-picker-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .color-picker-option {
        width: 32px;
        height: 32px;
    }
}
