/**
 * Release Forms - Shared Styles
 * Used by: submit-release-manufacturing.html, submit-release-online.html
 * Version: 1.0.0
 */

/* ==========================================================================
   Input States
   ========================================================================== */

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.input-valid {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top-color: #c4956a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Discogs Validation
   ========================================================================== */

.discogs-help summary:hover {
    color: #c4956a;
}

.discogs-help[open] summary {
    color: #c4956a;
    margin-bottom: 0;
}

.discogs-create-btn:hover {
    background: #444 !important;
    border-color: #666 !important;
}

/* ==========================================================================
   Language Toggle
   ========================================================================== */

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    border-color: #555;
    background: #222;
}

.lang-toggle span.active {
    color: #c4956a;
    font-weight: 600;
}

.lang-toggle .lang-divider {
    color: #444;
}

/* ==========================================================================
   Label Autocomplete
   ========================================================================== */

.autocomplete-create-new {
    border-top: 1px solid #333;
    color: #c4956a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-create-new:hover {
    background: rgba(196, 149, 106, 0.15) !important;
}

.create-new-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.autocomplete-empty {
    color: #666;
    font-style: italic;
    cursor: default;
}

.autocomplete-empty:hover {
    background: transparent !important;
}

/* ==========================================================================
   Copy from Previous (Submission History)
   ========================================================================== */

.copy-history-item:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

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

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #e5e5e5;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #333;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-secondary {
    background: #333;
    border: 1px solid #444;
    color: #e5e5e5;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #444;
}

.btn-primary {
    background: #c4956a;
    border: none;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #d4a67a;
}

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

/* ==========================================================================
   Alert Box
   ========================================================================== */

.alert-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Date Picker
   ========================================================================== */

.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper input[type="date"] {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-right: 3rem;
    background: var(--bg-input, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 8px;
    color: var(--text-primary, #e5e5e5);
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-picker-wrapper input[type="date"]:hover {
    border-color: #c4956a;
    background: #151515;
}

.date-picker-wrapper input[type="date"]:focus {
    outline: none;
    border-color: #c4956a;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

/* Custom calendar icon */
.date-picker-wrapper::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c4956a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

/* Style the native calendar dropdown (WebKit/Chrome) */
.date-picker-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

/* Firefox - hide default icon */
.date-picker-wrapper input[type="date"]::-moz-focus-inner {
    border: 0;
}

/* Date display format hint */
.date-picker-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #4a4a4a);
}

.date-picker-hint svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ==========================================================================
   Pricing Calculator (Manufacturing)
   ========================================================================== */

.pricing-calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.pricing-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-inputs .form-group {
    margin-bottom: 0;
}

.addons-section {
    margin: 1.5rem 0;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addon-item:hover {
    border-color: #c4956a;
}

.addon-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.addon-item input[type="checkbox"] {
    margin: 0;
}

.addon-label {
    flex: 1;
    font-size: 0.9rem;
}

.option-unavailable {
    color: #ef4444;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.pricing-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.pricing-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 2px solid var(--accent);
}

.pricing-total span:last-child {
    color: #c4956a;
    font-size: 1.5rem;
}

.pricing-per-unit {
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(196, 149, 106, 0.1);
    border-radius: 4px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 500;
    color: #c4956a;
}

.suggested-prices {
    margin-top: 1.5rem;
}

.suggested-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.suggested-price-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(196, 149, 106, 0.1);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 6px;
}

.suggested-price-item .multiplier {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.suggested-price-item .unit-price {
    font-weight: 500;
    color: #c4956a;
    font-size: 1rem;
}

.suggested-price-item .total-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pricing-errors {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
}

.error-item {
    margin-bottom: 0.5rem;
}

.pricing-loading,
.pricing-error {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.pricing-error {
    color: #ef4444;
}

.price-item.price-total {
    background: rgba(196, 149, 106, 0.15);
    border-color: rgba(196, 149, 106, 0.3);
}

.price-item.price-total .price-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.suggested-price-item .label-revenue {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 500;
}

.pricing-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(196, 149, 106, 0.05);
    border-left: 3px solid #c4956a;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-note p {
    margin: 0;
}

/* ==========================================================================
   VA Release Indicator
   ========================================================================== */

.va-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(196, 149, 106, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #c4956a;
}

.va-badge {
    background: #c4956a;
    color: #1a1a2e;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.va-hint {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ==========================================================================
   Manufacturing Sub-Options
   ========================================================================== */

.mfg-sub-options {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 8px;
}

.mfg-sub-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .mfg-sub-buttons {
        grid-template-columns: 1fr;
    }
}

.mfg-sub-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-dark, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.mfg-sub-btn:hover {
    border-color: #444;
    background: #151515;
}

.mfg-sub-btn.selected {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.1);
}

.mfg-sub-btn.recommended {
    position: relative;
    border-color: rgba(196, 149, 106, 0.4);
}

.mfg-recommended-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #c4956a;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}

.mfg-sub-title {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #e5e5e5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mfg-sub-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
    line-height: 1.4;
}

.recommended-badge {
    background: #22c55e;
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mfg-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-left: 3px solid #eab308;
    border-radius: 0 6px 6px 0;
}

.mfg-warning-note svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #eab308;
}

.mfg-warning-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
    line-height: 1.5;
}

.mfg-warning-note strong {
    color: var(--text-primary, #e5e5e5);
}

/* ==========================================================================
   Tracklist Builder (Manufacturing)
   ========================================================================== */

.tracklist-builder {
    margin-top: 1rem;
}

.tracklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.tracklist-table {
    width: 100%;
    border-collapse: collapse;
}

.tracklist-table th,
.tracklist-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #1f1f1f);
}

.tracklist-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracklist-table input {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-input, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 4px;
    color: var(--text-primary, #e5e5e5);
    font-family: inherit;
    font-size: 0.9rem;
}

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

.track-position {
    width: 60px;
}

.track-duration {
    width: 80px;
}

.track-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
}

.track-remove:hover {
    color: #ef4444;
}

/* ==========================================================================
   Draft System (Online)
   ========================================================================== */

.draft-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 8px;
}

