/* c:\xampp\htdocs\tune-dist\assets\css\style.css */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    /* Typography */
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Segoe UI', sans-serif;

    /* Core Palette */
    --color-slate-950: #0f0f0f;
    --color-slate-900: #0a0a0a;
    --color-slate-800: #141414;
    --color-slate-700: #1a1a1a;
    --color-stroke: #262626;

    --color-teal-400: #a30000;
    --color-teal-500: #8b0000;
    --color-teal-600: #a30000;
    --color-blue-500: #660000;
    --color-blue-400: #d85858;
    --color-amber-500: #f59e0b;
    --color-emerald-500: #22c55e;
    --color-red-500: #ef4444;

    --color-text-main: #ffffff;
    --color-text-soft: #a1a1a1;
    --color-text-muted: #737373;

    /* Semantic Tokens */
    --bg-main: var(--color-slate-950);
    --surface-1: var(--color-slate-900);
    --surface-2: var(--color-slate-800);
    --surface-3: var(--color-slate-700);
    --border-color: var(--color-stroke);

    --primary: var(--color-teal-500);
    --primary-hover: var(--color-teal-600);
    --secondary: var(--color-blue-500);
    --accent: var(--primary);
    --success: var(--color-emerald-500);
    --danger: var(--color-red-500);
    --warning: var(--color-amber-500);

    --focus-ring: rgba(139, 0, 0, 0.35);

    --shadow-sm: 0 2px 8px rgba(4, 8, 16, 0.24);
    --shadow-md: 0 10px 28px rgba(5, 10, 20, 0.34);
    --shadow-lg: 0 18px 42px rgba(4, 8, 16, 0.44);
    --shadow-glow: 0 0 0 1px rgba(139, 0, 0, 0.26), 0 12px 30px rgba(139, 0, 0, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    /* Type Scale */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 0.95rem;
    --fs-md: 1rem;
    --fs-lg: 1.1rem;
    --fs-xl: 1.3rem;
    --fs-display: clamp(1.55rem, 2.1vw, 2.2rem);
    --lh-tight: 1.25;
    --lh-base: 1.6;

    /* Layout */
    --layout-max-width: 1240px;
    --layout-gutter: clamp(1rem, 2.2vw, 2rem);

    --sidebar-width: 272px;

    /* Compatibility Aliases */
    --bg-primary: var(--bg-main);
    --bg-secondary: var(--surface-1);
    --bg-sidebar: var(--surface-1);
    --bg-sidebar-gradient: linear-gradient(180deg, #1a0000 0%, #0f0000 100%);
    --bg-card: var(--surface-2);
    --bg-card-hover: var(--surface-3);
    --bg-input: #0a0a0a;

    --text-primary: var(--color-text-main);
    --text-secondary: var(--color-text-soft);
    --text-muted: var(--color-text-muted);
    --text-main: var(--color-text-main);

    --card-bg: var(--surface-2);
    --accent-hover: var(--primary-hover);
    --accent-glow: rgba(139, 0, 0, 0.4);
    --accent-subtle: rgba(139, 0, 0, 0.1);
    --shadow-accent: rgba(139, 0, 0, 0.28);
    --border-highlight: var(--primary);

    --bs-body-bg: var(--bg-main);
    --bs-body-color: var(--text-main);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 139, 0, 0;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text-main);
    overflow-x: hidden;
    background:
        radial-gradient(1200px 760px at 8% -15%, rgba(139, 0, 0, 0.2), transparent 55%),
        radial-gradient(900px 640px at 110% 8%, rgba(163, 0, 0, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg-main) 0%, #0f0f0f 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    color: var(--text-main);
}

/* Media: force cover images to square */
img.track-img,
img.cover-img,
img.cover-big,
img.cover,
img.release-cover,
img.track-cover,
img.cover-preview-img,
.track-img-container img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

h1 {
    font-size: clamp(1.95rem, 3vw, 2.35rem);
}

h2 {
    font-size: clamp(1.65rem, 2.4vw, 1.95rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1.02rem;
}

h6 {
    font-size: 0.9rem;
}

p {
    font-size: var(--fs-base);
    color: var(--text-secondary);
}

small,
.small,
.text-xs {
    font-size: var(--fs-xs);
}

a {
    color: var(--color-blue-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

:where(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Utility Overrides */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-main) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.bg-light {
    background-color: var(--bg-main) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--border-color) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.5);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(163, 0, 0, 0.75);
}

/* Landing Navbar */
.navbar-landing {
    background: rgba(10, 10, 10, 0.74) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-landing.scrolled {
    background: rgba(10, 10, 10, 0.96) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.navbar-landing .navbar-brand .text-dark {
    color: var(--text-main) !important;
}

.navbar-landing .nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

.navbar-landing .nav-link:hover,
.navbar-landing .nav-link.active {
    color: var(--text-main) !important;
}

.navbar-landing .navbar-toggler {
    border-color: rgba(184, 197, 221, 0.35);
}

/* Sidebar */
.sidebar-fixed,
.sidebar,
.sidebar-light {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: #effbff;
    border: 1px solid rgba(255, 148, 148, 0.26);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-header {
    padding: var(--space-5);
    border-bottom: 1px solid rgba(184, 197, 221, 0.12);
}

.sidebar-fixed nav,
.sidebar nav,
.sidebar-light nav {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-fixed nav::-webkit-scrollbar,
.sidebar nav::-webkit-scrollbar,
.sidebar-light nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-fixed nav::-webkit-scrollbar-thumb,
.sidebar nav::-webkit-scrollbar-thumb,
.sidebar-light nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-menu-label {
    font-size: var(--fs-xs) !important;
    letter-spacing: 0.05em;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    font-size: var(--fs-sm);
}

.sidebar-user-name {
    max-width: 120px;
    font-size: var(--fs-sm);
}

.sidebar-user-role {
    max-width: 120px;
    font-size: var(--fs-xs);
}

.sidebar-brand-icon {
    color: var(--accent);
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.78rem 1.35rem;
    margin: 0 10px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link-custom i {
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--text-main);
    border-color: rgba(139, 0, 0, 0.28);
    background: rgba(139, 0, 0, 0.12);
    transform: translateX(2px);
}

.nav-link-custom:hover i {
    color: var(--primary);
}

.nav-link-custom.active {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.26), rgba(163, 0, 0, 0.08));
    border-color: rgba(139, 0, 0, 0.36);
}

.nav-link-custom.active i {
    color: var(--primary);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open .sidebar-fixed {
    transform: translateX(0);
}

/* Main Layout */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: var(--layout-gutter);
    min-height: 100vh;
}

.main-content> :where(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .view-container) {
    max-width: var(--layout-max-width);
    margin-inline: auto;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    --bs-gutter-x: clamp(1rem, 2vw, 1.75rem);
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: var(--layout-max-width);
    }
}

/* Cards */
.card,
.card-custom {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(14, 14, 14, 0.92));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card-custom:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 0, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    min-height: 132px;
}

.stats-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.stats-value {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: 700;
    color: var(--text-main);
}

.stats-icon-box {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(139, 0, 0, 0.12);
    border: 1px solid rgba(139, 0, 0, 0.28);
}

/* Tables */
.table-responsive {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table,
.table-custom {
    margin-bottom: 0;
    color: var(--text-main);
    border-color: var(--border-color);
}

.table thead th,
.table-custom th {
    background: rgba(12, 12, 12, 0.94) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.table tbody td,
.table-custom td {
    background: rgba(20, 20, 20, 0.9);
    border-color: var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.table tbody tr:hover td,
.table-custom tbody tr:hover td {
    background: rgba(30, 18, 18, 0.92);
}

/* Forms */
.form-label {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.form-control,
.form-select,
.form-control-dark {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
    color: var(--text-main) !important;
    font-size: var(--fs-sm);
    padding: 0.72rem 0.95rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus,
.form-control-dark:focus {
    background: #0f1b2f !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

/* File Inputs */
.form-control[type="file"],
.file-input-custom {
    padding: 0.38rem 0.45rem;
    color: var(--text-secondary) !important;
    line-height: 1.45;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(14, 14, 14, 0.95)) !important;
    border: 1px dashed rgba(139, 0, 0, 0.4) !important;
}

.form-control[type="file"]::file-selector-button,
.file-input-custom::file-selector-button {
    margin-right: 0.78rem;
    border: 1px solid rgba(139, 0, 0, 0.46);
    border-radius: var(--radius-sm);
    padding: 0.48rem 0.84rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffe7e7;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(102, 0, 0, 0.95));
    box-shadow: 0 6px 14px rgba(139, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.form-control[type="file"]:hover,
.file-input-custom:hover {
    border-color: rgba(139, 0, 0, 0.62) !important;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(16, 16, 16, 0.96)) !important;
}

.form-control[type="file"]:hover::file-selector-button,
.file-input-custom:hover::file-selector-button {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.form-control[type="file"]:focus,
.file-input-custom:focus {
    background: rgba(18, 18, 18, 0.96) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

.form-control[type="file"]:disabled,
.file-input-custom:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.btn-primary-custom,
.btn-music {
    color: #f8fbff !important;
    border: 1px solid rgba(139, 0, 0, 0.28) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 10px 24px rgba(139, 0, 0, 0.24);
}

.btn-primary:hover,
.btn-primary-custom:hover,
.btn-music:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #660000 100%) !important;
    box-shadow: var(--shadow-glow);
}

.btn-outline-custom,
.btn-outline-secondary {
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--border-color) !important;
}

.btn-outline-custom:hover,
.btn-outline-secondary:hover {
    color: var(--text-main) !important;
    border-color: var(--primary) !important;
    background: rgba(139, 0, 0, 0.12) !important;
}

.btn-success-music {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #f7fff9 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fecaca !important;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.24) !important;
    color: #ffe4e6 !important;
}

.hover-danger:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fecaca !important;
}

/* Badges + Alerts */
.badge-custom {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.35rem 0.68rem;
}

.badge-success,
.badge.bg-success {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #bbf7d0 !important;
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.badge-warning,
.badge.bg-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.badge-danger,
.badge.bg-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.34);
}

.badge-secondary,
.badge.bg-secondary {
    background: rgba(148, 163, 184, 0.22) !important;
    color: #dbeafe !important;
    border: 1px solid rgba(148, 163, 184, 0.34);
}

.alert {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    background: rgba(18, 18, 18, 0.9);
}

.alert-success {
    border-left: 4px solid var(--success);
}

.alert-danger {
    border-left: 4px solid var(--danger);
}

.alert-warning {
    border-left: 4px solid var(--warning);
}

/* Modals + Dropdowns */
.modal-content {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.96) 100%) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--border-color) !important;
}

.dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #131313;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    color: var(--text-main);
    font-size: var(--fs-sm);
}

.dropdown-item:hover {
    color: var(--text-main);
    background: rgba(139, 0, 0, 0.14);
}

.btn-close {
    filter: invert(1) opacity(0.85);
}

/* Auth */
.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background:
        radial-gradient(900px 620px at 10% 10%, rgba(139, 0, 0, 0.18), transparent 55%),
        radial-gradient(900px 640px at 90% 0%, rgba(163, 0, 0, 0.12), transparent 60%),
        var(--bg-main);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

/* Dashboard Components */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 0.95rem 1.1rem;
    margin-bottom: var(--space-5);
    background: rgba(12, 12, 12, 0.86);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.title-control,
.head-control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.counter-row {
    margin-bottom: var(--space-5);
}

.counter-row>div {
    display: flex;
}

.music-stats-card {
    position: relative;
    width: 100%;
    min-height: 158px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: hidden;
    background: transparent;
    color: #effbff;
    border: 1px solid rgba(255, 148, 148, 0.26);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(180px 120px at 100% 0%, rgba(255, 255, 255, 0.17), transparent 72%);
    pointer-events: none;
}

.music-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.music-stats-card.variant-primary {
    background: transparent;
}

.music-stats-card.variant-success {
    background: transparent;
    border-color: rgba(110, 231, 183, 0.26);
}

.music-stats-card.variant-warning {
    background: transparent;
    border-color: rgba(253, 186, 116, 0.28);
}

.music-stats-card.variant-danger {
    background: transparent;
    border-color: rgba(252, 165, 165, 0.28);
}

.music-stats-card.variant-plum {
    background: transparent;
    border-color: rgba(216, 180, 254, 0.26);
}

.music-stats-card .card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 1.05rem !important;
}

