/* Practice Wizard - Enhanced Modern Design System v0.0.2 */
/* Light Mode Only - Clean, Professional, Accessible */
/* Updated: 2024-06-09 - Added card components and form styles */

:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --primary-bg: #eff6ff;
    
    /* Accent Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #e0e7ff;
    
    /* Neutral Colors */
    --bg: #fafafa;
    --surface: #ffffff;
    --background: #fafafa;
    --background-secondary: #f3f4f6;
    --border: #e5e7eb;
    --text: #111827;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}
.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.date-info {
    margin-top: var(--space-lg);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

#currentDate {
    font-weight: 600;
}

/* Progress Overview */
.progress-overview {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.progress-stats {
    display: flex;
    gap: var(--space-xl);
    color: var(--text-secondary);
}

.progress-stat {
    text-align: center;
}

.progress-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.progress-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress-bar-container {
    background: var(--primary-bg);
    height: 12px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-lg);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

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

/* Timer Section */
.timer-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.timer-display {
    font-size: 5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: var(--space-lg) 0;
    animation: pulse 2s ease-in-out infinite;
}

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

.timer-controls {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.timer-info {
    margin-top: var(--space-lg);
    color: rgba(255,255,255,0.9);
}

.timer-info strong {
    color: white;
}
/* Buttons */
.btn {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--text);
}

.btn-secondary:hover {
    background: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* Practice Grid */
.practice-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.practice-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.practice-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.practice-section.completed {
    background: linear-gradient(to right, var(--success-light), var(--surface));
    border-color: var(--success);
}

.section-header {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: linear-gradient(to right, var(--primary-bg), transparent);
    cursor: pointer;
    user-select: none;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: var(--space-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.section-info {
    flex: 1;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.section-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}
.section-timer-display {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    min-width: 70px;
    text-align: right;
}

.timer-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.timer-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.timer-btn.active {
    background: var(--danger);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.complete-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.section-content {
    padding: var(--space-xl);
    display: none;
    animation: slideDown 0.3s ease;
}

.section-content.show {
    display: block;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.summary-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.summary-stat {
    background: rgba(255,255,255,0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.summary-stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.summary-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}
.save-btn {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.25rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* History Section */
.history-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.history-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.history-item-old {
    background: var(--primary-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-item-old:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}
.history-date {
    font-weight: 600;
    color: var(--primary);
}

.history-duration {
    color: var(--text-secondary);
}

.history-completion {
    background: var(--success);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: var(--space-lg);
}

.modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
}

.modal-content.modal-large {
    max-width: 900px;
}
.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body {
    padding: var(--space-xl);
}

/* Form Elements */
.form-input,
.form-select {
    width: 100%;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}
/* Exercise Styles */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.exercise-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.exercise-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.exercise-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    accent-color: var(--primary);
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }

    .logo {
        font-size: 2rem;
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .progress-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .control-buttons {
        flex-direction: column;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-controls {
        width: 100%;
        margin-top: var(--space-md);
        justify-content: space-between;
    }

    .exercise-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
/* Additional styles for enhanced sections */

/* Rhythm Grid Styles */
.rhythm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
}

.rhythm-item {
    background: white;
    border: 2px solid var(--border);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.rhythm-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rhythm-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.rhythm-notation {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
}

.rhythm-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Key Grid Styles */
.key-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.key-btn {
    padding: var(--space-md);
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.key-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
}

.key-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Key Progress Grid */
.key-progress-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
}

.key-progress-item {
    padding: var(--space-md);
    text-align: center;
    border-radius: var(--radius-md);
    background: white;
    border: 2px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.key-progress-item:hover {
    transform: scale(1.05);
}

.key-progress-item.learning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}

.key-progress-item.practicing {
    background: var(--info-light);
    border-color: var(--info);
    color: var(--info);
}

.key-progress-item.mastered {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
/* Tab Styles */
.tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    background: var(--primary-bg);
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
}

.tab {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tab:hover {
    background: rgba(255,255,255,0.5);
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* Exercise Group Styles */
.exercise-group {
    margin-bottom: var(--space-xl);
}

.exercise-group h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.exercise-group h5 {
    color: var(--text);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

/* Voicing Groups */
.voicing-group {
    margin-bottom: var(--space-lg);
}

.voicing-group h5 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

/* Practice Tips Boxes */
.practice-tips,
.practice-suggestion,
.rhythm-tips {
    position: relative;
    overflow: hidden;
}

.practice-tips::before,
.practice-suggestion::before,
.rhythm-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.5;
}

/* Superimposition Tables */
.superimposition-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
}

.superimposition-card th {
    text-align: left;
    padding: var(--space-sm);
    font-weight: 600;
}

.superimposition-card td {
    padding: var(--space-sm);
}

/* Section Intro */
.section-intro {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Standard Info Card */
.standard-info-card {
    position: relative;
    overflow: hidden;
}

.standard-info-card::before {
    content: '🎵';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
}

/* Selected Rhythm Display */
.selected-rhythm-display {
    text-align: center;
    position: relative;
}

#selectedRhythmDisplay {
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
    line-height: 1.2;
}

/* Responsive adjustments for sections */
@media (max-width: 768px) {
    .key-grid,
    .key-progress-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .rhythm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .superimposition-card {
        overflow-x: auto;
    }
}

/* Repertoire Enhancement Styles */
.repertoire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.repertoire-header h4 {
    margin: 0;
}

.add-standard-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-standard-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.add-standard-btn.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Modal Styles */
.modal {
    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: 1000;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
}

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

/* Toast Notifications */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0);
        opacity: 1;
    }
    to { 
        transform: translateX(100%);
        opacity: 0;
    }
}


/* Voicing Selection Styles */
.voicing-chord-types {
    background: var(--background-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.voicing-chord-types h5 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.voicing-group {
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.voicing-group h5 {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.practice-notes {
    background: var(--info-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info);
}

.practice-notes h5 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.practice-notes ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.practice-notes li {
    margin-bottom: var(--space-xs);
}

/* Enhanced Tab Styles */
.tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tabs .tab {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* History Item Actions */
.history-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all 0.2s ease;
}

.history-item:hover {
    box-shadow: var(--shadow-sm);
}

.history-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-actions {
    display: flex;
    gap: var(--space-xs);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-item:hover .history-actions {
    opacity: 1;
}

.history-action-btn {
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-action-btn:hover {
    background: var(--background-secondary);
}

.history-action-btn.edit-btn {
    color: var(--primary);
}

.history-action-btn.edit-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.history-action-btn.delete-btn {
    color: var(--danger);
}

.history-action-btn.delete-btn:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

/* Edit Session Modal */
.edit-session-form {
    margin-top: var(--space-lg);
}

.section-edit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
    max-height: 400px;
    overflow-y: auto;
}

.section-edit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--background-secondary);
    border-radius: var(--radius-md);
}

.section-edit-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    flex: 1;
}

.section-edit-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.duration-edit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.duration-edit label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.duration-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.duration-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .section-edit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .duration-edit {
        width: 100%;
        justify-content: space-between;
    }
}

/* History Header */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

/* All Sessions Modal */
.all-sessions-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--space-md);
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.session-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.session-info {
    flex: 1;
}

.session-date {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.session-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.session-duration {
    color: var(--primary);
    font-weight: 500;
}

.session-completion {
    color: var(--success);
    font-weight: 500;
}

.session-sections {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.section-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.session-actions {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-lg);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: 4px 12px;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    .session-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .session-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
    
    .history-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
}


/* Guitar Tuner Overlay Styles */
.tuner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.tuner-overlay.hidden {
    display: none;
}

.tuner-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

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

.tuner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.tuner-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tuner-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tuner-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

/* Tuner Display */
.tuner-display {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.tuner-note-display {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.tuner-note {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    transition: color 0.3s ease;
}

.tuner-note.perfect {
    color: var(--success);
}

.tuner-note.good {
    color: var(--warning);
}

.tuner-note.bad {
    color: var(--danger);
}

.tuner-frequency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    display: block;
    margin-top: var(--space-sm);
}

/* Tuner Meter */
.tuner-meter {
    margin-bottom: var(--space-xl);
}

.tuner-meter-marks {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tuner-meter-bar {
    height: 40px;
    background: var(--border);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.tuner-meter-indicator {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 80%;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transform: translateX(-50%) translateY(-50%);
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.tuner-meter-indicator.perfect {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.tuner-meter-indicator.good {
    background: var(--warning);
}

.tuner-meter-indicator.bad {
    background: var(--danger);
}

.tuner-cents {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Tuner Strings */
.tuner-strings {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tuner-string {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.tuner-string:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.tuner-string.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Tuner Controls */
.tuner-controls {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tuner-controls .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.tuner-btn-icon {
    font-size: 1.25rem;
}

/* Tuner Info */
.tuner-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tuner-info p {
    margin-bottom: var(--space-sm);
}

.tuner-hint {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Tuner */
@media (max-width: 600px) {
    .tuner-container {
        padding: var(--space-xl);
        width: 95%;
    }
    
    .tuner-note {
        font-size: 3rem;
    }
    
    .tuner-strings {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tuner-controls {
        flex-direction: column;
    }
}

/* Button disabled state for tuner */
.tuner-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Additional variables for repertoire modal */
:root {
    --surface: var(--bg-secondary, #f8fafc);
    --text-secondary: var(--text-muted, #64748b);
    --background: var(--bg, #ffffff);
    --border: var(--border-color, #e2e8f0);
    --text: var(--text-primary, #1e293b);
}
