/**
 * YOYAKU Media Platform - Dashboard v3.0
 * Minimalist design with refined typography
 *
 * Typography:
 * - Titles: IBM Plex Mono (technical, distinctive)
 * - Body: Familjen Grotesk (readable, compact)
 *
 * Palette:
 * - Background: Deep black (#0a0a0a)
 * - Cards: Subtle dark (#121212)
 * - Text: Off-white (#e5e5e5)
 * - Accent: Warm brown (#8B4513)
 * - Muted: Grays only
 *
 * Author: Benjamin Belaga
 * Date: 2025-12-20
 */

/* ========================================
   FONTS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Familjen+Grotesk:wght@400;500;600&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    /* Core palette - minimal */
    --bg-dark: #0a0a0a;
    --bg-sidebar: #0f0f0f;
    --bg-card: #121212;
    --bg-card-hover: #181818;
    --bg-input: #0d0d0d;

    /* Text hierarchy */
    --text-primary: #e5e5e5;
    --text-secondary: #808080;
    --text-muted: #4a4a4a;
    --text-label: #666666;

    /* Single accent color */
    --accent: #8B4513;
    --accent-hover: #A0522D;
    --accent-subtle: rgba(139, 69, 19, 0.15);
    --accent-glow: rgba(139, 69, 19, 0.4);

    /* Functional colors - subtle */
    --success: #2d5a3d;
    --error: #5a2d2d;
    --border: #1f1f1f;
    --border-hover: #2a2a2a;

    /* Spacing */
    --sidebar-width: 200px;
    --gap: 24px;
    --gap-sm: 16px;
    --radius: 8px;
    --radius-sm: 6px;

    /* Typography */
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
    --font-body: 'Familjen Grotesk', -apple-system, sans-serif;

    /* Transitions */
    --transition: all 0.2s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, .section-title, .card-title {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-label);
    letter-spacing: 0.02em;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: var(--gap);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h1 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.sidebar-header .version {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-subtle);
    color: var(--text-primary);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--gap);
    min-height: 100vh;
}

/* ========================================
   CARDS - Minimal style
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--gap-sm);
}

/* ========================================
   BUTTONS - Subtle, refined
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

/* ========================================
   FORM ELEMENTS
   ======================================== */

input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
}

.form-group {
    margin-bottom: var(--gap-sm);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-sm);
}

/* ========================================
   FORM SECTIONS - Clean borders
   ======================================== */

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap);
    margin-bottom: var(--gap);
}

.form-section.manufacturing {
    border-left: 2px solid var(--accent);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-subtle);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent);
}

.section-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-sm);
}

/* ========================================
   DROP ZONES - Minimal glow
   ======================================== */

.drop-zone {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-input);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--accent);
    background: var(--accent-subtle);
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.15);
}

.drop-zone-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.drop-zone-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.drop-zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   DEFER PAO OPTION
   ======================================== */

.pao-defer-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

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

