/* Music Tab Converter Specific Styles */

/* Premium Status */
.premium-status {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

.premium-status.locked {
    background: #f0f0f0;
    color: #666;
}

.premium-status.unlocked {
    background: #10b981;
    color: white;
}

/* Intro Text */
.intro-text {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #fde68a;
}

.intro-text h2 {
    margin-top: 0;
    color: #92400e;
}

.intro-text ul {
    padding-left: 1.5rem;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.faq-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2937;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Tab System */
.tab-container {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--text-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: #e0f2fe;
}

.upload-area.file-selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-prompt p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.upload-prompt small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Form Groups */
.options,
.options-grid {
    margin: 1.5rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

.form-group select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Buttons */
.button-group,
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    margin-top: 1rem;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.btn-guide {
    background: #8b5cf6;
    color: white;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-guide:hover {
    background: #7c3aed;
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

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

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

/* Result Area */
.result-area {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-area h3 {
    margin-top: 0;
    color: #1f2937;
}

.metadata {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.metadata p {
    margin: 0.25rem 0;
    color: #4b5563;
}

.result-area pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Free Limitations */
.free-limitations {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.free-limitations h4 {
    margin-top: 0;
    color: #1e40af;
}

.free-limitations ul {
    list-style: none;
    padding-left: 0;
}

.free-limitations li {
    padding: 0.25rem 0;
    color: #1e40af;
}

/* Locked Premium Content */
.locked-content {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 2px solid #f59e0b;
}

.lock-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.locked-content h3 {
    margin: 1rem 0;
    color: #92400e;
}

.locked-content p {
    color: #78350f;
    margin-bottom: 1.5rem;
}

.locked-content ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
    list-style: none;
    padding-left: 0;
}

.locked-content li {
    padding: 0.5rem 0;
    color: #78350f;
}

/* Premium Info */
.premium-info {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.premium-info h3 {
    margin-top: 0;
    color: #065f46;
}

.premium-info p {
    color: #047857;
}

/* Premium Guides */
.premium-guides {
    background: #f3e8ff;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.premium-guides h3 {
    margin-top: 0;
    color: #6d28d9;
}

/* ============================================================================
   MANUAL ENTRY UI - FRETFALLBACK
   ============================================================================ */

/* Manual Entry Container */
.manual-entry-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Fretboard Section */
.fretboard-section {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #fbbf24;
}

.fretboard-section h3 {
    margin-top: 0;
    color: #92400e;
}

/* Duration Selector */
.duration-selector {
    margin-bottom: 1.5rem;
}

.duration-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.duration-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.duration-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.duration-btn:hover {
    border-color: #fbbf24;
    background: #fef9c3;
}

.duration-btn.active {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #78350f;
}

/* Fretboard Wrapper */
.fretboard-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

/* String Labels */
.string-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.string-label {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #78350f;
    background: #fef3c7;
    border-radius: 4px;
}

/* Fretboard Grid */
.fretboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-x: auto;
}

.fretboard-string {
    display: flex;
    gap: 4px;
}

.fretboard-cell {
    width: 36px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.fretboard-cell:hover {
    background: #fef9c3;
    border-color: #fbbf24;
    transform: scale(1.05);
}

.fretboard-cell.has-note {
    background: #10b981;
    border-color: #059669;
    color: white;
}

.fretboard-cell.has-note::after {
    content: '●';
    font-size: 1.2rem;
}

/* Fret Numbers */
.fret-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.fret-number {
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #78350f;
    background: #fef3c7;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
}

/* Fretboard Hint */
.fretboard-hint {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #fbbf24;
    margin-top: 1rem;
}

.fretboard-hint p {
    margin: 0;
    color: #78350f;
    font-size: 0.9rem;
}

/* Note List Section */
.note-list-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.note-list-section h3 {
    margin-top: 0;
    color: #1f2937;
}

/* Note List */
.note-list {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.empty-message {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.note-sequence {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.note-info {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #374151;
}

.btn-delete-note {
    width: 28px;
    height: 28px;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete-note:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Manual Entry Actions */
.manual-entry-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manual-entry-actions .btn {
    width: 100%;
}

/* Manual Entry Result */
#manualTabOutput {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================================================
   VISUAL TAB DISPLAY (VexFlow)
   ============================================================================ */

/* Visual Tab Container */
.visual-tab-container {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.visual-tab-container h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
}

/* Interactive Viewer Toolbar */
.viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
}

.viewer-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.viewer-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #374151;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.zoom-btn:active {
    background: #d1d5db;
}

.zoom-level {
    min-width: 50px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.viewer-info {
    font-size: 0.875rem;
    color: #6b7280;
}

/* VexFlow Canvas with Interactive Features */
.vexflow-canvas {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    /* Enable touch gestures for mobile */
    touch-action: pan-x pan-y;
}

.vexflow-canvas canvas,
.vexflow-canvas svg {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease-out;
    transform-origin: top left;
}

/* Zoom levels */
.vexflow-canvas.zoom-50 svg,
.vexflow-canvas.zoom-50 canvas {
    transform: scale(0.5);
}

.vexflow-canvas.zoom-75 svg,
.vexflow-canvas.zoom-75 canvas {
    transform: scale(0.75);
}

.vexflow-canvas.zoom-100 svg,
.vexflow-canvas.zoom-100 canvas {
    transform: scale(1);
}

.vexflow-canvas.zoom-125 svg,
.vexflow-canvas.zoom-125 canvas {
    transform: scale(1.25);
}

.vexflow-canvas.zoom-150 svg,
.vexflow-canvas.zoom-150 canvas {
    transform: scale(1.5);
}

.vexflow-canvas.zoom-200 svg,
.vexflow-canvas.zoom-200 canvas {
    transform: scale(2);
}

/* Measure highlighting */
.vexflow-canvas .measure-highlight {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(59, 130, 246, 0.5);
    pointer-events: none;
    transition: left 0.3s ease-out;
}

.vexflow-canvas.measure-active .measure-highlight {
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Playback cursor (for Step 4.4) */
.vexflow-canvas .playback-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ef4444;
    pointer-events: none;
    transition: left 0.1s linear;
    z-index: 10;
}

.vexflow-canvas .playback-cursor::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 11px;
    height: 11px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.vexflow-canvas.scrollable .scroll-indicator {
    opacity: 1;
}

/* Custom scrollbar styling */
.vexflow-canvas::-webkit-scrollbar {
    height: 8px;
}

.vexflow-canvas::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.vexflow-canvas::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.vexflow-canvas::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Keyboard shortcut hint */
.keyboard-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: center;
}

.keyboard-hint kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 0.125rem 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Responsive width adjustments for VexFlow containers */
@media (max-width: 768px) {
    .vexflow-canvas {
        padding: 0.5rem;
        min-height: 150px;
    }

    .visual-tab-container {
        padding: 1rem;
    }

    .visual-tab-container h4 {
        font-size: 0.9rem;
    }

    /* Mobile toolbar adjustments */
    .viewer-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .viewer-controls {
        justify-content: center;
    }

    .viewer-info {
        text-align: center;
        font-size: 0.75rem;
    }

    .keyboard-hint {
        font-size: 0.65rem;
        display: none; /* Hide keyboard hint on mobile */
    }

    /* Adjust zoom button size for touch */
    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .zoom-level {
        font-size: 0.8rem;
        min-width: 40px;
    }
}

/* VexFlow loading state */
.vexflow-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.vexflow-loading::after {
    content: 'Loading visual notation...';
}

/* VexFlow error state */
.vexflow-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.vexflow-error::before {
    content: '⚠️ Visual notation unavailable: ';
    font-weight: 600;
}

/* VexFlow empty state */
.vexflow-empty {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    padding: 2rem 1rem;
    border-radius: 4px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vexflow-empty-message {
    margin: 0;
    font-style: italic;
}

.vexflow-empty::before {
    content: '🎵 ';
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        text-align: left;
    }

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

    .button-group,
    .download-buttons {
        flex-direction: column;
    }

    .button-group button,
    .download-buttons button {
        width: 100%;
    }

    .upload-area {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .upload-prompt p {
        font-size: 1rem;
    }

    /* Manual Entry Mobile Styles */
    .manual-entry-container {
        grid-template-columns: 1fr;
    }

    .fretboard-wrapper {
        flex-direction: column;
        gap: 0.25rem;
    }

    .string-labels {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .string-label {
        width: 40px;
    }

    .fret-numbers {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        overflow-x: auto;
    }

    .fret-number {
        width: 36px;
        flex-shrink: 0;
    }

    .fretboard-cell {
        width: 32px;
        height: 28px;
        font-size: 0.75rem;
    }

    .duration-buttons {
        justify-content: space-between;
    }

    .duration-btn {
        flex: 1;
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

/* Upgrade Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.75rem;
}

.modal-body {
    padding: 2rem;
}

#modalDescription {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.premium-features {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.premium-features h3 {
    margin-top: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.premium-features ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.premium-features li {
    padding: 0.5rem 0;
    color: #374151;
}

.upgrade-pricing {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
}

.price {
    font-size: 1.25rem;
    color: #92400e;
    margin: 0;
}

.price strong {
    font-size: 1.5rem;
}

.guarantee {
    color: #78350f;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-footer button {
    flex: 1;
    max-width: 200px;
}

/* Mobile responsive for modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-footer button {
        max-width: 100%;
    }

    .premium-features {
        padding: 1rem;
    }
}

/* Premium Feature Buttons - Show lock icon when not premium */
.premium-feature::before {
    content: "🔒 ";
    margin-right: 0.25rem;
}

.premium-feature.unlocked::before {
    content: "✓ ";
}

/* Premium badge for premium features */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ========================================
 * EXAMPLE GALLERY STYLES
 * ========================================
 */

.example-gallery {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e5e7eb;
}

.example-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.example-gallery .section-intro {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Example Card */
.example-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.example-card-premium {
    border-color: #f59e0b;
    border-width: 2px;
}

.example-card-comparison {
    background: #f9fafb;
}

/* Example Header */
.example-card .example-header {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-card-premium .example-header {
    background: #fffbeb;
}

.example-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

/* Example Badges */
.example-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.example-badge-free {
    background: #10b981;
    color: white;
}

.example-badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.example-badge-info {
    background: #3b82f6;
    color: white;
}

/* Difficulty Labels */
.difficulty-label {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.difficulty-easy {
    background: #d1fae5;
    color: #065f46;
}

.difficulty-moderate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.difficulty-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Example Content */
.example-content {
    padding: 1.5rem;
}

.example-content h4 {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Before/After Display */
.example-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .example-content {
        flex-direction: row;
        align-items: stretch;
    }

    .example-before,
    .example-after {
        flex: 1;
    }

    .example-divider {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.example-before,
.example-after {
    flex: 1;
}

/* Sheet Music Preview */
.sheet-music-preview {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.music-notation {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

/* Tab Output */
.tab-output {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
}

/* Example Divider */
.example-divider {
    font-size: 2rem;
    color: #9ca3af;
    display: none;
}

/* Premium Blur Effect */
.premium-blur .tab-output {
    position: relative;
}

.premium-blur .tab-output::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(31, 41, 55, 0.95));
    pointer-events: none;
}

/* Example Actions */
.example-actions {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.example-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Example CTA */
.example-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-top: 2rem;
}

.example-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #92400e;
}

.example-cta p {
    margin: 0 0 1.5rem 0;
    color: #78350f;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons button {
        width: 100%;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .example-card .example-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .difficulty-label {
        margin-left: 0;
        margin-top: 0.5rem;
    }

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

    .example-actions button {
        width: 100%;
    }

    .example-note {
        text-align: center;
    }
}