.music-stats-card .counter {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.music-stats-card .counting {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.music-stats-card .counter span {
    font-size: var(--fs-sm);
    letter-spacing: 0.01em;
    color: rgba(245, 250, 255, 0.92);
}

.music-stats-card p {
    margin: 0;
    font-size: var(--fs-xs);
    color: rgba(231, 240, 252, 0.82);
}

.music-stats-card .counting,
.music-stats-card h2,
.music-stats-card span {
    color: #effbff;
}

.chart-container {
    height: 100%;
    padding: var(--space-5);
    background: rgba(16, 16, 16, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: var(--space-4);
}

.box-title .title {
    margin: 0;
    color: var(--text-main);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-select {
    width: auto !important;
    min-width: 145px;
}

.chart-canvas-wrap {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-canvas-wrap-lg {
    position: relative;
    height: 350px;
    width: 100%;
}

.chart-canvas-wrap canvas,
.chart-canvas-wrap-lg canvas {
    width: 100% !important;
    height: 100% !important;
}

.empty-state-orb {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.12);
    border: 1px solid rgba(139, 0, 0, 0.28);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.track-list-item {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.track-list-item:last-child {
    border-bottom: 0;
}

.track-list-item:hover {
    background: rgba(139, 0, 0, 0.08);
}

.artist-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--avatar-color, linear-gradient(135deg, #8b0000, #660000));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.track-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid var(--border-color);
}
/*
.status-approved {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
}

.status-pending {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-rejected {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.3);
}

.status-removed {
    color: #d1d5db;
    background: rgba(107, 114, 128, 0.18);
    border-color: rgba(107, 114, 128, 0.32);
}
*/
.distribution-platform {
    border-left: 3px solid var(--primary);
    padding: 0.95rem 1rem;
    margin-bottom: 0.85rem;
    background: rgba(139, 0, 0, 0.08);
    border-radius: var(--radius-md);
}

.distribution-platform:last-child {
    margin-bottom: 0;
}

.distribution-platform h5 {
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.upload-card {
    border-left: 3px solid var(--success);
    padding: 0.9rem 1rem;
    margin-bottom: 0.8rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: var(--radius-md);
}

.upload-card:last-child {
    margin-bottom: 0;
}

.royalty-card {
    padding: 1rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.9));
    color: #fff8eb;
    border-radius: var(--radius-md);
}

.royalty-card:last-child {
    margin-bottom: 0;
}

.royalty-card.royalty-card-alt {
    background: linear-gradient(135deg, rgba(99, 38, 119, 0.95), rgba(74, 29, 89, 0.92));
    color: #f5ecff;
}

.music-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.62rem;
    font-size: 0.68rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #f8fbff;
    border-radius: 999px;
    font-weight: 700;
}

.music-badge.music-badge-active {
    background: linear-gradient(135deg, #1f9d5b, #177244);
}

.waveform-preview {
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.9), rgba(102, 0, 0, 0.9));
    position: relative;
    overflow: hidden;
}

.waveform-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.28) 2px, rgba(255, 255, 255, 0.28) 4px);
}

