/* ==========================================================================
   SonaRoom Signature Design System (Midnight Glassmorphism)
   Atmospheric, consistent, artistic, and resilient dark styling
   ========================================================================== */

:root {
    --theme-bg-start: #0a0b14;
    --theme-bg-end: #141528;
    --theme-bg-surface: #121422;
    --theme-bg-glass: rgba(18, 20, 36, 0.72);
    --theme-card-bg: rgba(20, 22, 38, 0.65);
    --theme-card-border: rgba(255, 255, 255, 0.09);
    
    --theme-accent-purple: #8b5cf6;
    --theme-accent-emerald: #10b981;
    --theme-accent-amber: #fbbf24;
    --theme-accent-rose: #f43f5e;
    --theme-accent-blue: #38bdf8;

    --theme-text: #f8fafc;
    --theme-text-muted: #94a3b8;
    --theme-star-amber: #fbbf24;

    --theme-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --theme-shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.15);
    --theme-glow-purple: 0 0 20px rgba(139, 92, 246, 0.35);
    --theme-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* Base Canvas & Typography */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background: radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
                linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-end) 100%) !important;
    background-attachment: fixed !important;
    color: var(--theme-text) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    min-height: 100vh;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .card-title, .modal-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10, 11, 20, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.55rem;
    color: var(--theme-accent-emerald) !important;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease !important;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
    }
}

.nav-link:hover, .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--theme-accent-emerald) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    background: rgba(15, 17, 30, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
    padding: 0.5rem !important;
    min-width: 220px;
}

.dropdown-item {
    color: #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0.4rem 0 !important;
}

/* ==========================================================================
   Cards (Glassmorphism & Micro-animations)
   ========================================================================== */
.card {
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: var(--theme-shadow-card) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    color: var(--theme-text) !important;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.32) !important;
    box-shadow: var(--theme-shadow-card-hover) !important;
    transform: translateY(-4px);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   Form Controls, Inputs, and Selects
   ========================================================================== */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem;
    transition: all 0.25s ease !important;
    backdrop-filter: blur(8px);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--theme-accent-purple) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22) !important;
    color: #ffffff !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.form-select option {
    background-color: #141528 !important;
    color: #f8fafc !important;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--theme-accent-emerald);
    border-color: var(--theme-accent-emerald);
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn {
    border-radius: 50rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0.55rem 1.35rem !important;
}

.btn-sm {
    padding: 0.35rem 0.95rem !important;
    font-size: 0.85rem !important;
}

.btn-lg {
    padding: 0.75rem 1.85rem !important;
    font-size: 1.05rem !important;
}

/* 1. Onay / Başarı Butonları: Yeşil Arkaplan & Hover'da Renk Değişimi */
.btn-success,
.btn-approve,
button[title="Onayla"],
a[title="Onayla"] {
    background: #10b981 !important;
    background-color: #10b981 !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}
.btn-success *,
.btn-approve *,
button[title="Onayla"] *,
a[title="Onayla"] * {
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-approve:hover,
button[title="Onayla"]:hover,
a[title="Onayla"]:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #10b981 !important;
    color: #059669 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
.btn-success:hover *,
.btn-success:focus *,
.btn-approve:hover *,
button[title="Onayla"]:hover *,
a[title="Onayla"]:hover * {
    color: #059669 !important;
}

/* Primary (Varsayılan Kaydet / Gönder) Butonları */
.btn-primary, button[type="submit"]:not(.btn-outline-secondary):not(.btn-warning):not(.btn-danger):not(.btn-secondary):not(.btn-link):not(.btn-light):not(.btn-dark):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-success) {
    background: #0284c7 !important;
    background-color: #0284c7 !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}
.btn-primary:hover, button[type="submit"]:not(.btn-outline-secondary):not(.btn-warning):not(.btn-danger):not(.btn-secondary):not(.btn-link):not(.btn-light):not(.btn-dark):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-success):hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}
.btn-primary:hover *, button[type="submit"]:not(.btn-outline-secondary):not(.btn-warning):not(.btn-danger):not(.btn-secondary):not(.btn-link):not(.btn-light):not(.btn-dark):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-success):hover * {
    color: #0284c7 !important;
}

