/**
 * Echo Music - Premium Dark Soundwave Theme
 * Custom styles on top of Tailwind CSS
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    --font-family-base: "Onest", "Segoe UI", Arial, sans-serif;
    --color-bg: #0a0a0a;
    --color-card: #121212;
    --color-card-hover: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-accent: #D10060;
    --color-accent-hover: #ff4d94;
    --color-accent-glow: rgba(209, 0, 96, 0.3);

    --color-purple: #D946EF;
    --color-purple-glow: rgba(217, 70, 239, 0.3);

    --color-pink: #F472B6;
    --color-pink-light: #FBCFE8;

    --color-text: #ffffff;
    --color-text-muted: #a1a1aa;
    --color-text-dim: #71717a;

    --color-success: #34D399;
    --color-warning: #FBBF24;
    --color-error: #F87171;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   Base Styles
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Scrollbar
============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

/* ============================================
   Layout
============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-right: 1px solid var(--color-border);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.sidebar-hidden {
    transform: translateX(-100%);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 72px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.page-content {
    flex: 1;
    padding: 32px;
}

/* ============================================
   Glassmorphism Card
============================================ */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* .card::before removed */

.card-glass {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.card-static:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   Sidebar Navigation
============================================ */
.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(209, 0, 96, 0.15), rgba(217, 70, 239, 0.15));
    color: var(--color-accent);
    border: 1px solid rgba(209, 0, 96, 0.2);
}

.nav-item.active i {
    color: var(--color-accent);
}

.nav-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================
   Sidebar Footer
============================================ */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: visible;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--color-text-dim);
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #9b0048);
    color: var(--color-bg);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--color-accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-border-hover);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

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

/* ============================================
   Form Elements
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-input::placeholder {
    color: var(--color-text-dim);
}

/* Echo Icons replaces <i> with <svg> after load. Match both states so a leading
   icon never overlaps the input text when the base .form-input padding wins. */
.relative:has(> :is(i, svg).absolute.left-4) > input.form-input {
    padding-left: 3rem;
}

.relative:has(> :is(i, svg):is([data-lucide="search"], [data-echo-icon="search"], .lucide-search).absolute.left-4) > input.form-input:not(:placeholder-shown) {
    padding-left: 1rem;
}

.relative:has(> input.form-input:not(:placeholder-shown)) > :is(i, svg):is([data-lucide="search"], [data-echo-icon="search"], .lucide-search).absolute.left-4 {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.85);
}

.relative > :is(i, svg).absolute.left-4 {
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* A full-width .form-input must not override the intended two-column
   performer row.  Keep the name field flexible and the role control fixed. */
.performer-row > input.form-input {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
}

.performer-row > select.form-input {
    width: 10rem;
    min-width: 10rem;
    flex: 0 0 10rem;
}

@media (max-width: 640px) {
    .performer-row {
        flex-wrap: wrap;
    }

    .performer-row > input.form-input {
        flex-basis: 100%;
    }
}

.form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 47%, #71717a 48% 58%, transparent 59%), linear-gradient(-45deg, transparent 47%, #71717a 48% 58%, transparent 59%);
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 8px 8px;
    padding-right: 44px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--color-error);
    font-size: 12px;
    margin-top: 6px;
}

/* ============================================
   Metric Cards
============================================ */
.metric-card {
    position: relative;
    overflow: hidden;
}

/* .metric-card::before removed */

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.metric-icon.blue {
    background: rgba(209, 0, 96, 0.15);
    color: var(--color-accent);
}

.metric-icon.purple {
    background: rgba(217, 70, 239, 0.15);
    color: var(--color-purple);
}

.metric-icon.green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--color-success);
}

.metric-icon.yellow {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.metric-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.metric-change.positive {
    color: var(--color-success);
}

.metric-change.negative {
    color: var(--color-error);
}

/* ============================================
   Status Badges
============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gray {
    background: rgba(161, 161, 170, 0.15);
    color: var(--color-text-muted);
}

.badge-blue {
    background: rgba(209, 0, 96, 0.15);
    color: var(--color-accent);
}

.badge-purple {
    background: rgba(217, 70, 239, 0.15);
    color: var(--color-purple);
}

.badge-green {
    background: rgba(52, 211, 153, 0.15);
    color: var(--color-success);
}

.badge-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
}

.badge-red {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-error);
}

/* ============================================
   Tables
============================================ */
.table-container {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-dim);
    background: rgba(255, 255, 255, 0.02);
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Charts
============================================ */
.chart-container {
    position: relative;
    height: 300px;
}

/* ============================================
   Upload Zone
============================================ */
.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(209, 0, 96, 0.05);
}

