/**
 * SBN Sheet Music Player Styles
 * Big Player + Mini Player
 * UPDATED: Mini player styling improvements
 */

/* ============================================================================
   CSS VARIABLES (inherits from course-player.css)
   ============================================================================ */

:root {
    --sbn-primary: #e85d3b;
    --sbn-primary-light: #fef3f0;
    --sbn-primary-dark: #d04a2a;
    --sbn-text: #2d2d2d;
    --sbn-text-secondary: #666;
    --sbn-text-muted: #999;
    --sbn-border: #e5e5e5;
    --sbn-bg: #ffffff;
    --sbn-bg-subtle: #fafafa;
}

/* ============================================================================
   BIG PLAYER
   ============================================================================ */

.sbn-sheet-player {
    background: var(--sbn-bg);
    border: 1px solid var(--sbn-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    contain: layout style;
}

/* Video Section */
.sbn-sheet-video {
    background: #0f0f0f;
    aspect-ratio: 16/9;
    max-height: 400px;
    position: relative;
}

.sbn-sheet-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sbn-sheet-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    gap: 10px;
}

.sbn-sheet-video-placeholder-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Transport Bar */
.sbn-sheet-transport {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: var(--sbn-bg-subtle);
    border-bottom: 1px solid var(--sbn-border);
}

.sbn-sheet-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--sbn-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sbn-sheet-play-btn:hover {
    background: var(--sbn-primary-dark);
    transform: scale(1.05);
}

.sbn-sheet-play-btn.playing {
    background: var(--sbn-text);
}

/* Progress Bar */
.sbn-sheet-progress {
    flex: 1;
    height: 6px;
    background: var(--sbn-border);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.sbn-sheet-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--sbn-primary);
    border-radius: 3px;
    transition: width 0.1s linear;
    pointer-events: none;
}

.sbn-sheet-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--sbn-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.sbn-sheet-progress:hover .sbn-sheet-progress-handle {
    opacity: 1;
}

/* Time Display */
.sbn-sheet-time {
    font-size: 13px;
    color: var(--sbn-text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 90px;
    text-align: right;
}

/* Tempo Display */
.sbn-sheet-tempo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sbn-text-secondary);
    padding-left: 15px;
    border-left: 1px solid var(--sbn-border);
}

.sbn-sheet-tempo-icon {
    font-size: 16px;
}

.sbn-sheet-tempo-value {
    font-weight: 600;
    color: var(--sbn-text);
}

/* Sheet Music Container */
.sbn-sheet-music {
    background: var(--sbn-bg);
    min-height: 250px;
    max-height: 600px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    contain: layout size;
}

/* Force AlphaTab to respect container width */
.sbn-sheet-player .at-surface,
.sbn-sheet-player .at-viewport {
    max-width: 100% !important;
    width: 100% !important;
}