.waveform-preview.waveform-preview-sm {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.bg-purple-light {
    background: rgba(139, 0, 0, 0.14);
    border-color: rgba(139, 0, 0, 0.34);
}

.bg-green-light {
    color: #9ae6b4;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
}

.bg-amber-light {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.34);
}

.notif-badge {
    font-size: 0.62rem !important;
}

.dropdown-menu-dashboard {
    min-width: 300px;
}

.page-title {
    margin: 0;
    color: var(--text-main);
}

.page-title-sm {
    display: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .main-content {
        padding: clamp(1rem, 2vw, 1.5rem);
    }
}

@media (max-width: 991.98px) {

    .sidebar-fixed,
    .sidebar,
    .sidebar-light {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: var(--space-4);
    }

    .page-title {
        display: none;
    }

    .page-title-sm {
        display: block;
        margin-bottom: var(--space-5);
    }

    .header {
        padding: 0.8rem 0.9rem;
    }

    .box-title {
        flex-wrap: wrap;
    }

    .music-stats-card {
        min-height: 150px;
    }

    .chart-canvas-wrap {
        height: 220px;
    }

    .chart-canvas-wrap-lg {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .card,
    .card-custom {
        border-radius: var(--radius-md);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Big Level Upload UI --- */
.upload-step-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.upload-step-card:hover {
    border-color: rgba(139, 0, 0, 0.3);
}
.upload-step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-main);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-display);
}
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.01);
    cursor: pointer;
    position: relative;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 0, 0, 0.04);
    transform: scale(1.005);
}
.drop-zone i {
    color: var(--text-muted);
    transition: color 0.2s;
}
.drop-zone:hover i {
    color: var(--primary);
}
.track-row-item {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
}
.track-row-item:hover {
    border-color: rgba(255,255,255,0.1);
}
.track-row-item:focus-within {
    border-color: var(--primary);
}
.track-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}
