.stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.progress {
    height: 8px;
    border-radius: 4px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

soundsteps-striped-list ul:nth-of-type(odd) {
    background-color: #f8f9fa; /* Light gray for odd rows */
    border-bottom: 1px solid black;
}

.soundsteps-striped-list ul:nth-of-type(even) {
    background-color: #ffffff; /* White for even rows */
    border-bottom: 1px solid black;
}

::selection {
    border-radius: 4px;
}

/* Practice history grouping */
#sessions-list > .row-striped {
    border-radius: 12px;
    background-color: #f8f9fe;
    border-left: 6px solid #5e72e4;
}

#sessions-list > .row-striped:nth-of-type(even) {
    background-color: #f3f6ff;
    border-left: 6px solid #11cdef;
}

#plan-spaced-list > .row-striped {
    border-radius: 12px;
    background-color: #f8f9fe;
    border-left: 6px solid #5e72e4;
}

#plan-spaced-list > .row-striped:nth-of-type(even) {
    background-color: #f3f6ff;
    border-left: 6px solid #11cdef;
}

/* Utility class for preserving line breaks in text */
.text-prewrap {
    white-space: pre-line;
}

/* Previous sessions notes container with scrolling */
.previous-sessions-body {
    min-height: 3em;
    max-height: 10em;
    overflow-y: auto;
}

/* Metronome play button sizing */
.metronome-play-btn {
    width: 40px;
    height: 40px;
    padding: 0;
}

/* Upload progress bar height */
.upload-progress-bar-container {
    height: 20px;
}

/* Practice control buttons */
.practice-control-btn {
    width: 48px;
    height: 48px;
}

/* Practice footer dividers */
.practice-divider {
    border-left: 2px solid #ddd;
    height: 48px;
    margin: 0 8px;
}

/* Practice timer displays */
.practice-timer-display {
    width: 100px;
    height: 48px;
}

/* Tutorial progress bar height */
.tutorial-progress-bar {
    height: 8px;
}

/* AI-generated markdown content styling */
.ai-advice-content,
.ai-message-content,
.ai-overview-text {
    line-height: 1.6;
}

.ai-advice-content p,
.ai-message-content p,
.ai-overview-text p {
    margin-bottom: 0.75rem;
}

.ai-advice-content p:last-child,
.ai-message-content p:last-child,
.ai-overview-text p:last-child {
    margin-bottom: 0;
}

.ai-advice-content strong,
.ai-message-content strong,
.ai-overview-text strong {
    font-weight: 600;
    color: #2d3748;
}

.ai-advice-content em,
.ai-message-content em,
.ai-overview-text em {
    font-style: italic;
}

.ai-advice-content h1,
.ai-message-content h1,
.ai-overview-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.ai-advice-content h2,
.ai-message-content h2,
.ai-overview-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.875rem;
    margin-bottom: 0.625rem;
}

.ai-advice-content h3,
.ai-message-content h3,
.ai-overview-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.ai-advice-content ul,
.ai-message-content ul,
.ai-overview-text ul,
.ai-advice-content ol,
.ai-message-content ol,
.ai-overview-text ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.ai-advice-content li,
.ai-message-content li,
.ai-overview-text li {
    margin-bottom: 0.25rem;
}

.ai-advice-content code,
.ai-message-content code,
.ai-overview-text code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

.ai-advice-content pre,
.ai-message-content pre,
.ai-overview-text pre {
    background-color: #f3f4f6;
    padding: 0.75rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.ai-advice-content pre code,
.ai-message-content pre code,
.ai-overview-text pre code {
    background-color: transparent;
    padding: 0;
}

.streak-calendar-wrap {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
}

#streak_calendar {
    height: 350px;
    min-width: 720px;
    width: 100%;
}

@media (max-width: 767.98px) {
    #streak_calendar {
        height: 300px;
        min-width: 640px;
    }
}

@media (max-width: 575.98px) {
    #streak_calendar {
        height: 260px;
        min-width: 560px;
    }
}


/* Recording waveform + playback timer/marker */
.recording-timer {
    background: #000;
    border: 1px solid #0f2a0f;
    border-radius: 0.4rem;
    box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.2), 0 0 6px rgba(57, 255, 20, 0.2);
    color: #39ff14;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    min-width: 120px;
    padding: 0.25rem 0.6rem;
    text-align: center;
    white-space: nowrap;
}

.recording-waveform {
    background: #0b0f0c;
    border: 1px solid #143d1f;
    border-radius: 0.6rem;
    height: 72px;
    margin-top: 0.75rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.recording-waveform canvas {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.waveform-marker {
    background: #eaffea;
    border-left: 1px solid #39ff14;
    border-right: 1px solid #39ff14;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.95);
    box-sizing: border-box;
    height: calc(100% - 12px);
    left: 0;
    position: absolute;
    top: 6px;
    width: 6px !important;
    max-width: 6px !important;
    min-width: 6px !important;
    flex: 0 0 6px;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateZ(0);
}

.waveform-status {
    color: #7ba082;
    font-size: 0.75rem;
    left: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}