/* Chrome-specific fixes */
@supports (-webkit-appearance: none) {
    .sbn-sheet-music {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    
    .sbn-sheet-player .at-surface {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* AlphaTab Overrides */
.sbn-sheet-player .at-surface {
    padding: 20px;
}

.sbn-sheet-player .at-cursor-bar {
    background: rgba(232, 93, 59, 0.2) !important;
}

.sbn-sheet-player .at-cursor-beat {
    background: var(--sbn-primary) !important;
    opacity: 0.8;
    width: 3px !important;
}

.sbn-sheet-player .at-highlight * {
    fill: var(--sbn-primary) !important;
}

/* Hide bar numbers (backup for resources.barNumberColor) */
.sbn-sheet-player .at-bar-number,
.sbn-sheet-mini .at-bar-number {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hide "Rendered by AlphaTab" footer/watermark */
.sbn-sheet-player .at-footer,
.sbn-sheet-mini .at-footer {
    display: none !important;
}

/* Make bars clickable */
.sbn-sheet-player .at-surface svg {
    cursor: pointer;
}

.sbn-sheet-player .at-surface svg rect.at-bar-background:hover {
    fill: rgba(232, 93, 59, 0.1);
}

/* Loading state */
.sbn-sheet-player.loading .sbn-sheet-music::after {
    content: 'Loading sheet music...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--sbn-text-muted);
    font-size: 14px;
}

/* Title bar (optional) */
.sbn-sheet-title {
    padding: 12px 20px;
    border-bottom: 1px solid var(--sbn-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--sbn-text);
}

/* ============================================================================
   MINI PLAYER - UPDATED STYLING
   ============================================================================ */

.sbn-sheet-mini {
    display: flex;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    margin: 5px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible; /* CRITICAL: Changed from hidden - allows content to flow naturally */
    /* contain removed - was causing clipping */
}

.sbn-mini-play-btn {
    width: 24px; /* REDUCED: was 44px - half the size */
    height: 24px; /* REDUCED: was 44px - half the size */
    border-radius: 50%;
    border: none;
    background: var(--sbn-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; /* REDUCED: was 18px */
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: absolute; /* Changed to absolute positioning */
    top: 8px; /* Position in top left corner */
    left: 8px; /* Position in top left corner */
    z-index: 10; /* Above the sheet music */
    box-sizing: border-box; /* Ensure padding doesn't affect dimensions */
    padding: 0; /* Remove any default padding */
}

/* Ensure play icon is visible and centered */
.sbn-mini-play-btn::before {
    content: '▶';
    display: block;
    line-height: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%); /* Slight offset for visual centering of triangle */
    font-size: 10px;
}

.sbn-mini-play-btn.playing::before {
    content: '⏸';
    transform: translate(-50%, -50%); /* Centered for pause icon */
    font-size: 9px;
}

.sbn-mini-play-btn:hover {
    background: var(--sbn-primary-dark);
    transform: scale(1.1);
}

.sbn-mini-play-btn.playing {
    background: var(--sbn-text);
}

/* Tab/Notation Toggle Switch - HIDDEN */
.sbn-mini-toggle {
    display: none !important;
    visibility: hidden !important;
}

.sbn-mini-sheet {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    /* Removed fixed height - allow natural content height */
    min-width: 200px;
    overflow: visible; /* Changed from hidden to visible - prevents cutting off content */
    position: relative;
    background: transparent;
    contain: layout; /* Removed 'size' from contain to allow natural height */
    /* Prevent flicker during render */
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

/* Hide during initial render to prevent flicker */
.sbn-mini-sheet:empty {
    opacity: 0;
}

/* Force AlphaTab to stay within bounds - but allow overflow for footer */
.sbn-mini-sheet .at-surface-svg,
.sbn-mini-sheet .at-main,
.sbn-mini-sheet .at-viewport {
    max-width: 100% !important;
    width: 100% !important;
    /* Removed height and overflow restrictions to prevent cutting */
}

/* Chrome-specific containment */
@supports (-webkit-appearance: none) {
    .sbn-mini-sheet {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    
    .sbn-mini-sheet .at-surface {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* AlphaTab mini overrides - allow natural height */
.sbn-sheet-mini .at-surface {
    padding: 0 !important;
    /* Removed fixed height to prevent cutting off content */
}

.sbn-sheet-mini .at-cursor-beat {
    background: var(--sbn-primary) !important;
    opacity: 0.8;
    width: 2px !important;
}

.sbn-sheet-mini .at-highlight * {
    fill: var(--sbn-primary) !important;
}

/* Hide title and subtitle in mini player */
.sbn-sheet-mini .at-score-title,
.sbn-sheet-mini .at-score-subtitle {
    display: none !important;
    font-size: 0 !important;
}

/* Force hide AlphaTab footer/watermark in mini player */
.sbn-sheet-mini .at-footer,
.sbn-sheet-mini .at-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

/* ============================================================================
   NO VIDEO VARIANT
   ============================================================================ */

.sbn-sheet-player.no-video .sbn-sheet-music {
    min-height: 350px;
}

/* ============================================================================
   RESPONSIVE - TABLET & MOBILE
   ============================================================================ */

/* IMPORTANT: Mini player exists inside course player with sidebar
   Therefore breakpoints are lower than typical responsive breakpoints
   to account for the reduced available width */

/* Large screens - Desktop with full width (1200px+) */
/* Default styles apply - 4 bars per line in horizontal layout */

/* Medium screens - Desktop/Tablet (900px - 1199px) - 3 bars per line */
@media (max-width: 1199px) and (min-width: 900px) {
    .sbn-mini-sheet {
        min-height: 140px;
        /* Removed fixed height to prevent cutting */
    }
}

/* Small-Medium screens - Tablet (700px - 899px) - 2 bars per line */
@media (max-width: 899px) and (min-width: 700px) {
    .sbn-mini-sheet {
        min-height: 160px;
        /* Removed fixed height to prevent cutting */
    }
}

/* Small screens - Mobile/Narrow tablet (500px - 699px) - Page layout, 2 bars per line */
@media (max-width: 699px) and (min-width: 500px) {
    .sbn-sheet-transport {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .sbn-sheet-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sbn-sheet-tempo {
        display: none;
    }
    
    .sbn-sheet-time {
        font-size: 12px;
        min-width: 75px;
    }
    
    .sbn-sheet-music {
        min-height: 200px;
    }
    
    .sbn-sheet-mini {
        padding: 0;
        gap: 0;
    }
    
    .sbn-mini-play-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
        top: 6px;
        left: 6px;
    }
    
    .sbn-mini-play-btn::before {
        font-size: 9px;
    }
    
    .sbn-mini-play-btn.playing::before {
        font-size: 8px;
    }
    
    .sbn-mini-toggle {
        font-size: 14px;
        padding: 5px 8px;
        right: 40px;
        top: 6px;
    }
    
    .sbn-mini-toggle-icon {
        font-size: 16px;
    }
    
    /* Taller for page layout with 2 bars per line */
    .sbn-mini-sheet {
        min-height: 180px;
        /* Removed fixed/max height to prevent cutting */
    }
}

/* Extra small screens - Narrow mobile (below 500px) - Page layout, 1 bar per line */
@media (max-width: 499px) {
    .sbn-sheet-transport {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .sbn-sheet-play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .sbn-sheet-tempo {
        display: none;
    }
    
    .sbn-sheet-time {
        font-size: 11px;
        min-width: 70px;
    }
    
    .sbn-sheet-music {
        min-height: 180px;
    }
    
    .sbn-sheet-mini {
        padding: 0;
        gap: 0;
    }
    
    .sbn-mini-play-btn {
        width: 18px;
        height: 18px;
        font-size: 8px;
        top: 5px;
        left: 5px;
    }
    
    .sbn-mini-play-btn::before {
        font-size: 8px;
    }
    
    .sbn-mini-play-btn.playing::before {
        font-size: 7px;
    }
    
    /* Page layout with 1 bar per line - needs more height */
    .sbn-mini-sheet {
        min-height: 200px;
        /* Removed fixed/max height to prevent cutting */
    }
}

/* ============================================================================
   FRONTEND SYNC MODE (Admin Only)
   ============================================================================ */

/* Sync mode button in transport */
.sbn-sync-mode-btn {
    padding: 6px 12px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.15s;
}

.sbn-sync-mode-btn:hover {
    background: #555;
}

.sbn-sync-mode-btn.active {
    background: var(--sbn-primary);
}

/* Sync panel */
.sbn-sync-panel {
    display: none;
    background: #1d1d1d;
    color: #fff;
    border-top: 2px solid var(--sbn-primary);
}

.sbn-sync-panel.visible {
    display: block;
}

.sbn-sync-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.sbn-sync-panel-title {
    font-size: 14px;
    font-weight: 600;
}

.sbn-sync-panel-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.sbn-sync-panel-close:hover {
    color: #fff;
}

.sbn-sync-panel-body {
    padding: 20px;
}

.sbn-sync-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 6px;
}

.sbn-sync-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sbn-sync-info-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sbn-sync-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.sbn-sync-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sbn-sync-capture-btn {
    padding: 8px 16px;
    background: var(--sbn-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

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

.sbn-sync-capture-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.sbn-sync-points-wrap {
    margin-top: 20px;
}

.sbn-sync-points-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.sbn-sync-points-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.sbn-sync-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 13px;
}

.sbn-sync-point-bar {
    min-width: 50px;
    font-weight: 600;
    color: var(--sbn-primary);
}

.sbn-sync-point-time {
    flex: 1;
    font-family: monospace;
    color: #ccc;
}

.sbn-sync-point-delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.sbn-sync-point-delete:hover {
    color: #e85d3b;
}

.sbn-sync-save-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.sbn-sync-save-btn:hover {
    background: #45a049;
}

/* Settings mode button */
.sbn-settings-mode-btn {
    padding: 6px 12px;
    background: #555;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.sbn-settings-mode-btn:hover {
    background: #666;
}

/* Settings Section inside Sync Panel */
.sbn-settings-section {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.sbn-settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.sbn-settings-row:last-child {
    margin-bottom: 0;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.sbn-settings-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
}

.sbn-settings-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sbn-settings-row select {
    padding: 5px 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.sbn-settings-row input[type="number"] {
    padding: 5px 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    width: 60px;
}

.sbn-apply-settings-btn {
    padding: 6px 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.sbn-apply-settings-btn:hover {
    background: #2563eb;
}

.sbn-save-settings-btn {
    padding: 6px 14px;
    background: var(--sbn-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

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

/* Sync Section Title */
.sbn-sync-section {
    border-top: 1px solid #444;
    padding-top: 15px;
}

.sbn-sync-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

/* ============================================================================
   ADMIN SYNC EDITOR STYLES
   ============================================================================ */

.sbn-sync-editor {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-top: 15px;
}

.sbn-sync-editor-header {
    background: #f6f7f7;
    padding: 12px 15px;
    border-bottom: 1px solid #c3c4c7;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.sbn-sync-editor-body {
    padding: 15px;
}

.sbn-sync-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .sbn-sync-layout {
        grid-template-columns: 1fr;
    }
}

.sbn-sync-panel {
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.sbn-sync-panel-header {
    background: #f6f7f7;
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcde;
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}

.sbn-sync-panel-body {
    padding: 12px;
}

/* Video preview in admin */
.sbn-sync-video-wrapper {
    background: #1a1a1a;
    aspect-ratio: 16/9;
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
}

.sbn-sync-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.sbn-sync-video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.sbn-sync-btn {
    padding: 6px 12px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.sbn-sync-btn:hover {
    background: #135e96;
}

.sbn-sync-btn-small {
    padding: 4px 8px;
}

.sbn-sync-btn-capture {
    background: #e85d3b;
}

.sbn-sync-btn-capture:hover {
    background: #d04a2a;
}

.sbn-sync-time-display {
    font-family: monospace;
    font-size: 13px;
    color: #1d2327;
    margin-left: auto;
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 3px;
}

/* Sync points list */
.sbn-sync-points-list {
    max-height: 280px;
    overflow-y: auto;
}

.sbn-sync-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.15s;
}

.sbn-sync-point:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.sbn-sync-point-num {
    width: 24px;
    height: 24px;
    background: #e85d3b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.sbn-sync-point-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.sbn-sync-point-label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sbn-sync-point-value {
    font-weight: 600;
    color: #1d2327;
    font-family: monospace;
}

.sbn-sync-point-arrow {
    color: #999;
}

.sbn-sync-point-delete {
    color: #b32d2e;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    padding: 0 5px;
}

.sbn-sync-point-delete:hover {
    opacity: 1;
}

/* Add sync point form */
.sbn-sync-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #dcdcde;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sbn-sync-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sbn-sync-input-group label {
    font-size: 12px;
    color: #666;
}

.sbn-sync-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

/* Timeline visualization */
.sbn-sync-timeline {
    margin-top: 15px;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 4px;
}

.sbn-sync-timeline-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.sbn-sync-timeline-track {
    height: 30px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    position: relative;
}

.sbn-sync-timeline-marker {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #e85d3b;
    border-radius: 2px;
}

/* Instructions */
.sbn-sync-instructions {
    background: #fcf9e8;
    border: 1px solid #d4b106;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    color: #6e5d00;
    margin-top: 15px;
}

.sbn-sync-instructions strong {
    display: block;
    margin-bottom: 5px;
    color: #4a4000;
}

/* Hidden sync data field */
.sbn-sync-data-field {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dcdcde;
}

.sbn-sync-data-field label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.sbn-sync-data-field input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    background: #f6f7f7;
}