/* 2. Sarı Background Butonlar (ve Düzenleme Butonları): Koyu Renkli Font, Hover'da Mürdüm Font & Renk Değişimi */
.btn-warning,
.btn-edit,
[data-action="edit"],
a[title*="Düzenle"]:not(.btn-danger):not(.btn-success),
button[title*="Düzenle"]:not(.btn-danger):not(.btn-success) {
    background: #fbbf24 !important;
    background-color: #fbbf24 !important;
    border: 1px solid #fbbf24 !important;
    color: #111827 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3) !important;
}
.btn-warning *,
.btn-edit *,
a[title*="Düzenle"]:not(.btn-danger):not(.btn-success) *,
button[title*="Düzenle"]:not(.btn-danger):not(.btn-success) * {
    color: #111827 !important;
}

/* Sarı Butonlar Hover: Background ile Font yer değiştirir, Font Mürdüm (#701a75) olur */
.btn-warning:hover,
.btn-warning:focus,
.btn-edit:hover,
.btn-edit:focus,
a[title*="Düzenle"]:not(.btn-danger):not(.btn-success):hover,
button[title*="Düzenle"]:not(.btn-danger):not(.btn-success):hover {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: #fbbf24 !important;
    color: #e879f9 !important; /* Canlı Mürdüm / Magenta */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(232, 121, 249, 0.35) !important;
}
.btn-warning:hover *,
.btn-warning:focus *,
.btn-edit:hover *,
.btn-edit:focus *,
a[title*="Düzenle"]:not(.btn-danger):not(.btn-success):hover *,
button[title*="Düzenle"]:not(.btn-danger):not(.btn-success):hover * {
    color: #e879f9 !important;
}

/* 3. Koyu Renkli Butonlar: Font Sarı Renkli, Hover'da Renk Değişimi (Background Sarı, Font Koyu) */
.btn-dark,
.btn-secondary {
    background: #18181b !important;
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #fbbf24 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}
.btn-dark *,
.btn-secondary * {
    color: #fbbf24 !important;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background: #fbbf24 !important;
    background-color: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #18181b !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4) !important;
}
.btn-dark:hover *,
.btn-dark:focus *,
.btn-secondary:hover *,
.btn-secondary:focus * {
    color: #18181b !important;
}

/* 4. Tehlike / Silme Butonları: Kırmızı & Hover'da Renk Değişimi */
.btn-danger {
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}
.btn-danger * {
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
}
.btn-danger:hover *,
.btn-danger:focus * {
    color: #dc2626 !important;
}

/* Outline Butonlar & Hover'da Renk Değişimi */
.btn-outline-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #cbd5e1 !important;
    background: transparent !important;
}
.btn-outline-secondary:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
}
.btn-outline-secondary:hover * {
    color: #0f172a !important;
}

.btn-outline-primary {
    border: 1px solid #0284c7 !important;
    color: #38bdf8 !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.btn-outline-primary:hover * {
    color: #ffffff !important;
}

.btn-outline-warning {
    border: 1px solid #fbbf24 !important;
    color: #fbbf24 !important;
    background: transparent !important;
}
.btn-outline-warning:hover {
    background: #fbbf24 !important;
    color: #e879f9 !important; /* Mürdüm */
    transform: translateY(-2px);
}
.btn-outline-warning:hover * {
    color: #e879f9 !important;
}

.btn-outline-danger {
    border: 1px solid #ef4444 !important;
    color: #f87171 !important;
    background: transparent !important;
}
.btn-outline-danger:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.btn-outline-danger:hover * {
    color: #ffffff !important;
}

/* 5. Tüm Silme ve Çöp Kutusu İkonları: Her Zaman Kırmızı */
i.bi-trash,
i.bi-trash-fill,
i.bi-trash2,
i.bi-trash2-fill,
i.bi-trash3,
i.bi-trash3-fill {
    color: #ef4444 !important;
}

/* Silme butonunun üzerine gelindiğinde buton arkaplanı kırmızıya dönerse çöp kutusu beyaz kalır */
.btn-danger:hover i.bi-trash,
.btn-danger:hover i.bi-trash-fill,
.btn-danger:hover i.bi-trash2,
.btn-danger:hover i.bi-trash3,
.btn-outline-danger:hover i.bi-trash,
.btn-outline-danger:hover i.bi-trash-fill,
.btn-outline-danger:hover i.bi-trash2,
.btn-outline-danger:hover i.bi-trash3 {
    color: #ffffff !important;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-content {
    background: rgba(16, 18, 32, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
    color: #f8fafc !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-body {
    padding: 1.5rem !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ==========================================================================
   Tables
   ========================================================================== */
table, .table {
    color: #e2e8f0 !important;
    --bs-table-bg: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.9rem 1rem !important;
}

.table tbody td {
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle !important;
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.08) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    background: rgba(20, 22, 38, 0.88) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(14px) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.alert-success {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(20, 22, 38, 0.85) 100%) !important;
    color: #34d399 !important;
}

.alert-danger {
    border-color: rgba(244, 63, 94, 0.45) !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(20, 22, 38, 0.85) 100%) !important;
    color: #fb7185 !important;
}

