/* Practice Wizard - UI Components v0.0.2 */
/* Additional Modern UI Components */
/* Ergänzt enhanced-modern.css mit fehlenden Komponenten */

/* Card Component - Matching Practice Sections Style */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.card-header {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: linear-gradient(to right, var(--primary-bg), transparent);
    border-bottom: none;
}

.card-body {
    padding: var(--space-xl);
    background: var(--surface);
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.card-icon {
    font-size: 1.75rem;
    opacity: 0.8;
}

/* Form Components - Modern Style */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 120px;
}

/* Button Components - Consistent with Main App */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

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

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.125rem;
}

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

/* Section Headers */
.section-subtitle {
    margin: var(--space-xl) 0 var(--space-lg);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.icon-text {
    font-size: 1.25rem;
}

/* Grid Layouts */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Focus Areas */
.focus-areas-section {
    margin-top: var(--space-xl);
}

.focus-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    min-height: 2rem;
}

.focus-area-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.375rem 0.875rem;
    background: var(--primary-bg);
    border: 1px solid var(--primary);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

.focus-area-item button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.focus-area-item button:hover {
    background: var(--primary);
    color: white;
}

/* Session Goals Specific */
.session-goals-section {
    margin-top: var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header,
    .card-body {
        padding: var(--space-md);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Repertoire Modal Styles */
.repertoire-list {
    max-height: 400px;
    overflow-y: auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.list-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.song-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.song-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.song-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.song-title {
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.song-composer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.song-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.info-tag {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Enhanced Professional Repertoire Modal Styles */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.quick-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-pill {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear:hover {
    background: rgba(0,0,0,0.1);
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    min-width: 120px;
    transition: all 0.2s;
}

.filter-select:focus {
    border-color: #2563eb;
    outline: none;
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    text-decoration: none;
    color: #1e293b;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.action-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e293b;
}

.songs-container {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.song-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.song-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.song-composer {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.song-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.song-card:hover .song-actions {
    opacity: 1;
}

.song-action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.song-action-btn:hover {
    background: rgba(0,0,0,0.1);
}

.song-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.info-tag.key {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.info-tag.difficulty {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.error-state {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4, .error-state h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .section-title-group {
        flex-direction: column;
        text-align: center;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .quick-stats {
        justify-content: center;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 1rem;
    }
}
