@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
    --ui-bg: #07130f;
    --ui-bg-soft: #0b1d18;
    --ui-panel: rgba(12, 25, 21, 0.82);
    --ui-panel-strong: rgba(16, 31, 26, 0.94);
    --ui-panel-muted: rgba(255, 255, 255, 0.04);
    --ui-border: rgba(158, 255, 219, 0.12);
    --ui-border-strong: rgba(158, 255, 219, 0.22);
    --ui-text: #f4fbf8;
    --ui-text-muted: #9fb4ab;
    --ui-accent: #17c37b;
    --ui-accent-strong: #119d63;
    --ui-danger: #f87171;
    --ui-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif !important;
    color: var(--ui-text);
    background:
        radial-gradient(circle at top left, rgba(23, 195, 123, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, #06100d 0%, #091713 50%, #06110d 100%) !important;
}

h1, h2, h3, .logo-font, .logo-text, #page-title {
    font-family: 'Sora', sans-serif !important;
    letter-spacing: 0;
}

a, button, input, select, textarea {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

::selection {
    background: rgba(23, 195, 123, 0.28);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(158, 255, 219, 0.18);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(158, 255, 219, 0.28);
}

.glass,
.modern-card,
.stat-card,
.stats-card,
.login-card,
.media-item,
.bg-white\/5,
.admin-table,
.upload-progress-card,
.modal-content {
    background: var(--ui-panel) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(18px);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(8, 19, 16, 0.98) 0%, rgba(8, 16, 13, 0.96) 100%) !important;
    border-color: var(--ui-border) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar-header {
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(158, 255, 219, 0.18), transparent);
}

.sidebar-link {
    position: relative;
    border: 1px solid transparent;
    min-height: 52px;
    font-weight: 600;
    color: var(--ui-text-muted) !important;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(23, 195, 123, 0.16), rgba(23, 195, 123, 0.08)) !important;
    border-color: var(--ui-border-strong) !important;
    color: #ecfff6 !important;
    box-shadow: 0 14px 40px rgba(5, 20, 16, 0.3);
}

.sidebar-link i,
.sidebar-link svg {
    flex-shrink: 0;
}

.btn-primary,
.btn-login,
.admin-btn-desktop a,
.admin-btn-mobile,
button.bg-emerald-600,
a.bg-gradient-to-r {
    background: linear-gradient(135deg, var(--ui-accent), #27d19b) !important;
    color: #04120d !important;
    border: 0 !important;
    box-shadow: 0 18px 36px rgba(23, 195, 123, 0.25);
}

.btn-primary:hover,
.btn-login:hover,
.admin-btn-desktop a:hover,
.admin-btn-mobile:hover,
button.bg-emerald-600:hover,
a.bg-gradient-to-r:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #29d58d, #61e0b6) !important;
}

.btn-danger,
button.bg-red-600\/20,
button.bg-red-600,
.delete-selected-btn {
    border-color: rgba(248, 113, 113, 0.22) !important;
}

.admin-input,
.input-field,
.search-box,
input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    color: var(--ui-text) !important;
    min-height: 48px;
}

.admin-input:focus,
.input-field:focus,
.search-box:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(64, 230, 158, 0.75) !important;
    box-shadow: 0 0 0 4px rgba(23, 195, 123, 0.16) !important;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 24px;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #bed0c8 !important;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-table td {
    color: #edf7f2;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

.hero-gradient {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(12, 30, 24, 0.96), rgba(8, 15, 13, 0.85)),
        radial-gradient(circle at top left, rgba(23, 195, 123, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 30%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
}

.upload-area,
.admin-file-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(23, 195, 123, 0.04)) !important;
    border: 1.5px dashed rgba(158, 255, 219, 0.26) !important;
    border-radius: 22px !important;
}

.upload-area:hover,
.admin-file-input:hover {
    border-color: rgba(64, 230, 158, 0.7) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(23, 195, 123, 0.09)) !important;
}

.category-pill,
.filter-btn,
.selected-song-tag,
.songs-count,
.pagination button {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #dceae4 !important;
}

.category-pill:hover,
.category-pill.active,
.filter-btn:hover,
.filter-btn.active,
.pagination button.active {
    background: linear-gradient(135deg, rgba(23, 195, 123, 0.18), rgba(23, 195, 123, 0.1)) !important;
    border-color: rgba(64, 230, 158, 0.5) !important;
    color: #f5fffb !important;
}

.player-content,
#player {
    background: rgba(6, 17, 13, 0.92) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(158, 255, 219, 0.14);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.notification {
    background: linear-gradient(135deg, #15b877, #1fd08a) !important;
    color: #03120d !important;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
    color: #fff !important;
}

.lucide {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.1;
    vertical-align: middle;
}

.icon-chip {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(23, 195, 123, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(158, 255, 219, 0.16);
    color: #b7f7dd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-action-card,
.overview-card {
    position: relative;
    overflow: hidden;
}

.quick-action-card::after,
.overview-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -55% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(23, 195, 123, 0.2), transparent 65%);
    pointer-events: none;
}

@media (max-width: 1023px) {
    .sidebar {
        background: rgba(7, 18, 15, 0.96) !important;
        border-top: 1px solid rgba(158, 255, 219, 0.12) !important;
        box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.28);
    }

    .sidebar .sidebar-link {
        min-height: 60px;
        border-radius: 18px;
        margin: 0 0.15rem;
    }

    .page-container {
        padding-bottom: 128px !important;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 1rem !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 1.25rem) !important;
        border-radius: 24px !important;
        padding: 1.25rem !important;
    }

    .admin-table {
        min-width: 720px;
    }
}