.draft-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-dark, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 6px;
    color: var(--text-primary, #e5e5e5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.draft-btn:hover {
    border-color: #c4956a;
    background: #151515;
}

.draft-btn.active {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.1);
}

.draft-btn svg {
    width: 16px;
    height: 16px;
}

.draft-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
}

.draft-indicator.saved {
    color: #22c55e;
}

.draft-indicator.saving {
    color: #c4956a;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 8px;
}

.form-section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #e5e5e5);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border, #1f1f1f);
}

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

.form-row:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   File Upload
   ========================================================================== */

.file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border, #1f1f1f);
    border-radius: 8px;
    background: var(--bg-dark, #0d0d0d);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 150px;
}

.file-upload-zone:hover {
    border-color: #c4956a;
    background: #151515;
}

.file-upload-zone.dragover {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.1);
}

.file-upload-zone.has-file {
    border-style: solid;
    border-color: #22c55e;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-secondary, #888);
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-secondary, #888);
    text-align: center;
}

.file-upload-text strong {
    color: #c4956a;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-card, #1a1a1a);
    border-radius: 6px;
    font-size: 0.85rem;
}

.file-info-name {
    flex: 1;
    color: var(--text-primary, #e5e5e5);
    word-break: break-all;
}

.file-info-size {
    color: var(--text-secondary, #888);
}

.file-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
}

.file-remove:hover {
    color: #ef4444;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.submit-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #1f1f1f);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: #c4956a;
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #d4a67a;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Success/Error Messages
   ========================================================================== */

.message-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.message-box.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

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

.message-box.warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.message-box.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border, #1f1f1f);
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #e5e5e5);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-inputs,
    .pricing-summary {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .draft-controls {
        flex-wrap: wrap;
    }

    .draft-indicator {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   Online Form - Compact Layout
   ========================================================================== */

/* Tighter form sections */
.submit-container .form-section {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.submit-container .form-section .section-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.submit-container .form-section .section-title .icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

/* Compact form groups */
.submit-container .form-group {
    margin-bottom: 0.75rem;
}

.submit-container .form-group label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.submit-container .form-group input,
.submit-container .form-group select,
.submit-container .form-group textarea {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

/* Compact genre grid - 4 columns */
.submit-container .genre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.submit-container .genre-grid .form-group {
    margin-bottom: 0;
}

.submit-container .genre-grid label {
    font-size: 0.75rem;
}

.submit-container .genre-grid select {
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Artist list compact */
.submit-container .artist-list {
    gap: 0.35rem;
}

.submit-container .artist-row input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.submit-container .add-artist-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* VA indicator compact */
.submit-container .va-indicator {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Tracklist compact */
.submit-container .tracklist-inputs {
    gap: 0.35rem;
}

.submit-container .track-input-row input {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
}

.submit-container .track-input-row input[style*="width: 60px"] {
    width: 50px !important;
    padding: 0.5rem 0.4rem;
}

/* Drop zones compact */
.submit-container .drop-zone {
    padding: 1.25rem;
    min-height: 80px;
}

.submit-container .drop-zone-icon {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.submit-container .drop-zone-text {
    font-size: 0.85rem;
}

.submit-container .drop-zone-hint {
    font-size: 0.75rem;
}

/* File list compact */
.submit-container .file-list {
    margin-top: 0.75rem;
    gap: 0.35rem;
}

.submit-container .file-item {
    padding: 0.5rem 0.75rem;
}

.submit-container .file-icon {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
}

.submit-container .file-name {
    font-size: 0.85rem;
}

.submit-container .file-size {
    font-size: 0.75rem;
}

/* Discogs section compact */
.submit-container .discogs-section .common-ground-info {
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.submit-container .discogs-section .common-ground-info p {
    font-size: 0.8rem;
}

.submit-container .discogs-section .discogs-preview {
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.submit-container .discogs-section .discogs-preview img {
    width: 50px;
    height: 50px;
}

/* Submit section compact */
.submit-container .submit-section {
    padding: 1.25rem;
}

.submit-container .submit-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* Disclaimer boxes compact */
.submit-container .disclaimer-box {
    padding: 0.75rem;
}

.submit-container .disclaimer-box span {
    font-size: 0.85rem;
}

/* Page header compact */
.submit-container .page-header h1 {
    font-size: 1.4rem;
}

.submit-container .page-header p {
    font-size: 0.85rem;
}

/* Quick actions compact */
.submit-container .quick-actions {
    gap: 0.75rem;
    margin-bottom: 0.75rem !important;
}

.submit-container .quick-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* User bar compact */
.submit-container .user-bar {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* Drafts bar compact */
.submit-container [style*="margin-bottom: 1.5rem"] {
    margin-bottom: 1rem !important;
}

@media (max-width: 900px) {
    .submit-container .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   COMPACT AUDIO FILE GRID (Manufacturing)
   Replaces full-width file list with compact grid + inline title editing
   ========================================================================== */

/* Drop zone - more compact */
.audio-drop-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px dashed var(--border, #1f1f1f);
    border-radius: 8px;
    background: var(--bg-dark, #0d0d0d);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-drop-compact:hover {
    border-color: #c4956a;
    background: #151515;
}

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

.audio-drop-compact .drop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(196, 149, 106, 0.15);
    border-radius: 8px;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.7rem;
    font-weight: 600;
    color: #c4956a;
}

.audio-drop-compact .drop-text {
    flex: 1;
}

.audio-drop-compact .drop-text-main {
    font-size: 0.9rem;
    color: var(--text-primary, #e5e5e5);
    margin-bottom: 0.25rem;
}

.audio-drop-compact .drop-text-hint {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
}

.audio-drop-compact .file-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #c4956a;
    border-radius: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

/* Compact file grid */
.audio-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for file grid */
.audio-file-grid::-webkit-scrollbar {
    width: 6px;
}

.audio-file-grid::-webkit-scrollbar-track {
    background: var(--bg-dark, #0d0d0d);
    border-radius: 3px;
}

.audio-file-grid::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.audio-file-grid::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Individual file card - compact */
.audio-file-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 6px;
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
}

.audio-file-card:hover {
    border-color: #444;
    background: #151515;
}

.audio-file-card.dragging {
    opacity: 0.5;
    border-color: #c4956a;
}

.audio-file-card.drag-over {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.1);
}

/* Drag handle */
.audio-file-card .drag-handle {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
    cursor: grab;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.audio-file-card:hover .drag-handle {
    opacity: 0.8;
}

.audio-file-card .drag-handle span {
    display: block;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* Position badge */
.audio-file-card .position-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: rgba(196, 149, 106, 0.2);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #c4956a;
}

/* Title input - editable */
.audio-file-card .title-input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-primary, #e5e5e5);
    transition: all 0.15s;
}

.audio-file-card .title-input:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border, #1f1f1f);
}

.audio-file-card .title-input:focus {
    outline: none;
    background: var(--bg-dark, #0d0d0d);
    border-color: #c4956a;
}

/* Duration */
.audio-file-card .duration {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    white-space: nowrap;
}

/* Remove button */
.audio-file-card .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-muted, #4a4a4a);
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
}

.audio-file-card:hover .remove-btn {
    opacity: 1;
}

.audio-file-card .remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Summary bar */
.audio-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 6px;
}

.audio-summary-bar .summary-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-summary-bar .summary-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.audio-summary-bar .summary-stat .label {
    color: var(--text-secondary, #888);
}

.audio-summary-bar .summary-stat .value {
    font-family: var(--font-mono);
    color: var(--text-primary, #e5e5e5);
    font-weight: 500;
}

.audio-summary-bar .summary-actions {
    display: flex;
    gap: 0.5rem;
}

.audio-summary-bar .action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-dark, #0d0d0d);
    border: 1px solid var(--border, #1f1f1f);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.15s;
}

.audio-summary-bar .action-btn:hover {
    border-color: #444;
    color: var(--text-primary, #e5e5e5);
}

.audio-summary-bar .action-btn.primary {
    background: rgba(196, 149, 106, 0.15);
    border-color: rgba(196, 149, 106, 0.3);
    color: #c4956a;
}

.audio-summary-bar .action-btn.primary:hover {
    background: rgba(196, 149, 106, 0.25);
}

/* Warning in summary */
.audio-summary-bar .warning-text {
    font-size: 0.75rem;
    color: #eab308;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-file-grid {
        grid-template-columns: 1fr;
    }

    .audio-drop-compact {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .audio-summary-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .audio-summary-bar .summary-left {
        flex-wrap: wrap;
        justify-content: center;
    }
}
