/* ============================================================
   desktop.css — Modern Desktop Layout for web.oursocial.top
   3-Column Layout: Left Sidebar | Center Feed | Right Sidebar
   Supports: Dark Theme & Light Theme Switcher
   ============================================================ */

/* ── Theme Definitions ─────────────────────────────────────── */
:root,
[data-theme="dark"] {
    --bg-dark: #0f111a;
    --bg-base: #0f111a;
    --bg-surface: #161929;
    --bg-card: rgba(22, 25, 41, 0.7);
    --bg-card-solid: #161929;
    --bg-topbar: rgba(15, 17, 26, 0.92);
    --bg-dropdown: rgba(22, 25, 41, 0.98);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(20, 184, 166, 0.12);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(20, 184, 166, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-glow: rgba(20, 184, 166, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --secondary: #3b82f6;
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --color-scheme: dark;
}

[data-theme="light"],
body.light-theme {
    --bg-dark: #f4f6fa;
    --bg-base: #f4f6fa;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.94);
    --bg-dropdown: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-active: rgba(13, 148, 136, 0.12);
    --bg-input: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-hover: rgba(13, 148, 136, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-glow: rgba(13, 148, 136, 0.18);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --secondary: #2563eb;
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.1);
    --color-scheme: light;
}

/* ── Override body for desktop ─────────────────────────────── */
body.desktop-body {
    padding-top: 64px;
    padding-bottom: 0;
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(20, 184, 166, 0.06) 0px, transparent 60%),
        radial-gradient(ellipse at 90% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme body background */
body.desktop-body.light-theme,
[data-theme="light"] body.desktop-body {
    background-color: #f4f6fa;
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(13, 148, 136, 0.05) 0px, transparent 60%),
        radial-gradient(ellipse at 90% 100%, rgba(37, 99, 235, 0.04) 0px, transparent 60%);
    color: #0f172a;
}

/* Hide mobile bottom nav & mobile top bar on desktop */
body.desktop-body .bottom-nav,
body.desktop-body .top-bar {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
   ═══════════════════════════════════════════════════════════ */
.desktop-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

/* ── Logo ── */
.topbar-left {
    flex: 0 0 auto;
    min-width: 200px;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.topbar-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.topbar-logo i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar-brand {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3px;
}

/* ── Search Bar ── */
.topbar-center {
    flex: 1;
    max-width: 480px;
}

.desktop-search-wrapper {
    position: relative;
    width: 100%;
}

.desktop-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}

.desktop-search-input {
    width: 100%;
    height: 42px;
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    padding: 0 16px 0 40px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-search-input::placeholder {
    color: var(--text-muted);
}

.desktop-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.desktop-search-input:focus + .desktop-search-dropdown,
.desktop-search-dropdown:hover {
    /* handled by JS */
}

.desktop-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(22, 25, 41, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    max-height: 380px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.desktop-search-dropdown.open {
    display: block;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown-content {
    padding: 8px;
}

.search-empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--text-primary);
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(20, 184, 166, 0.08);
}

.search-result-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
}

.search-result-username {
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-hashtag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.search-result-hashtag:hover {
    background: rgba(20, 184, 166, 0.08);
}

/* ── Right Nav Area ── */
.topbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.topbar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.topbar-nav-btn.active {
    color: var(--primary);
    background: rgba(20, 184, 166, 0.1);
}

.topbar-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.topbar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
}

.topbar-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 17px;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.topbar-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.topbar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── User Button & Dropdown Trigger ── */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
}

.topbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(20, 184, 166, 0.3);
}

.topbar-caret {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.topbar-user-btn.open .topbar-caret {
    transform: rotate(180deg);
}

/* ── Login/Register buttons (guest) ── */
.topbar-login-btn,
.topbar-register-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-login-btn {
    color: var(--primary);
    border: 1px solid rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.08);
}

.topbar-login-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--primary);
}

.topbar-register-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}

