[data-bs-theme="dark"] .login_left {
    background: url("../media/auth/login_banner.jpg") no-repeat center;
    background-size: cover;
    position: relative;
}

[data-bs-theme="light"] .login_left {
    background: url("../media/auth/login_banner.jpg") no-repeat center;
    background-size: cover;
    position: relative;
}

.login_left::before {
    content: "";
    position: absolute;
    background-color: #00000091;
    width: 100%;
    height: 100%;
}

.login-leftcon {
    position: absolute;
    z-index: 9;
    width: 75%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.login-leftcon h1 {
    color: #fff;
}

.login-right {
    padding: 15px;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    box-shadow: 6px 11px 15px 2px #9d9d9d36;
}

/* TOTP Dashboard Styles */
.totp-dashboard {
    padding: 40px;
    background-color: #f4f7fb;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: #1e293b;
}

.totp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .totp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.totp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.totp-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.totp-card-number {
    background: #1e3a8a;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.totp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.totp-card-body {
    flex: 1;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.totp-illustration {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    border: 1px dashed #cbd5e1;
}

.totp-footer-bar {
    background: #0f172a;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin: 30px auto 0;
    max-width: 1400px;
    align-items: center;
}

.totp-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.totp-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.totp-step-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.totp-step-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
}

.totp-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.totp-flow-icon {
    font-size: 24px;
    color: #64748b;
}

.totp-flow-arrow {
    color: #cbd5e1;
}

.totp-phone-mockup {
    border: 8px solid #334155;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    background: white;
    margin: 15px auto;
    width: 140px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.totp-phone-mockup .code {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 10px 0;
    color: #1e293b;
}

.totp-phone-mockup .timer {
    border: 3px solid #3b82f6;
    color: #3b82f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin: 0 auto;
}

.totp-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #3b82f6;
    margin-bottom: 10px;
}

.empty-data {
    padding-top: 35px;
    padding-bottom: 20px;
}

.totp-icon-circle.success {
    background: #10b981;
}

.totp-icon-circle.danger {
    background: #ef4444;
}

.totp-icon-circle.purple {
    background: #8b5cf6;
}

.totp-icon-circle.slate {
    background: #64748b;
}

/* Select2 Dark Mode Fixes */
[data-bs-theme="dark"] .select2-dropdown {
    background-color: #1e1e2d !important;
    border-color: #323248 !important;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .select2-results__option {
    color: #92929f !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-results__option[aria-selected="true"],
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-results__option--highlighted,
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted {
    background-color: #323248 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #151521 !important;
    border-color: #323248 !important;
    color: #ffffff !important;
}

/* Dropdown Menu Dark Mode Fixes */
[data-bs-theme="dark"] .menu-sub-dropdown {
    background-color: #1e1e2d !important;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .menu-item .menu-link {
    color: #92929f !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .menu-item .menu-link:hover {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .separator {
    border-bottom-color: #323248 !important;
}

/* Global Card & Component Dark Mode Fixes */
[data-bs-theme="dark"] .clean-metric-card,
[data-bs-theme="dark"] .app-content .card {
    background-color: #1e1e2d !important;
    border-color: #323248 !important;
}

[data-bs-theme="dark"] .clean-metric-card .card-title span.fs-2hx,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .clean-metric-card h4.text-dark {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .alert-light {
    background-color: #2b2b40 !important;
    border-color: #323248 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2b2b40 !important;
}

/* WEMU Custom Audio Player & Song Details Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
}

.vinyl-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-disk {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #222 15%, #111 30%, #333 40%, #111 50%, #222 60%, #111 70%, #000 90%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vinyl-cover {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #1e1e2d;
    overflow: hidden;
    z-index: 2;
    position: absolute;
}

.vinyl-center-hole {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #151521;
    z-index: 3;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.vinyl-disk::before {
    content: '';
    position: absolute;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.vinyl-disk.spinning {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Styled range input for progress and volume */
.premium-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e4e6ef;
    outline: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

[data-bs-theme="dark"] .premium-range {
    background: #323248;
}

.premium-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1b84ff;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.premium-range::-webkit-slider-thumb:hover {
    transform: scale(1.35);
    background: #0056b3;
}

.premium-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #1b84ff;
    cursor: pointer;
    transition: transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.premium-range::-moz-range-thumb:hover {
    transform: scale(1.35);
}

/* Stats Cards Premium Gradient Border */
.metric-card-premium {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(145deg, rgba(27, 132, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .metric-card-premium {
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(145deg, rgba(27, 132, 255, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.metric-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 132, 255, 0.2);
}

.lyrics-container {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 2;
    letter-spacing: 0.5px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    white-space: pre-line;
}

/* Scrollbar Styling */
.lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(27, 132, 255, 0.2);
    border-radius: 10px;
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 132, 255, 0.4);
}

/* Ambient blurred cover art backdrop */
.player-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(1.8);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

[data-bs-theme="light"] .player-hero-backdrop {
    opacity: 0.08;
    filter: blur(100px) saturate(1.4);
}

/* Vinyl Tonearm Animation Styles */
.vinyl-tonearm {
    position: absolute;
    top: -10px;
    right: 35px;
    width: 65px;
    height: 130px;
    z-index: 4;
    transform-origin: 52px 20px;
    transform: rotate(-35deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.vinyl-tonearm.playing {
    transform: rotate(-10deg);
}

/* Specific glows for metrics cards on hover */
.metric-card-premium.card-streams:hover {
    border-color: rgba(27, 132, 255, 0.4) !important;
    box-shadow: 0 10px 25px rgba(27, 132, 255, 0.15) !important;
}

.metric-card-premium.card-favorites:hover {
    border-color: rgba(241, 65, 108, 0.4) !important;
    box-shadow: 0 10px 25px rgba(241, 65, 108, 0.15) !important;
}

.metric-card-premium.card-downloads:hover {
    border-color: rgba(80, 205, 137, 0.4) !important;
    box-shadow: 0 10px 25px rgba(80, 205, 137, 0.15) !important;
}

.metric-card-premium.card-shares:hover {
    border-color: rgba(241, 188, 14, 0.4) !important;
    box-shadow: 0 10px 25px rgba(241, 188, 14, 0.15) !important;
}

/* Beautiful Song Story / Description Container */
.story-container {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #1b84ff !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .story-container {
    background: rgba(0, 0, 0, 0.02);
}

.story-container:hover {
    background: rgba(27, 132, 255, 0.03);
    border-left-color: #0056b3 !important;
}