.upload-zone.has-file {
    border-color: var(--color-success);
    background: rgba(52, 211, 153, 0.05);
}

.upload-zone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--color-text-dim);
}

.upload-zone-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.upload-zone-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   Release Card
============================================ */
.release-card {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.release-cover {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-card);
    flex-shrink: 0;
}

.release-info {
    flex: 1;
    min-width: 0;
}

.release-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-artist {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-dim);
}

.release-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    line-height: 1.4;
}

.release-meta-item > .app-icon,
.release-meta-item > svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    color: var(--color-text-dim);
    vertical-align: 0;
}

.release-meta-item--upc span {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.release-card__view-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.release-card__view-action .app-icon,
.release-card__view-action svg {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: 0;
    transition: transform 180ms ease;
}

.release-card__view-action:hover {
    border-color: color-mix(in srgb, var(--color-accent) 42%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 6%, transparent);
    color: var(--color-accent);
    text-decoration: none;
}

.release-card__view-action:hover .app-icon,
.release-card__view-action:hover svg { transform: translateX(2px); }

.release-card__view-action:active { transform: scale(0.99); }

.release-card__view-action:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   Notifications
============================================ */
.notification-dot {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(209, 0, 96, 0.05);
}

/* Вторичные действия в формах релиза: заметны, но не конкурируют с основным CTA. */
.release-performer-add-button,
.release-add-row-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-top: 10px;
    padding: 0 12px;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border-hover);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.release-performer-add-button > :is(.app-icon, svg, i) {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

.release-performer-add-button:hover,
.release-add-row-button:hover {
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-card));
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}

.release-performer-add-button:focus-visible,
.release-add-row-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Боковая панель уведомлений: использует те же переменные, что и обе темы. */
#notificationsOverlay.notifications-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, 0.42);
}

#notificationsPanel.notifications-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9991;
    display: none;
    flex-direction: column;
    width: min(400px, 100vw);
    height: 100dvh;
    overflow: hidden;
    color: var(--color-text);
    background: var(--color-card);
    border-left: 1px solid var(--color-border);
    box-shadow: -16px 0 42px rgba(0, 0, 0, 0.22);
}

#notificationsPanel .notifications-panel__header,
#notificationsPanel .notifications-panel__footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 16px 20px;
    border-color: var(--color-border);
}

#notificationsPanel .notifications-panel__header {
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

#notificationsPanel .notifications-panel__footer {
    justify-content: center;
    border-top: 1px solid var(--color-border);
}

#notificationsPanel .notifications-panel__title {
    margin: 0;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

#notificationsPanel .notification-panel__close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: var(--color-text-muted);
    background: var(--color-card-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

#notificationsPanel .notification-panel__close:hover {
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-card));
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}

#notificationsPanel .notification-panel__close .app-icon { display: block; }
#notificationsPanel .notifications-list { padding: 8px; }

#notificationsPanel .notification-item {
    gap: 12px;
    padding: 14px 12px;
    color: var(--color-text);
}

#notificationsPanel .notification-item:hover { background: var(--color-card-hover); }
#notificationsPanel .notification-item.unread { background: color-mix(in srgb, var(--color-accent) 3%, var(--color-card)); }
#notificationsPanel .notification-item.unread::before { box-shadow: 0 0 0 2px var(--color-card); }

/* Notifications use the same restrained line-icon language as the workspace.
   The unread dot is sufficient status feedback; coloured tiles made the panel
   look like a separate product. */
#notificationsPanel .notification-icon,
#notificationsPanel .notification-icon.success,
#notificationsPanel .notification-icon.warning,
#notificationsPanel .notification-icon.error,
#notificationsPanel .notification-icon.info {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    background: transparent;
    border-radius: 0;
    color: var(--color-accent);
}