.defer-notice {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========================================
   FILE LIST
   ======================================== */

.file-list {
    margin-top: var(--gap-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 4px;
}

.file-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    transition: var(--transition);
}

.file-remove:hover {
    color: var(--error);
}

/* ========================================
   WORKFLOW SELECTOR - Refined
   ======================================== */

.workflow-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
    margin-bottom: var(--gap);
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.workflow-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.workflow-card.selected {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.workflow-card-icon {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.workflow-card.selected .workflow-card-icon {
    color: var(--accent);
}

.workflow-card-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.workflow-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   QUICK ACTIONS - Unified style
   ======================================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-sm);
    margin-bottom: var(--gap);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Remove colored variants - all subtle now */
.quick-action-btn.primary,
.quick-action-btn.youtube {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

.quick-action-btn.primary:hover,
.quick-action-btn.youtube:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ========================================
   AUDIO TYPE SELECTOR
   ======================================== */

.audio-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
}

.audio-type-option {
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.audio-type-option:hover {
    border-color: var(--border-hover);
}

.audio-type-option.selected {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.audio-type-option .type-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.audio-type-option .type-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   OPTIONAL SPECS - Subtle
   ======================================== */

.optional-specs {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap);
    margin-top: var(--gap-sm);
}

.optional-specs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--gap-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.optional-specs-header .hint {
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--gap-sm);
}

.spec-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.other-specs-textarea {
    min-height: 70px;
    margin-top: var(--gap-sm);
    resize: vertical;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.submit-btn.manufacturing {
    background: var(--accent);
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.upload-progress-container {
    max-width: 400px;
    margin: var(--gap-sm) auto;
}

.upload-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.upload-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-progress-text .percentage {
    font-family: var(--font-mono);
    color: var(--accent);
}

/* ========================================
   SKU STATUS BADGE
   ======================================== */

.sku-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.sku-status.found {
    background: var(--success);
    color: #fff;
}

.sku-status.not-found {
    background: var(--accent-subtle);
    color: var(--accent);
}

.sku-status.checking {
    background: var(--bg-card);
    color: var(--text-muted);
}

.sku-status .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.sku-status.checking .status-dot {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sku-input-wrapper {
    position: relative;
}

.sku-input-wrapper input {
    padding-right: 110px;
}

.sku-input-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   RESULT MESSAGES
   ======================================== */

.result-message {
    text-align: center;
    padding: 40px;
}

.result-icon {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-bottom: 16px;
}

.result-message.success .result-icon {
    color: var(--success);
}

.result-message.error .result-icon {
    color: var(--error);
}

.result-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.result-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    margin-bottom: var(--gap);
}

.page-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   REQUIRED INDICATOR
   ======================================== */

.required {
    color: var(--accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        margin-left: 0;
    }

    .workflow-selector,
    .audio-type-selector {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACTION CARDS (Dashboard)
   ======================================== */

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-content h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   RECENT PACKS LIST
   ======================================== */

.recent-packs h2 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
}

.pack-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.pack-info {
    display: flex;
    flex-direction: column;
}

.pack-sku {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.pack-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pack-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.pack-link:hover {
    text-decoration: underline;
}

/* ========================================
   LINKS - Global
   ======================================== */

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   USER BAR
   ======================================== */

.user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: var(--gap);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   AUTH OVERLAY
   ======================================== */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 400px;
}

.auth-card h2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.google-btn:hover {
    background: #f5f5f5;
}

/* ========================================
   SUBMIT SECTION
   ======================================== */

.submit-section {
    text-align: center;
    padding: var(--gap) 0;
}
/* Submit Release Page Fixes - Manufacturing = Brown, Online = Violet */

/* =========================== */
/* WORKFLOW SELECTOR           */
/* =========================== */

.workflow-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.workflow-card {
    padding: 24px;
    background: #141414;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.workflow-card:hover {
    border-color: #444;
    background: #1a1a1a;
}

/* Manufacturing = Warm Brown */
.workflow-card.selected.manufacturing,
.workflow-card.manufacturing:hover {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.08);
}

.workflow-card.manufacturing .workflow-card-icon {
    color: #c4956a;
}

/* Online = Violet */
.workflow-card.selected:not(.manufacturing) {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.workflow-card:not(.manufacturing):hover {
    border-color: #8b5cf6;
}

.workflow-card:not(.manufacturing) .workflow-card-icon {
    color: #8b5cf6;
}

.workflow-card-icon {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    opacity: 0.7;
}

.workflow-card.selected .workflow-card-icon {
    opacity: 1;
}

.workflow-card-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.workflow-card-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* =========================== */
/* QUICK ACTIONS - FIX SIZE    */
/* =========================== */

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.quick-action-btn:hover {
    background: #222;
    border-color: #444;
    color: #fff;
    text-decoration: none;
}

.quick-action-btn.primary:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.quick-action-btn.youtube:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* =========================== */
/* FORM SECTIONS COLOR CODING  */
/* =========================== */

/* Manufacturing sections = Brown accent */
.form-section.manufacturing {
    border-left: 3px solid #c4956a;
}

.form-section.manufacturing .section-title .icon {
    background: rgba(196, 149, 106, 0.2);
    color: #c4956a;
}

/* Online sections = Violet accent */
.form-section:not(.manufacturing) {
    border-left: 3px solid #8b5cf6;
}

.form-section:not(.manufacturing) .section-title .icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

/* =========================== */
/* SUBMIT BUTTONS              */
/* =========================== */

.submit-btn.manufacturing {
    background: linear-gradient(135deg, #c4956a 0%, #a67c52 100%);
    color: #fff;
}

.submit-btn.manufacturing:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4a57a 0%, #b68c62 100%);
    box-shadow: 0 4px 20px rgba(196, 149, 106, 0.3);
}

.submit-btn:not(.manufacturing) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}

.submit-btn:not(.manufacturing):hover:not(:disabled) {
    background: linear-gradient(135deg, #9d6ff8 0%, #8b5cf6 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* =========================== */
/* DROP ZONES                  */
/* =========================== */

.drop-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0a0a0a;
}

.drop-zone:hover {
    border-color: #555;
    background: #111;
}

.drop-zone.dragging {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.05);
}

.drop-zone-icon {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}

.drop-zone-text {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 8px;
}

.drop-zone-hint {
    font-size: 0.8rem;
    color: #555;
}

/* =========================== */
/* AUDIO TYPE SELECTOR         */
/* =========================== */

.audio-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.audio-type-option {
    padding: 16px;
    background: #111;
    border: 2px solid #222;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.audio-type-option:hover {
    border-color: #444;
}

.audio-type-option.selected {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.08);
}

.audio-type-option.warning.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.type-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 4px;
}

.type-desc {
    font-size: 0.8rem;
    color: #666;
}

/* =========================== */
/* SPECS SECTION               */
/* =========================== */

.optional-specs {
    margin-top: 20px;
    padding: 20px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 10px;
}

.optional-specs-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 16px;
}

.optional-specs-header .hint {
    color: #555;
    font-weight: 400;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.spec-item label {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 6px;
}

.spec-item select,
.spec-item input {
    width: 100%;
    padding: 10px 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.other-specs-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    resize: vertical;
}

/* =========================== */
/* PAGE HEADER                 */
/* =========================== */

.page-header {
    margin-bottom: 32px;
}

.page-header h1,
.page-header .page-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 0.95rem;
    color: #888;
}

/* =========================== */
/* UPLOAD PROGRESS             */
/* =========================== */

.upload-progress-container {
    margin-top: 16px;
}

.upload-progress-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c4956a, #d4a57a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.upload-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
}