.topbar-register-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* ═══ DROPDOWN PANELS ═══ */
.topbar-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    background: rgba(22, 25, 41, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.topbar-dropdown.open {
    display: block;
    animation: dropdownSlideIn 0.2s ease;
}

/* ── Notification Dropdown ── */
.notif-dropdown {
    width: 380px;
    max-height: 460px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-header a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-body {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.dropdown-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.notif-item:hover {
    background: rgba(20, 184, 166, 0.05);
}

.notif-item.unread {
    background: rgba(20, 184, 166, 0.03);
    border-left: 3px solid var(--primary);
}

.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-text {
    font-size: 13px;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── User Dropdown ── */
.user-dropdown {
    width: 280px;
}

.user-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.user-dropdown-profile:hover {
    background: rgba(20, 184, 166, 0.05);
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(20, 184, 166, 0.3);
}

.dropdown-name {
    font-weight: 600;
    font-size: 14px;
}

.dropdown-username {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(20, 184, 166, 0.06);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.admin-link {
    color: var(--secondary);
}

.dropdown-item.admin-link i {
    color: var(--secondary);
}

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

.dropdown-item.logout-link i {
    color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════
   3-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.desktop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 24px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - 64px);
}

/* ── LEFT SIDEBAR ── */
.desktop-sidebar-left {
    position: sticky;
    top: 88px;
    height: fit-content;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 24px;
}

.desktop-sidebar-left::-webkit-scrollbar {
    display: none;
}

/* Profile Card */
.sidebar-profile-card {
    background: rgba(22, 25, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.sidebar-profile-card:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.06);
}

.sidebar-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(20, 184, 166, 0.4);
    transition: border-color 0.3s;
}

.sidebar-profile-link:hover .sidebar-avatar {
    border-color: var(--primary);
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-name .verified-badge {
    color: var(--secondary);
    font-size: 13px;
    margin-left: 4px;
}

.sidebar-username {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-membership-badge {
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 11px;
    font-weight: 600;
    color: #a855f7;
    text-align: center;
}

.sidebar-membership-badge i {
    margin-right: 4px;
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(20, 184, 166, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-nav-item:hover .sidebar-nav-icon {
    color: var(--primary);
    background: rgba(20, 184, 166, 0.12);
}

.sidebar-nav-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--primary);
    background: rgba(20, 184, 166, 0.15);
}

.sidebar-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.25s;
    flex-shrink: 0;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-points {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 14px;
}

/* Footer Links */
.sidebar-footer {
    margin-top: 16px;
    padding: 14px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: var(--primary);
}

.sidebar-footer-copy {
    margin-top: 6px;
    opacity: 0.5;
    font-size: 10px;
}

/* ── CENTER CONTENT ── */
.desktop-main-content {
    min-width: 0;
    /* The .container class from mobile CSS is overridden here */
}

.desktop-main-content .container {
    max-width: 100%;
    padding: 0;
}

/* ── RIGHT SIDEBAR ── */
.desktop-sidebar-right {
    position: sticky;
    top: 88px;
    height: fit-content;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.desktop-sidebar-right::-webkit-scrollbar {
    display: none;
}

/* ═══ WIDGET CARDS ═══ */
.widget-card {
    background: rgba(22, 25, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.widget-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.widget-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header h4 i {
    font-size: 15px;
    opacity: 0.8;
}

.widget-body {
    padding: 8px;
}

.widget-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Dhahab Widget ── */
.dhahab-widget .widget-header h4 i {
    color: #f59e0b;
}

.dhahab-widget-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dhahab-balance {
    display: flex;
    flex-direction: column;
}

.dhahab-amount {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.dhahab-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dhahab-earn-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dhahab-earn-btn:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* ── Friend Suggestions Widget ── */
.suggestions-widget .widget-header h4 i {
    color: var(--secondary);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

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

.suggestion-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.suggestion-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-mutual {
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.suggestion-add-btn:hover {
    background: rgba(20, 184, 166, 0.2);
    transform: scale(1.1);
}

.suggestion-add-btn.sent {
    background: rgba(20, 184, 166, 0.05);
    color: var(--text-muted);
    pointer-events: none;
}

/* ── Trending Widget ── */
.trending-widget .widget-header h4 i {
    color: #ef4444;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

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

.trending-tag {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.trending-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Online Friends Widget ── */
.online-widget .widget-header h4 .online-dot {
    color: #22c55e;
    font-size: 10px;
}

.online-friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

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

.online-friend-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.online-friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg-dark);
}

.online-friend-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Sidebar Footer */
.sidebar-right-footer {
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 16px;
    line-height: 1.8;
    opacity: 0.6;
}

.sidebar-right-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar-right-footer a:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP FEED OVERRIDES
   ═══════════════════════════════════════════════════════════ */

/* Story Row — wider on desktop */
body.desktop-body .story-row-container {
    margin: 0 0 16px 0;
}

body.desktop-body .story-row {
    padding: 0;
}

/* Post Creator — inline on desktop */
body.desktop-body .creator-trigger-card {
    border-radius: 16px;
    margin-bottom: 16px;
}

/* Post Cards — wider, more prominent */
body.desktop-body .post-card {
    border-radius: 16px;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (for smaller desktop & large tablets)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .desktop-layout {
        grid-template-columns: 240px minmax(0, 1fr) 280px;
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .desktop-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .desktop-sidebar-left {
        display: none;
    }
}

@media (max-width: 860px) {
    .desktop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .desktop-sidebar-left,
    .desktop-sidebar-right {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP POST COMPOSER (inline, not fullscreen)
   ═══════════════════════════════════════════════════════════ */
body.desktop-body .post-composer-screen {
    /* Override mobile fullscreen for desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

body.desktop-body .post-composer-screen.active {
    display: flex;
}

body.desktop-body .post-composer-form {
    background: rgba(22, 25, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════
   DESKTOP-SPECIFIC SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════ */
body.desktop-body ::-webkit-scrollbar {
    width: 6px;
}

body.desktop-body ::-webkit-scrollbar-track {
    background: transparent;
}

body.desktop-body ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

body.desktop-body ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   SMOOTH TRANSITIONS & MICRO-ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.sidebar-nav-item,
.suggestion-item,
.trending-item,
.online-friend-item,
.widget-card {
    will-change: transform;
}

/* Glow effect on active nav */
.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME COMPLETE UI OVERRIDES
   ═══════════════════════════════════════════════════════════ */

/* ── Top Navigation Bar ── */
[data-theme="light"] .desktop-topbar,
body.light-theme .desktop-topbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .desktop-search-input,
body.light-theme .desktop-search-input {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

[data-theme="light"] .desktop-search-input::placeholder,
body.light-theme .desktop-search-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .desktop-search-input:focus,
body.light-theme .desktop-search-input:focus {
    background: #ffffff;
    border-color: rgba(13, 148, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

[data-theme="light"] .desktop-search-dropdown,
body.light-theme .desktop-search-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-result-item,
body.light-theme .search-result-item {
    color: #0f172a;
}

[data-theme="light"] .search-result-item:hover,
body.light-theme .search-result-item:hover {
    background: rgba(13, 148, 136, 0.06);
}

[data-theme="light"] .topbar-nav-btn,
body.light-theme .topbar-nav-btn {
    color: #64748b;
}

[data-theme="light"] .topbar-nav-btn:hover,
body.light-theme .topbar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

[data-theme="light"] .topbar-nav-btn.active,
body.light-theme .topbar-nav-btn.active {
    color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
}

[data-theme="light"] .topbar-divider,
body.light-theme .topbar-divider {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .topbar-action-btn,
body.light-theme .topbar-action-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .topbar-action-btn:hover,
body.light-theme .topbar-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .topbar-badge,
body.light-theme .topbar-badge {
    border-color: #ffffff;
}

[data-theme="light"] .topbar-user-btn,
body.light-theme .topbar-user-btn {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .topbar-user-btn:hover,
body.light-theme .topbar-user-btn:hover {
    background: #e2e8f0;
    border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="light"] .topbar-dropdown,
body.light-theme .topbar-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .dropdown-header,
body.light-theme .dropdown-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dropdown-divider,
body.light-theme .dropdown-divider {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dropdown-item,
body.light-theme .dropdown-item {
    color: #1e293b;
}

[data-theme="light"] .dropdown-item:hover,
body.light-theme .dropdown-item:hover {
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary);
}

[data-theme="light"] .user-dropdown-profile:hover,
body.light-theme .user-dropdown-profile:hover {
    background: rgba(13, 148, 136, 0.05);
}

[data-theme="light"] .notif-item,
body.light-theme .notif-item {
    color: #0f172a;
}

[data-theme="light"] .notif-item:hover,
body.light-theme .notif-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .notif-item.unread,
body.light-theme .notif-item.unread {
    background: rgba(13, 148, 136, 0.05);
}

/* ── Left Sidebar ── */
[data-theme="light"] .sidebar-profile-card,
body.light-theme .sidebar-profile-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar-profile-card:hover,
body.light-theme .sidebar-profile-card:hover {
    border-color: rgba(13, 148, 136, 0.25);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

[data-theme="light"] .sidebar-profile-link,
body.light-theme .sidebar-profile-link {
    color: #0f172a;
}

[data-theme="light"] .sidebar-nav-item,
body.light-theme .sidebar-nav-item {
    color: #334155;
}

[data-theme="light"] .sidebar-nav-item:hover,
body.light-theme .sidebar-nav-item:hover {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
}

[data-theme="light"] .sidebar-nav-item.active,
body.light-theme .sidebar-nav-item.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
}

[data-theme="light"] .sidebar-nav-icon,
body.light-theme .sidebar-nav-icon {
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="light"] .sidebar-nav-item:hover .sidebar-nav-icon,
body.light-theme .sidebar-nav-item:hover .sidebar-nav-icon {
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
}

[data-theme="light"] .sidebar-nav-item.active .sidebar-nav-icon,
body.light-theme .sidebar-nav-item.active .sidebar-nav-icon {
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary);
}

[data-theme="light"] .sidebar-divider,
body.light-theme .sidebar-divider {
    background: rgba(0, 0, 0, 0.06);
}

/* ── Right Sidebar & Widgets ── */
[data-theme="light"] .widget-card,
body.light-theme .widget-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .widget-card:hover,
body.light-theme .widget-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .widget-header,
body.light-theme .widget-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .suggestion-item:hover,
[data-theme="light"] .trending-item:hover,
[data-theme="light"] .online-friend-item:hover,
body.light-theme .suggestion-item:hover,
body.light-theme .trending-item:hover,
body.light-theme .online-friend-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .suggestion-user,
[data-theme="light"] .online-friend-item,
body.light-theme .suggestion-user,
body.light-theme .online-friend-item {
    color: #0f172a;
}

[data-theme="light"] .online-indicator,
body.light-theme .online-indicator {
    border-color: #ffffff;
}

/* ── Feed, Posts & Creator ── */
[data-theme="light"] .post-card,
body.light-theme .post-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .post-card:hover,
body.light-theme .post-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .creator-trigger-card,
body.light-theme .creator-trigger-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .creator-fake-input,
body.light-theme .creator-fake-input {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .post-content-text,
body.light-theme .post-content-text {
    color: #1e293b;
}

[data-theme="light"] .options-trigger-btn,
body.light-theme .options-trigger-btn {
    color: #64748b;
}

[data-theme="light"] .options-trigger-btn:hover,
body.light-theme .options-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

[data-theme="light"] .options-dropdown,
body.light-theme .options-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .options-dropdown a,
[data-theme="light"] .options-dropdown button,
body.light-theme .options-dropdown a,
body.light-theme .options-dropdown button {
    color: #1e293b;
}

[data-theme="light"] .options-dropdown a:hover,
[data-theme="light"] .options-dropdown button:hover,
body.light-theme .options-dropdown a:hover,
body.light-theme .options-dropdown button:hover {
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary);
}

[data-theme="light"] .comment-item,
body.light-theme .comment-item {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .comment-content-box,
body.light-theme .comment-content-box {
    background: #f1f5f9;
}

[data-theme="light"] .comment-input,
body.light-theme .comment-input {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-theme="light"] .post-action-btn,
body.light-theme .post-action-btn {
    color: #64748b;
}

[data-theme="light"] .post-action-btn:hover,
body.light-theme .post-action-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
}

/* ── Modals & Popups ── */
[data-theme="light"] .post-composer-form,
body.light-theme .post-composer-form {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .post-textarea,
body.light-theme .post-textarea {
    color: #0f172a;
}

[data-theme="light"] .modal-content,
body.light-theme .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-input,
body.light-theme .modal-input {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-theme="light"] .cancel-modal-btn,
body.light-theme .cancel-modal-btn {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .cancel-modal-btn:hover,
body.light-theme .cancel-modal-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .confirm-modal-content,
body.light-theme .confirm-modal-content {
    background: #ffffff;
    color: #0f172a;
}

/* ── Settings Page ── */
[data-theme="light"] .settings-card,
body.light-theme .settings-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .settings-nav-btn,
body.light-theme .settings-nav-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

[data-theme="light"] .settings-nav-btn:hover,
body.light-theme .settings-nav-btn:hover {
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary);
}

[data-theme="light"] .settings-nav-btn.active,
body.light-theme .settings-nav-btn.active {
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
    border-color: rgba(13, 148, 136, 0.3);
}

[data-theme="light"] .settings-input,
body.light-theme .settings-input {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

[data-theme="light"] .settings-input:focus,
body.light-theme .settings-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

[data-theme="light"] .photo-box,
body.light-theme .photo-box {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Messenger ── */
[data-theme="light"] .desktop-msng-header,
body.light-theme .desktop-msng-header {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chat-top-header,
body.light-theme .chat-top-header {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .btn-chat-back,
body.light-theme .btn-chat-back {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .bubble-theirs .chat-bubble,
body.light-theme .bubble-theirs .chat-bubble {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chat-input-bar,
[data-theme="light"] .msng-input-wrapper,
body.light-theme .chat-input-bar,
body.light-theme .msng-input-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-input-field,
[data-theme="light"] .msng-chat-input,
body.light-theme .chat-input-field,
body.light-theme .msng-chat-input {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .chat-list-item,
body.light-theme .chat-list-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chat-list-item:hover,
body.light-theme .chat-list-item:hover {
    background: rgba(13, 148, 136, 0.04);
}

/* ── AI Chat ── */
[data-theme="light"] .desktop-ai-chat-wrapper,
[data-theme="light"] .ai-chat-header-bar,
body.light-theme .desktop-ai-chat-wrapper,
body.light-theme .ai-chat-header-bar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .ai-msg-bubble-ai,
body.light-theme .ai-msg-bubble-ai {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: #0f172a;
}

[data-theme="light"] .ai-composer-wrapper,
body.light-theme .ai-composer-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ai-chat-input,
body.light-theme .ai-chat-input {
    background: #f1f5f9;
    color: #0f172a;
}

/* ── Profile & Friends ── */
[data-theme="light"] .profile-header-card,
[data-theme="light"] .friend-card,
body.light-theme .profile-header-card,
body.light-theme .friend-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .profile-info-section,
body.light-theme .profile-info-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .profile-nav-tab,
body.light-theme .profile-nav-tab {
    color: #64748b;
}

[data-theme="light"] .profile-nav-tab:hover,
body.light-theme .profile-nav-tab:hover {
    color: #0f172a;
}

/* ── Notifications Hub ── */
[data-theme="light"] .notif-card,
[data-theme="light"] .notif-item-row,
body.light-theme .notif-card,
body.light-theme .notif-item-row {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

[data-theme="light"] .notif-item-row:hover,
body.light-theme .notif-item-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .btn-mark-all-read,
body.light-theme .btn-mark-all-read {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
    color: var(--primary);
}

[data-theme="light"] .btn-mark-all-read:hover,
body.light-theme .btn-mark-all-read:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ── Auth Cards (Login / Register) ── */
[data-theme="light"] .login-card,
body.light-theme .login-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .login-card input[type="text"],
[data-theme="light"] .login-card input[type="password"],
[data-theme="light"] .login-card input[type="number"],
body.light-theme .login-card input[type="text"],
body.light-theme .login-card input[type="password"],
body.light-theme .login-card input[type="number"] {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

/* ── Scrollbars in Light Mode ── */
[data-theme="light"] body.desktop-body ::-webkit-scrollbar-thumb,
body.desktop-body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] body.desktop-body ::-webkit-scrollbar-thumb:hover,
body.desktop-body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

/* ── Theme Toggle Button Micro-Animation & Style ── */
.theme-toggle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(30deg) scale(1.15);
}

.theme-toggle-btn.theme-toggle-spin i {
    transform: rotate(360deg) scale(1.25);
}

/* ── Settings Appearance Grid ── */
.theme-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.theme-option-card {
    border-radius: 14px;
    border: 2px solid var(--border-color);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-hover);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.theme-option-card.active {
    border-color: var(--primary);
    background: var(--bg-active);
    box-shadow: 0 0 0 1px var(--primary);
}

.theme-preview {
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-preview-dark {
    background: #0f111a;
}
.theme-preview-dark .preview-topbar {
    height: 18px;
    background: #161929;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-preview-dark .preview-body {
    flex: 1;
    display: flex;
    gap: 8px;
    padding: 8px;
}
.theme-preview-dark .preview-sidebar {
    width: 25%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.theme-preview-dark .preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.theme-preview-dark .preview-card {
    height: 28px;
    background: #161929;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-preview-light {
    background: #f4f6fa;
}
.theme-preview-light .preview-topbar {
    height: 18px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.theme-preview-light .preview-body {
    flex: 1;
    display: flex;
    gap: 8px;
    padding: 8px;
}
.theme-preview-light .preview-sidebar {
    width: 25%;
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.theme-preview-light .preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.theme-preview-light .preview-card {
    height: 28px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-option-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.theme-option-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-option-desc {
    font-size: 12px;
    color: var(--text-muted);
}