#notificationsPanel .notification-icon :is(svg, .app-icon, .echo-icon) {
    display: block;
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

#notificationsPanel .notification-title {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

#notificationsPanel .notification-body {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.4;
}

#notificationsPanel .notification-time { color: var(--color-text-dim); }
#notificationsPanel .notifications-panel__footer a { color: var(--color-accent); font-size: 14px; text-decoration: none; }
#notificationsPanel .notifications-panel__footer a:hover { text-decoration: underline; }
#notificationsPanel .notifications-panel__loading { padding: 32px 0; color: var(--color-text-dim); text-align: center; }
#notificationsPanel .notifications-panel__spinner { width: 24px; height: 24px; margin: 0 auto 8px; border: 3px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 1s linear infinite; }

/* The notification trigger uses a self-contained SVG so it stays visible even
   when optional icon scripts have not loaded yet. */
#notificationsBellBtn > svg.app-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: none !important;
    color: var(--color-accent) !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#notificationsBellBtn > svg.app-icon path {
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Pagination arrows are drawn in CSS: they remain visible even if an external
   SVG replacement script is unavailable on a particular page. */
.notification-pagination-control {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--color-text) !important;
}

.notification-pagination-control::after {
    content: '';
    position: absolute;
    inset: 0;
    display: block !important;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 0;
    background-color: currentColor;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-pagination-control--prev::after {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notification-pagination-control--next::after {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================
   Dropdown
============================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 50;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.dropdown-item.danger {
    color: var(--color-error);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

/* ============================================
   Tabs
============================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--color-text);
}

.tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ============================================
   Loading States
============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--color-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--color-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

/* ============================================
   Animations
============================================ */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Alert Messages
============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(209, 0, 96, 0.1);
    border: 1px solid rgba(209, 0, 96, 0.2);
    color: var(--color-accent);
}

/* ============================================
   Empty State
============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--color-text-dim);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ============================================
   Modal
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   Auth Page Specific
============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top, rgba(209, 0, 96, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(217, 70, 239, 0.1) 0%, transparent 50%),
        var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 48px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--color-text-dim);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-muted);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

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

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--color-border-hover);
        color: var(--color-text);
    }

    .mobile-menu-btn svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }

    .topbar {
        padding: 0 16px;
    }

    .card {
        padding: 16px;
    }

    .metric-value {
        font-size: 24px;
    }

    .release-card {
        flex-direction: column;
    }

    .release-cover {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   Utilities
============================================ */
.mobile-menu-btn {
    display: none;
}

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-dim { color: var(--color-text-dim); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

.bg-accent { background-color: var(--color-accent); }
.bg-card { background-color: var(--color-card); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   Enhanced Animations
============================================ */

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-card) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        var(--color-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--color-accent-glow); }
    50% { box-shadow: 0 0 40px var(--color-accent-glow), 0 0 60px var(--color-purple-glow); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Float animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text-animated {
    background: linear-gradient(135deg, var(--color-accent), var(--color-purple), var(--color-pink), var(--color-accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism enhancement */
.glass {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon border effect */
@keyframes neon-border {
    0%, 100% { border-color: rgba(209, 0, 96, 0.5); }
    50% { border-color: rgba(217, 70, 239, 0.8); }
}

.neon-border {
    border: 1px solid rgba(209, 0, 96, 0.5);
    animation: neon-border 2s ease-in-out infinite;
}

/* Floating animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Particle background (for auth pages) */
.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========== Fix: visible action icons in release cards ========== */
.release-card .btn-ghost.btn-icon {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
}
.release-card .btn-ghost.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.release-card .btn-ghost.btn-icon svg {
    color: inherit;
    stroke: currentColor;
}

/* ============================================
   ACTION BUTTONS FIX - visible on dark cards
============================================ */
.release-card .flex.flex-col.gap-2.ml-auto {
    min-width: 90px;
    align-items: flex-end;
}
.release-card .btn-ghost.btn-icon {
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    opacity: 1;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.15s ease;
}
.release-card .btn-ghost.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}
.release-card .btn-ghost.btn-icon svg {
    color: inherit;
    stroke: currentColor;
    width: 20px;
    height: 20px;
}