.alert-info {
    border-color: rgba(56, 189, 248, 0.45) !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(20, 22, 38, 0.85) 100%) !important;
    color: #38bdf8 !important;
}

/* ==========================================================================
   Sarı Zeminlerde Siyah Yazı Kuralı (Critical Accessibility & Theme Rule)
   ========================================================================== */
.bg-warning,
.btn-warning:not(:hover):not(:focus),
.badge.bg-warning,
.alert-warning,
[style*="background-color: yellow"],
[style*="background: yellow"],
[style*="background-color: #ffc107"],
[style*="background: #ffc107"],
[style*="background-color: #fbbf24"],
[style*="background: #fbbf24"] {
    color: #000000 !important;
}

.bg-warning *,
.btn-warning:not(:hover):not(:focus) *,
.badge.bg-warning *,
.alert-warning *,
[style*="background-color: yellow"] *,
[style*="background: yellow"] *,
[style*="background-color: #ffc107"] *,
[style*="background: #ffc107"] *,
[style*="background-color: #fbbf24"] *,
[style*="background: #fbbf24"] * {
    color: #000000 !important;
}

/* ==========================================================================
   Badges, Pills, and Tags
   ========================================================================== */
.badge {
    border-radius: 50rem !important;
    font-weight: 500 !important;
    padding: 0.35rem 0.65rem !important;
    letter-spacing: 0.02em;
}

.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.bg-danger {
    background-color: rgba(244, 63, 94, 0.2) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge.bg-info {
    background-color: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Nav Tabs & Pills
   ========================================================================== */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs .nav-link {
    color: #94a3b8 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 0.75rem 1.35rem !important;
    font-weight: 500;
    transition: all 0.25s ease !important;
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link.active {
    color: var(--theme-accent-emerald) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--theme-accent-emerald) !important;
}

.nav-pills .nav-link {
    border-radius: 50rem !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500;
    color: #cbd5e1 !important;
    transition: all 0.25s ease !important;
}

.nav-pills .nav-link.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   Rating Strip & Star Animations
   ========================================================================== */
.rating-strip {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(251, 191, 36, 0.06) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.rating-strip:hover {
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15) !important;
}

.star-rating .star-label {
    cursor: pointer !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease, color 0.15s ease !important;
}

.star-rating .star-label:hover,
.star-rating .star-label:hover ~ .star-label {
    transform: scale(1.3) rotate(-4deg) !important;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85)) !important;
    color: #fbbf24 !important;
}

.star-rating input:checked ~ .star-label i,
.star-rating .star-label i.bi-star-fill {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

.bi-star-fill, .text-warning {
    color: var(--theme-star-amber) !important;
}

/* ==========================================================================
   Interaction Bar & Panels
   ========================================================================== */
.interaction-bar {
    background: rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.85rem !important;
}

.btn-interaction {
    border-radius: 50rem !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px) !important;
}

.btn-interaction:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.2) !important;
}

.btn-fav-heart:hover i.bi-heart,
.btn-fav-heart:hover i.bi-heart-fill {
    animation: heartBeat 0.6s infinite alternate cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8)); }
}

.comments-section, .chat-container, .comments-list, .replies-list {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-radius: 14px;
    border: 1px solid var(--theme-card-border);
}

/* Root Item Card Integration */
.root-item-card {
    background: linear-gradient(180deg, rgba(24, 26, 44, 0.95) 0%, rgba(14, 15, 26, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
}

.top-comment-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1) !important;
}

/* ==========================================================================
   YouTube Wrapper & Scrollbar
   ========================================================================== */
.ratio-16x9, #youtube-player {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 11, 20, 0.5); 
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.45); 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.65); 
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: rgba(10, 11, 20, 0.92) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--theme-text-muted) !important;
}

footer a {
    color: var(--theme-accent-emerald) !important;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--theme-accent-purple) !important;
}

/* ==========================================================================
   Dark Theme Utility Overrides
   ========================================================================== */
.text-dark {
    color: #f1f5f9 !important;
}

.bg-light {
    background-color: transparent !important;
}

.bg-white {
    background-color: var(--theme-card-bg) !important;
    color: var(--theme-text) !important;
}

.text-muted {
    color: var(--theme-text-muted) !important;
}