.upload-progress-text .percentage {
    color: #c4956a;
    font-weight: 600;
}
/* ================================= */
/* MANUFACTURING SPECS SECTION       */
/* ================================= */

.spec-subsection {
    margin-top: 24px;
    padding: 20px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 10px;
}

.spec-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.spec-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #c4956a;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.download-link:hover {
    color: #c4956a;
}

.download-link svg {
    flex-shrink: 0;
}

/* Vinyl Color Grid */
.vinyl-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.color-category {
    display: flex;
    flex-direction: column;
}

.color-category.full-width {
    grid-column: 1 / -1;
}

.color-category label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 6px;
}

.color-category select,
.color-category input {
    padding: 10px 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.color-category select:focus,
.color-category input:focus {
    border-color: #c4956a;
    outline: none;
}

.spec-note {
    margin-top: 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #f59e0b;
}

/* Sleeve Options */
.sleeve-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.sleeve-option label {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 6px;
}

.sleeve-option select {
    width: 100%;
    padding: 10px 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

/* Template Download Button */
.template-download {
    margin-top: 16px;
    padding: 16px;
    background: rgba(196, 149, 106, 0.08);
    border: 1px solid rgba(196, 149, 106, 0.3);
    border-radius: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #c4956a;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #d4a57a;
    text-decoration: none;
}

.download-btn.small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.template-specs {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* Label Info */
.label-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.label-specs {
    font-size: 0.85rem;
    color: #888;
}

/* PAO Requirements */
.pao-requirements {
    border-color: rgba(16, 185, 129, 0.3);
}

.pao-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
}

.pao-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #aaa;
    padding: 6px 0;
}

.pao-checklist .check {
    color: #10b981;
    font-weight: bold;
}

.pao-checklist .warn {
    color: #f59e0b;
    font-weight: bold;
}

.pao-checklist .info {
    color: #3b82f6;
    font-weight: bold;
}

/* File Validation Alerts */
.file-validation-alert {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.file-validation-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.file-validation-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.file-validation-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.file-validation-alert .alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-validation-alert .alert-content {
    flex: 1;
}

.file-validation-alert .alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.file-validation-alert .alert-details {
    opacity: 0.9;
}

/* Audio Validation */
.audio-validation-info {
    margin-top: 16px;
    padding: 16px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 8px;
}

.audio-validation-info h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c4956a;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

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

.audio-spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.audio-spec-item .spec-name {
    color: #777;
}

.audio-spec-item .spec-value {
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
}

/* Max Duration Info */
.duration-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
}

.duration-info h5 {
    font-size: 0.8rem;
    color: #3b82f6;
    margin-bottom: 8px;
}

.duration-table {
    font-size: 0.8rem;
    color: #888;
}

.duration-table span {
    display: inline-block;
    margin-right: 16px;
}

/* PAO File Validation Styles */
.file-item.has-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.file-details {
    flex: 1;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.8rem;
}

.file-meta .file-size {
    color: #666;
}

.file-dimensions {
    color: #3b82f6;
    font-family: 'IBM Plex Mono', monospace;
}

.file-dpi {
    font-family: 'IBM Plex Mono', monospace;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.file-dpi.ok {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.file-dpi.low {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.file-size-mb {
    color: #888;
    font-family: 'IBM Plex Mono', monospace;
}

.file-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    color: #f59e0b;
    font-size: 0.8rem;
}

.file-warning svg {
    flex-shrink: 0;
    stroke: #f59e0b;
}

/* Tracklist Section */
.rpm-selector {
    margin-bottom: 20px;
}

.rpm-selector label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rpm-options {
    display: flex;
    gap: 12px;
}

.rpm-option {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 24px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rpm-option:hover {
    border-color: #555;
}

.rpm-option.selected {
    background: rgba(196, 149, 106, 0.15);
    border-color: #c4956a;
}

.rpm-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.rpm-option.selected .rpm-value {
    color: #c4956a;
}

.rpm-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.tracklist-container {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 16px;
}

.tracklist-empty {
    text-align: center;
    padding: 24px;
    color: #666;
    font-size: 0.9rem;
}

.tracklist-empty p {
    margin: 0;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.track-row:last-of-type {
    border-bottom: none;
}

.track-position {
    flex-shrink: 0;
}

.position-input {
    width: 50px;
    padding: 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #c4956a;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.position-input:focus {
    outline: none;
    border-color: #c4956a;
}

.track-title {
    flex: 1;
}

.title-input {
    width: 100%;
    padding: 8px 12px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.title-input:focus {
    outline: none;
    border-color: #555;
}

.track-duration {
    flex-shrink: 0;
}

.duration-input {
    width: 60px;
    padding: 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    text-align: center;
}

.duration-input:focus {
    outline: none;
    border-color: #555;
}

.track-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.track-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.tracklist-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #222;
}

.add-track-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px dashed #444;
    border-radius: 6px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-track-btn:hover {
    border-color: #c4956a;
    color: #c4956a;
}

.add-track-btn svg {
    stroke: currentColor;
}

.export-tracklist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #3b82f6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.export-tracklist-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.export-tracklist-btn svg {
    stroke: currentColor;
}

/* Audio-Track Link Styles */
.audio-specs {
    color: #c4956a;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
}

.track-link {
    color: #10b981;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}

.file-item.audio-linked {
    border-left: 3px solid rgba(16, 185, 129, 0.4);
}

/* Manufacturing Tracklist Found Indicator */
.mfg-tracklist-found {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    font-size: 0.8rem;
}

.mfg-tracklist-found svg {
    flex-shrink: 0;
    stroke: #10b981;
}

/* ========================================
   LISIBILITY FIX - Better Contrast
   ======================================== */

/* Labels - Plus blanc, plus lisible */
.form-group label,
.spec-item label,
.color-category label,
.sleeve-option label,
.rpm-selector label {
    color: #e0e0e0 !important;
    font-weight: 500;
}

/* Required asterisk - Rouge vif */
.required {
    color: #ef4444 !important;
}

/* Section titles - Blanc pur */
.section-title {
    color: #ffffff !important;
}

/* Section help text - Gris plus clair */
.section-help {
    color: #aaaaaa !important;
}

/* Spec labels (SPECIFICATIONS, VINYL COLOR, etc) */
.spec-label,
.optional-specs-header span:first-child,
.spec-subsection-header .spec-label {
    color: #c4956a !important;
}

/* Hint text - Gris moyen lisible */
.hint,
.optional-specs-header .hint {
    color: #888888 !important;
}

/* Input placeholders - Gris moyen (pas trop clair) */
input::placeholder,
textarea::placeholder,
select option:first-child {
    color: #666666 !important;
    opacity: 1;
}

/* Input text - Blanc */
input,
textarea,
select {
    color: #ffffff !important;
}

/* Select options */
select option {
    color: #ffffff;
    background: #1a1a1a;
}

/* Workflow card descriptions */
.workflow-card-desc {
    color: #bbbbbb !important;
}

/* Page subtitle */
.page-header p {
    color: #aaaaaa !important;
}

/* Drop zone text */
.drop-zone-text {
    color: #cccccc !important;
}

.drop-zone-hint {
    color: #999999 !important;
}

/* File info */
.file-name {
    color: #ffffff !important;
}

.file-size {
    color: #888888 !important;
}

/* PAO checklist */
.pao-checklist li {
    color: #bbbbbb !important;
}

/* Tracklist empty state */
.tracklist-empty p {
    color: #888888 !important;
}

/* Nav items */
.nav-item {
    color: #aaaaaa !important;
}

.nav-item:hover,
.nav-item.active {
    color: #ffffff !important;
}

/* ========================================
   HELP TOOLTIPS
   ======================================== */

.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    background: #333;
    border-radius: 50%;
    cursor: help;
    font-size: 10px;
    color: #888;
    font-weight: 600;
    transition: all 0.2s;
}

.help-tooltip:hover {
    background: #c4956a;
    color: #000;
}

.help-tooltip .tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 12px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #ccc;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.help-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.help-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip-content strong {
    color: #fff;
    display: block;
    margin-bottom: 6px;
}

.tooltip-content code {
    background: #0d0d0d;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #c4956a;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    margin-top: 40px;
    padding: 24px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 16px;
    border-bottom: 1px solid #222;
    margin-bottom: 16px;
}

.faq-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.faq-header .toggle-icon {
    color: #666;
    transition: transform 0.3s;
}

.faq-header.open .toggle-icon {
    transform: rotate(180deg);
}

.faq-list {
    display: none;
}

.faq-list.open {
    display: block;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #ddd;
    font-weight: 500;
    font-size: 0.9rem;
}

.faq-question .q-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 149, 106, 0.2);
    border-radius: 4px;
    color: #c4956a;
    font-size: 0.75rem;
    font-weight: 700;
}

.faq-answer {
    display: none;
    margin-top: 12px;
    margin-left: 30px;
    padding: 12px 16px;
    background: #111;
    border-radius: 8px;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
}

.faq-answer.open {
    display: block;
}

.faq-answer strong {
    color: #fff;
}

.faq-answer code {
    background: #0a0a0a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    color: #c4956a;
}

.faq-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 1px solid #222;
}

