body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-dark, #0c0c0c);
    color: var(--text-primary, #f0f0f0);
    min-height: 100vh;
}
.app-container {
    display: flex;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width, 200px);
    padding: 30px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}
.page-header p {
    margin: 8px 0 0;
    color: var(--text-secondary, #a0a0a0);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-create {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #60a5fa;
    /* WCAG AA: dark text #0f172a on #60a5fa = 6.85:1 contrast (was white #f0f0f0 = 2.23:1, FAIL) */
    color: #0f172a;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-create:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-create svg {
    flex-shrink: 0;
}
.view-toggle {
    display: flex;
    gap: 8px;
}
.view-toggle a {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.view-toggle a.active {
    background: #60a5fa;
    /* WCAG AA: dark #0f172a on #60a5fa = 6.85:1 contrast (was white = 2.23:1, FAIL AA) */
    color: #0f172a;
    font-weight: 600;
}
.view-toggle a:not(.active) {
    background: transparent;
    border: 1px solid var(--border-tint-soft);
    color: var(--text-secondary, #a0a0a0);
}
.view-toggle a:not(.active):hover {
    border-color: #60a5fa;
    color: var(--text-primary, #f0f0f0);
}
.access-denied {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.access-denied h2 {
    color: #ef4444;
    margin-bottom: 12px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-tint-medium);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-tint-strong);
    cursor: pointer;
    transition: all 0.2s;
}
.stat-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
}
.stat-card.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
}
.stat-card.pending .stat-value { color: #f59e0b; }
.stat-card.approved .stat-value { color: #10b981; }
.stat-card.live .stat-value { color: #8b5cf6; }
.stat-card.on_hold .stat-value { color: #9ca3af; }

/* Queue Table */
.queue-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-tint-soft);
    border-radius: 12px;
    overflow: hidden;
}
.queue-table th,
.queue-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-tint-medium);
}
.queue-table th {
    background: var(--bg-tint-medium);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #a0a0a0);
    font-weight: 600;
}
.queue-table tr:hover {
    background: var(--bg-tint-medium);
}
.queue-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-badge.approved { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-badge.live { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.status-badge.on_hold { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.status-badge.needs_review {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    cursor: help;
}

/* Price Input */
.price-input {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-input input {
    width: 80px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-tint-soft);
    background: var(--bg-tint-strong);
    color: var(--text-primary, #f0f0f0);
    font-size: 14px;
}
.price-input input:focus {
    outline: none;
    border-color: #8b5cf6;
}
.price-display {
    color: #10b981;
    font-weight: 500;
}
.price-arrow {
    color: var(--text-secondary, #a0a0a0);
}

/* Action Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: #8b5cf6;
    color: var(--text-primary, #f0f0f0);
}
.btn-primary:hover {
    background: #7c3aed;
}
.btn-success {
    background: #10b981;
    color: var(--text-primary, #f0f0f0);
}
.btn-success:hover {
    background: #059669;
}
.btn-danger {
    background: #ef4444;
    color: var(--text-primary, #f0f0f0);
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-tint-soft);
    color: var(--text-secondary, #a0a0a0);
}
.btn-outline:hover {
    border-color: #8b5cf6;
    color: var(--text-primary, #f0f0f0);
}
.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action Cell */
.action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Play Button */
.btn-play {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.btn-play:hover {
    background: rgba(139, 92, 246, 0.3);
}
.btn-play.playing {
    background: #8b5cf6;
    color: var(--text-primary, #f0f0f0);
}
.btn-play svg {
    width: 14px;
    height: 14px;
}

/* View Button */
.btn-view {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}
.btn-view:hover {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-primary, #f0f0f0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #a0a0a0);
}
.empty-state h3 {
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 8px;
}

/* Loading */
.loading-state {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary, #a0a0a0);
}

/* SKU Link */
.sku-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}
.sku-link:hover {
    text-decoration: underline;
}

/* Cover Thumbnail */
.cover-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-tint-strong);
}

/* Artist/Title Cell */
.release-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.release-title {
    font-weight: 500;
    color: var(--text-primary, #f0f0f0);
}
.release-artist {
    font-size: 13px;
    color: var(--text-secondary, #a0a0a0);
}
.release-label {
    font-size: 12px;
    color: var(--text-muted, #8a8a8a);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: var(--text-primary, #f0f0f0);
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
