/* Practice Tracker - Dark Theme Styles */

:root {
  /* Dark theme colors matching application style guide */
  --bg: #0b0f1a;
  --card: #11182a;
  --text: #ffffff;
  --muted: #9fb0d0;
  --brand1: #ff7f50;
  --brand2: #ff4d4d;
}

/* Main container with dark background */
.practice-tracker-container {
    min-height: 80vh;
    background: var(--bg);
    padding: 2rem 0;
}

.practice-tracker-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero section with white text on dark background */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: var(--text);
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
}

/* Practice Timer Section - Top Priority */
.practice-timer-section {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(17, 24, 42, 0.95) 100%);
    border-radius: 0;
    margin: 2rem 0;
}

.practice-timer-section .card {
    border: 2px solid var(--brand1);
    background: var(--card);
    border-radius: 16px;
}

/* Stats Overview - Compact and Less Prominent */
.stats-overview {
    margin-bottom: 2rem;
}

.stats-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-compact-card {
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.06);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-compact-card:hover {
    background: rgba(255,255,255,.06);
    transform: translateY(-2px);
}

.stat-compact-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-compact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-compact-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy Stats Grid - Keep for compatibility */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
    color: var(--brand1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

/* Main Content */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-section {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.content-section h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Practice Timer - Dark theme */
.practice-timer {
    background: var(--card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    max-width: 500px;
    margin: 0 auto;
    color: var(--text);
}

.timer-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timer-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.session-indicator {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.timer-display {
    text-align: center;
    margin-bottom: 2rem;
}

.timer-digits {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.timer-status {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.timer-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.running-controls,
.paused-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Dark theme buttons */
.timer-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    min-width: 140px;
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: white;
}

.timer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

.timer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Current session info */
.current-session-info {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.session-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.session-details:last-child {
    margin-bottom: 0;
}

.session-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
}

.session-value {
    font-weight: 500;
    color: var(--text);
}

/* Timer States */
.practice-timer.running .timer-display {
}

.practice-timer.paused .timer-display {
}

.practice-timer.stopped .timer-display {
}

/* Messages and Warnings */
.timer-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.timer-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Quick Actions */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 127, 80, 0.3);
    background: transparent;
    color: var(--brand1);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 127, 80, 0.1);
    border-color: var(--brand1);
    transform: translateY(-1px);
}

/* Recent Sessions */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    transition: all 0.3s ease;
    color: var(--text);
}

.session-item:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(5px);
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-instrument {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.session-duration {
    font-size: 0.85rem;
    color: var(--muted);
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-date {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.edit-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent;
    color: var(--muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Placeholder Content */
.content-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
}

.content-placeholder h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-placeholder p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-placeholder ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
    padding-left: 1.5rem;
}

.content-placeholder li {
    margin-bottom: 0.5rem;
}

/* Public Page Styles - Keep existing for unauthenticated users */
.practice-tracker-public {
    min-height: 80vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
}

.practice-tracker-public .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.practice-tracker-public .page-header {
    margin-bottom: 4rem;
}

.practice-tracker-public .page-header h1 {
    color: #333;
    text-shadow: none;
}

.practice-tracker-public .page-header .lead {
    color: #666;
}

/* Features Grid - Keep existing for public view */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Demo Section */
.demo-preview {
    margin-bottom: 4rem;
}

.demo-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.demo-card h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #333;
}

.demo-timer {
    text-align: center;
}

.timer-display {
    margin-bottom: 1.5rem;
}

.timer-digits {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.demo-controls {
    margin-top: 1.5rem;
}

.demo-btn {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
}

.demo-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.cta-card p {
    margin: 0 0 2rem 0;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Practice Calendar Styles - Dark theme */
.practice-calendar {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.navigation-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 1rem;
}

.current-period {
    font-weight: 600;
    color: var(--text);
    min-width: 150px;
    text-align: center;
}

/* Monthly Calendar */
.monthly-calendar {
    margin-bottom: 1.5rem;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.calendar-header-cell {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
    background: rgba(255,255,255,.06);
    border-radius: 6px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-cell {
    aspect-ratio: 1;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 60px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.calendar-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255,255,255,.08);
}

.calendar-cell.other-month {
    opacity: 0.4;
    cursor: default;
}

.calendar-cell.other-month:hover {
    transform: none;
    box-shadow: none;
}

.calendar-cell.today {
    border: 2px solid var(--brand1);
}

.cell-date {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.cell-minutes {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    color: var(--muted);
}

/* Intensity Levels (GitHub-style) */
.intensity-0 {
    background: rgba(235, 237, 240, 0.3);
}

.intensity-1 {
    background: rgba(155, 233, 168, 0.3);
}

.intensity-2 {
    background: rgba(64, 196, 99, 0.3);
}

.intensity-3 {
    background: rgba(48, 161, 78, 0.3);
}

.intensity-4 {
    background: rgba(33, 110, 57, 0.3);
}

/* Weekly Calendar */
.weekly-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.weekly-day {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
    border: 1px solid rgba(255,255,255,.08);
}

.day-header {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.day-sessions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-item {
    background: rgba(255,255,255,.08);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.session-item:hover {
    background: rgba(255,255,255,.12);
    transform: translateX(2px);
}

.more-sessions {
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 0.25rem;
}

.no-sessions {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
    padding: 1rem;
    font-weight: 500;
}

/* Daily Calendar */
.daily-calendar {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.08);
}

.daily-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.daily-sessions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.daily-session-card {
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.daily-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255,255,255,.12);
}

.session-time {
    font-weight: 600;
    color: var(--brand1);
    margin-bottom: 0.5rem;
}

.session-details {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.session-notes {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.no-daily-sessions {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    padding: 2rem;
    font-weight: 500;
}

/* Calendar Legend */
.calendar-legend {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.calendar-legend h4 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0.5rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: fit-content;
    max-width: 180px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Calendar Loading */
.calendar-loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.calendar-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 127, 80, 0.3);
    border-top: 4px solid var(--brand1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Session Edit Dialog - Dark theme */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.08);
}

.session-edit-modal {
    max-width: 700px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Session Edit Form */
.session-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid rgba(255,255,255,.16);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(12, 19, 38, 1);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand1);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.form-control:invalid {
    border-color: #ef4444;
}

.form-help {
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
}

/* Session Info */
.session-info {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,.08);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-size: 0.9rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 127, 80, 0.3);
    border-top: 4px solid var(--brand1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Validation */
.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.validation-summary .modal-content {
    width: 100%;
    margin: 0.5rem;
    max-height: 95vh;
}

.validation-summary .modal-header h3 {
    font-size: 1.1rem;
}

/* Analytics Dashboard Styles - Dark theme */
.analytics-dashboard {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Charts Section - Dark theme */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.08);
}

.chart-container h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Instrument Chart - Dark theme */
.instrument-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instrument-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instrument-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.bar-container {
    height: 24px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand1), var(--brand2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    transition: width 0.3s ease;
}

.bar-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.instrument-stats {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: right;
}

/* Weekly Pattern - Dark theme */
.weekly-pattern {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.day-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.day-intensity {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.day-intensity:hover {
    transform: scale(1.1);
}

.day-minutes {
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
}

.pattern-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.legend-scale {
    display: flex;
    gap: 2px;
}

.legend-item {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Insights Section - Dark theme */
.insights-section {
    margin-top: 2rem;
}

.insights-section h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-card.positive {
    border-left: 4px solid #4ade80;
}

.insight-card.suggestion {
    border-left: 4px solid #facc15;
}

.insight-card.info {
    border-left: 4px solid #3b82f6;
}

.insight-card.welcome {
    border-left: 4px solid var(--brand1);
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.insight-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Loading and Error States - Dark theme */
.analytics-loading,
.analytics-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.analytics-loading .spinner,
.analytics-error .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.analytics-error h4 {
    margin: 0 0 0.5rem 0;
    color: #ef4444;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
}

/* DateTimePicker Component Styles - Dark theme */
.datetime-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.datetime-picker.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.datetime-input-group {
    position: relative;
}

.datetime-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(12, 19, 38, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.datetime-display:hover:not(.disabled) {
    border-color: var(--brand1);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.datetime-display:focus {
    outline: none;
    border-color: var(--brand1);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.datetime-text {
    color: var(--text);
    font-size: 1rem;
    flex: 1;
}

.datetime-icon {
    font-size: 1.2rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

.datetime-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,.08);
    margin-top: 0.5rem;
    max-width: 400px;
}

.datetime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    border-radius: 12px 12px 0 0;
}

.datetime-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

.datetime-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Date Section */
.date-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--brand1);
}

.nav-icon {
    font-size: 0.9rem;
    color: var(--muted);
}

.current-month {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.weekday {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    border: none;
    background: rgba(255,255,255,.06);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(255,255,255,.08);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--brand1);
    color: white;
}

.calendar-day.today {
    border: 2px solid var(--brand1);
    font-weight: 600;
}

.calendar-day.other-month {
    color: var(--muted);
    background: rgba(255,255,255,.06);
}

.calendar-day.other-month:hover {
    background: rgba(255,255,255,.08);
}

/* Time Section */
.time-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-inputs {
    display: flex;
    gap: 1rem;
}

.time-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.time-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.time-select {
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(12, 19, 38, 1);
    color: var(--text);
    cursor: pointer;
}

.quick-times {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-time-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    transition: all 0.3s ease;
}

.quick-time-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--brand1);
    color: var(--brand1);
}

/* Footer */
.datetime-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(255,255,255,.06);
    border-radius: 0 0 12px 12px;
}

/* Responsive Design for DateTimePicker */
@media (max-width: 768px) {
    .datetime-dropdown {
        max-width: 100%;
        left: 0;
        right: 0;
    }

    .time-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-times {
        justify-content: center;
    }

    .datetime-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .datetime-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .datetime-content {
        padding: 1rem;
    }

    .calendar-day {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .weekday {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
}

/* Session List Component Styles - Dark Theme */
.session-list {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.session-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.session-list-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.session-list .list-group-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    transition: all 0.3s ease;
}

.session-list .list-group-item:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.session-list .list-group-item strong {
    color: var(--text);
}

.session-list .badge {
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: white;
}

.session-list .text-muted {
    color: var(--muted) !important;
}

.session-list .notes-preview {
    margin-top: 0.25rem;
    font-style: italic;
    opacity: 0.8;
}

.session-list .btn-outline-secondary {
    border-color: rgba(255,255,255,.14);
    color: var(--muted);
}

.session-list .btn-outline-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--brand1);
    color: var(--brand1);
}

/* Session Summary */
.session-summary {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.session-summary strong {
    color: var(--text);
    font-size: 1.1rem;
}

.session-summary .text-muted {
    color: var(--muted) !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Practice Timer Section */
    .practice-timer-section {
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .practice-timer-section .col-lg-8,
    .practice-timer-section .col-xl-6 {
        padding: 0;
    }

    /* Compact Stats */
    .stats-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .stat-compact-card {
        padding: 0.75rem;
    }

    .stat-compact-value {
        font-size: 1.25rem;
    }

    .stat-compact-label {
        font-size: 0.75rem;
    }

    /* Quick Actions */
    .container .col-lg-8,
    .container .col-xl-6 {
        padding: 0 1rem;
    }

    /* Recent Sessions */
    .session-list {
        padding: 1rem;
    }

    .session-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Legacy responsive styles */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .weekly-pattern {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }

    .day-intensity {
        width: 28px;
        height: 28px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .chart-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .stats-compact-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-compact-card {
        padding: 0.5rem;
    }

    .stat-compact-value {
        font-size: 1.1rem;
    }

    .stat-compact-label {
        font-size: 0.7rem;
    }

    .practice-timer-section {
        margin: 0.5rem 0;
        padding: 0 0.5rem;
    }

    /* Timer component adjustments */
    .practice-timer {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .timer-digits {
        font-size: 2.5rem;
    }

    .timer-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .running-controls,
    .paused-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timer-btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .weekly-pattern {
        grid-template-columns: repeat(7, minmax(32px, 1fr));
        gap: 0.125rem;
    }

    .day-intensity {
        width: 24px;
        height: 24px;
    }

    .day-label {
        font-size: 0.7rem;
    }

    .day-minutes {
        font-size: 0.6rem;
    }

    .session-summary .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Session Form Styles - Dark theme */
.session-form-container {
    background: var(--card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.form-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.form-message {
    margin-top: 1rem;
}

/* Timer Completion Modal Styles - Enhanced for proper layering - Dark theme */
.timer-completion-modal {
    max-width: 700px;
    width: 90vw;
    max-height: 90vh;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative !important;
    z-index: 10000 !important;
    margin: auto !important;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
}

.timer-summary {
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    margin: 0;
}

.timer-summary .summary-stat {
    padding: 0.5rem;
}

.timer-summary .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.timer-summary .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.timer-completion-modal .modal-body {
    padding: 2rem;
    background: var(--card);
    color: var(--text);
}

.timer-completion-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timer-completion-form .form-group {
    margin-bottom: 1.5rem;
}

.timer-completion-form .form-control-plaintext {
    padding: 0.5rem 0;
    background-color: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;
    font-weight: 500;
    padding-left: 0.75rem;
    color: var(--text);
}

.timer-completion-form .full-width {
    grid-column: 1 / -1;
}

.timer-completion-modal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.timer-completion-modal .modal-footer .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

/* Animation for smooth appearance */
.timer-completion-modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .timer-completion-modal {
        width: 95vw;
        margin: 1rem auto;
    }

    .timer-completion-modal .modal-body {
        padding: 1.5rem;
    }

    .timer-completion-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timer-completion-modal .modal-footer {
        flex-direction: column;
    }

    .timer-completion-modal .modal-footer .btn {
        margin-bottom: 0.5rem;
    }

    .timer-summary {
        padding: 1.5rem;
    }

    .timer-summary .stat-value {
        font-size: 1.5rem;
    }
}