.faq-category:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Optimize Layout Button */
.optimize-layout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: #8b5cf6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.optimize-layout-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.optimize-layout-btn svg {
    stroke: currentColor;
}

/* Layout Warning (red = severe, orange = moderate) */
.layout-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

.layout-warning.moderate {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.layout-warning.moderate svg {
    stroke: #f59e0b;
}

.layout-warning.severe {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.layout-warning svg {
    flex-shrink: 0;
    stroke: #ef4444;
}

/* Smart Layout Recommendation Banner */
.smart-recommendation {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.smart-recommendation .recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.smart-recommendation .recommendation-header svg {
    stroke: #22c55e;
    flex-shrink: 0;
}

.smart-recommendation .recommendation-title {
    font-weight: 600;
    color: #22c55e;
    font-size: 0.9rem;
}

.smart-recommendation .dismiss-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.smart-recommendation .dismiss-btn:hover {
    color: #999;
}

.smart-recommendation .recommendation-body {
    padding: 16px;
}

.smart-recommendation .recommendation-reason {
    margin: 0 0 12px 0;
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.5;
}

.smart-recommendation .distribution-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.smart-recommendation .side-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.8rem;
}

.smart-recommendation .side-preview.moderate {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.smart-recommendation .side-preview.severe {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.smart-recommendation .side-letter {
    font-weight: 700;
    color: #c4956a;
    font-family: 'IBM Plex Mono', monospace;
}

.smart-recommendation .side-tracks {
    color: #888;
}

.smart-recommendation .side-duration {
    color: #22c55e;
    font-weight: 500;
}

.smart-recommendation .side-preview.moderate .side-duration {
    color: #f59e0b;
}

.smart-recommendation .side-preview.severe .side-duration {
    color: #ef4444;
}

.smart-recommendation .rpm-recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(196, 149, 106, 0.1);
    border: 1px solid rgba(196, 149, 106, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.smart-recommendation .rpm-recommendation span {
    color: #bbb;
    font-size: 0.85rem;
}

.smart-recommendation .rpm-recommendation strong {
    color: #c4956a;
}

.smart-recommendation .apply-rpm-btn {
    padding: 6px 12px;
    background: #c4956a;
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.smart-recommendation .apply-rpm-btn:hover {
    background: #d4a57a;
}

.smart-recommendation .recommendation-total {
    font-size: 0.8rem;
    color: #666;
}

/* Notes & Instructions Section */
.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.notes-textarea:focus {
    outline: none;
    border-color: #c4956a;
}

.notes-textarea::placeholder {
    color: #666;
}

.notes-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(196, 149, 106, 0.1);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #c4956a;
}

.notes-hint svg {
    flex-shrink: 0;
}

/* Vinyl Disc Separator in Tracklist */
.vinyl-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px 0;
    padding: 8px 0;
    border-top: 1px solid #333;
}

.vinyl-separator .vinyl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #444;
    border-radius: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c4956a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vinyl-separator .vinyl-badge svg {
    width: 14px;
    height: 14px;
    stroke: #c4956a;
}

.vinyl-separator .side-info {
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   TRACK PLANNER MODE
   ============================================ */

.planner-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #333;
}

.planner-toggle .toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.planner-toggle .toggle-btn:hover {
    color: #ccc;
}

.planner-toggle .toggle-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.planner-toggle .toggle-btn.active svg {
    stroke: #fff;
}

.track-planner {
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
}

.planner-intro {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    color: #b8a5d6;
    font-size: 0.9rem;
    line-height: 1.5;
}

.planner-intro strong {
    color: #8b5cf6;
}

.planner-tracks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.planner-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.planner-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 50%;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
}

.planner-title {
    flex: 1;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.planner-title:focus {
    border-color: #8b5cf6;
    outline: none;
}

.planner-duration {
    width: 70px;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
}

.planner-duration:focus {
    border-color: #8b5cf6;
    outline: none;
}

.planner-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.planner-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.planner-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.planner-add {
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed #444;
    border-radius: 6px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.planner-add:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.planner-total {
    color: #888;
    font-size: 0.9rem;
}

.planner-total strong {
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
}

.generate-layout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-layout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.generate-layout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-layout-btn svg {
    stroke: #fff;
}

/* Planner Result Preview */
.planner-result {
    margin-top: 24px;
    padding: 20px;
    background: #1a1a1a;
    border: 2px solid #8b5cf6;
    border-radius: 12px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.result-header span {
    font-weight: 600;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.apply-layout-btn {
    padding: 8px 16px;
    background: #10b981;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-layout-btn:hover {
    background: #059669;
}

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

.result-side {
    padding: 16px;
    background: #222;
    border-radius: 8px;
}

.side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.side-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c4956a, #a67c52);
    border-radius: 50%;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
}

.side-duration {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.side-duration.warning {
    color: #ef4444;
}

.side-tracks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #1a1a1a;
    border-radius: 6px;
}

.side-track .track-pos {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c4956a;
    min-width: 28px;
}

.side-track .track-name {
    flex: 1;
    font-size: 0.85rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-track .track-dur {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #666;
}

/* ========================================
   SPRINT 1 - NEW STYLES
   ======================================== */

/* Sleeve warning (dos pincé) */
.sleeve-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

/* White label option */
.white-label-option {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.white-label-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
    color: #f59e0b;
    font-style: italic;
}

/* Disabled select */
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-dark);
}

/* Autocomplete container */
.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: rgba(139, 69, 19, 0.2);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .label-name {
    font-weight: 500;
}

.autocomplete-item .label-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.autocomplete-loading {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.selected-label-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.label-badge {
    background: var(--accent);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* ========================================
   SPRINT 2 - SMART TRACKLIST
   ======================================== */

/* Auto-detected track input with accent border */
.title-input.auto-detected {
    border-left: 3px solid var(--accent);
}

/* Auto-detected tracks notice */
.tracklist-auto-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
}

/* ========================================
   SPRINT 5 - DOCUMENTATION
   ======================================== */

/* Workflow Introduction */
.workflow-intro {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.workflow-steps {
    display: flex;
    gap: 1.5rem;
}

.workflow-intro .step {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Enhanced Tooltips */
.tooltip-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
    list-style: none;
}

.tooltip-list li {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.tooltip-list li code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
}

/* PAO Help Section */
.pao-help {
    background: rgba(139, 69, 19, 0.05);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.pao-help-row {
    display: flex;
    gap: 2rem;
}

.pao-help-col {
    flex: 1;
}

.pao-help h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--accent);
}

.pao-help ul {
    margin: 0;
    padding-left: 1.25rem;
}

.pao-help li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.pao-help li strong {
    color: var(--text-primary);
}

/* Mobile responsive for workflow intro */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .pao-help-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   RESUME MODE (PAO DEFERRED UPLOAD)
   ======================================== */

.resume-mode-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 69, 19, 0.08) 100%);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.resume-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.5px;
}

.resume-content h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.resume-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resume-status {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: #4ade80;
}

.status-dot.pending {
    background: #fbbf24;
}

/* Resume form simplified */
.resume-pao-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.resume-pao-form h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Mobile responsive for resume mode */
@media (max-width: 768px) {
    .resume-mode-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resume-status {
        justify-content: center;
    }
}
