/* =================================================================
 * DESKTOP-ONLY OVERRIDES (>= 1024px)
 * Mirrors the AI-OS desktop app: sidebar + centered chat + floating window account
 *
 * Below 1024px the existing mobile layout is fully preserved.
 * ================================================================= */

/* ---------------------------------------------------------------
 * Sidebar — hidden by default (mobile/tablet portrait)
 * --------------------------------------------------------------- */
.desktop-sidebar {
    display: none;
}

/* Hide pill suggestions + carousel on mobile/tablet — desktop only */
.home-suggestions-wrapper,
.home-carousel {
    display: none;
}

/* ---------------------------------------------------------------
 * Desktop breakpoint (laptop / desktop / landscape tablet)
 * --------------------------------------------------------------- */
@media (min-width: 1024px) {

    /* ── Force pure black background on desktop dark mode ── */
    body.dark-mode,
    body.dark-mode .app-container {
        background: #000000 !important;
        background-image: none !important;
    }

    /* ── Sidebar ─────────────────────────────────────────────── */
    .desktop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 56px;
        background: rgba(8, 8, 8, 0.90);
        border-right: 1px solid rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(20px) saturate(1.2);
        -webkit-backdrop-filter: blur(20px) saturate(1.2);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    body:not(.dark-mode) .desktop-sidebar {
        background: rgba(255, 255, 255, 0.85);
        border-right: 1px solid rgba(15, 23, 42, 0.08);
    }

    .desktop-sidebar-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.55);
        background: transparent;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }

    .desktop-sidebar-icon svg {
        width: 18px;
        height: 18px;
    }

    .desktop-sidebar-icon:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.18);
        transform: translateY(-2px);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }

    .desktop-sidebar-icon.active {
        color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    body:not(.dark-mode) .desktop-sidebar-icon {
        color: rgba(15, 23, 42, 0.55);
    }

    body:not(.dark-mode) .desktop-sidebar-icon:hover {
        color: rgba(15, 23, 42, 0.95);
        background: rgba(15, 23, 42, 0.06);
        border-color: rgba(15, 23, 42, 0.15);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    body:not(.dark-mode) .desktop-sidebar-icon.active {
        color: rgba(15, 23, 42, 1);
        background: rgba(15, 23, 42, 0.10);
        border-color: rgba(15, 23, 42, 0.20);
    }

    /* User initials/avatar inside the sidebar profile button */
    #sidebar-profile-btn .desktop-sidebar-avatar {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        background: var(--accent-color);
        color: var(--bg-color);
    }

    #sidebar-profile-btn .desktop-sidebar-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #sidebar-profile-btn .desktop-sidebar-avatar.hidden { display: none; }

    /* Hide the cog icon when avatar is present */
    #sidebar-profile-btn:has(.desktop-sidebar-avatar:not(.hidden)) .desktop-sidebar-cog {
        display: none;
    }

    /* Tooltip on hover */
    .desktop-sidebar-icon::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        padding: 6px 10px;
        background: rgba(20, 20, 22, 0.96);
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.78rem;
        font-weight: 500;
        border-radius: 6px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1500;
    }

    .desktop-sidebar-icon:hover::after {
        opacity: 1;
    }

    body:not(.dark-mode) .desktop-sidebar-icon::after {
        background: #ffffff;
        color: #0f172a;
        border: 1px solid rgba(15, 23, 42, 0.10);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    }

    /* ── Download button pinned to bottom ──────────────────── */
    .sidebar-download-btn {
        margin-top: auto;
        margin-bottom: 0.5rem;
    }

    /* ── Download popup toast ──────────────────────────────── */
    .download-popup {
        position: fixed;
        left: 68px;
        bottom: 24px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: rgba(20, 20, 22, 0.96);
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.82rem;
        font-weight: 500;
        border-radius: 10px;
        white-space: nowrap;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1500;
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .download-popup.hidden {
        opacity: 0;
        transform: translateX(-8px);
        pointer-events: none;
    }

    body:not(.dark-mode) .download-popup {
        background: #ffffff;
        color: #0f172a;
        border: 1px solid rgba(15, 23, 42, 0.1);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    }

    /* ── Hide mobile top-bar; replaced by sidebar ──────────── */
    .top-bar {
        display: none !important;
    }

    /* ── Pad the page so content does not sit under the sidebar ── */
    .app-container {
        padding-left: 56px;
    }

    /* ── Main content fills remaining space ── */
    .main-content {
        padding-top: 0 !important;
    }

    /* ═══════════════════════════════════════════════════════════
     * CRITICAL FIX: Chat container & input width alignment
     * The chat container and input must be the SAME width and
     * chat messages must NEVER go behind the input.
     *
     * NOTE: The HTML element is <div id="chat-container"> (ID, not class!)
     * chat-layout.css targets .chat-container (class) which does NOT match.
     * On desktop we must use #chat-container to actually style it.
     * ═══════════════════════════════════════════════════════════ */

    /* Chat container: fixed position, same width as input, stops above input */
    #chat-container,
    .chat-container {
        position: fixed !important;
        top: 10px !important;
        left: calc(50% + 28px) !important;
        width: 760px !important;
        max-width: calc(100vw - 120px) !important;
        transform: translateX(-50%) !important;
        /* CRITICAL: container stops ABOVE the input (input is ~120px from bottom) */
        height: calc(100vh - 160px) !important;
        bottom: auto !important;
        padding: 10px 0 !important;
        z-index: 50 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Chat window inside the container */
    #chat-container .chat-window,
    .chat-container .chat-window {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        pointer-events: none !important;
        position: relative !important;
    }

    /* Top blur fade effect */
    #chat-container .chat-window::before {
        content: '' !important;
        position: absolute !important;
        top: -10px !important;
        left: -10px !important;
        right: -10px !important;
        height: 60px !important;
        z-index: 10 !important;
        pointer-events: none !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        mask-image: linear-gradient(to bottom, black 40%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%) !important;
    }

    /* Chat messages: scrollable area, stops before hitting the input */
    #chat-container .chat-messages,
    .chat-container .chat-messages {
        flex-grow: 1 !important;
        overflow-y: auto !important;
        scroll-behavior: smooth !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 0 40px 0 !important;
        pointer-events: auto !important;
        scrollbar-width: none !important;
    }

    #chat-container .chat-messages::-webkit-scrollbar {
        display: none !important;
    }

    /* Messages must stay within the container width */
    .message {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .message-user {
        max-width: 70% !important;
        /* Glassmorphism user bubble — matches desktop Electron app */
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 20px !important;
        border-bottom-right-radius: 4px !important;
        padding: 14px 20px !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
    }

    body:not(.dark-mode) .message-user {
        background: rgba(255, 255, 255, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05),
            inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
    }

    .message-bot {
        max-width: 100% !important;
    }

    /* User message text: left-align inside the bubble (bubble itself is right-aligned) */
    .user-message-text {
        text-align: left !important;
    }

    /* Floating input: same 760px width, offset for sidebar */
    .floating-input-container,
    .floating-input-container.welcome-mode,
    .floating-input-container.centered,
    .floating-input-container.chat-mode {
        left: calc(50% + 28px) !important;
        width: 760px !important;
        max-width: calc(100vw - 120px) !important;
    }

    /* Ensure chat-mode input stays at bottom and doesn't float to center */
    .floating-input-container.chat-mode {
        top: auto !important;
        bottom: 24px !important;
        transform: translateX(-50%) !important;
    }

    .floating-input-container .input-field {
        display: grid !important;
        grid-template-columns: auto auto 1fr auto auto auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
    }

    .floating-input-container .input-field .floating-input {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    .floating-input-container #input-action-menu {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .floating-input-container #plan-mode-btn {
        grid-column: 4 !important;
        grid-row: 2 !important;
        position: static !important;
        transform: none !important;
        align-self: center !important;
    }

    .floating-input-container #voice-input-btn {
        grid-column: 5 !important;
        grid-row: 2 !important;
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        align-self: center !important;
    }

    .floating-input-container #send-message {
        grid-column: 6 !important;
        grid-row: 2 !important;
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        align-self: center !important;
    }

    /* ═══════════════════════════════════════════════════════════
     * Welcome / home screen
     * ═══════════════════════════════════════════════════════════ */

    .welcome-container {
        top: 30% !important;
        left: calc(50% + 28px) !important;
    }

    /* Show pills + carousel */
    .home-suggestions-wrapper,
    .home-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-suggestions-wrapper {
        left: calc(50% + 28px);
        top: 60%;
        z-index: 50;
        max-height: 36vh;
    }

    .home-carousel {
        left: calc(50% + 28px);
        z-index: 50;
    }

    .home-pill-content {
        max-height: 30vh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .home-pill-content::-webkit-scrollbar { display: none; }

    /* ═══════════════════════════════════════════════════════════
     * Context window (Past Chats): full-screen panel on desktop
     * ═══════════════════════════════════════════════════════════ */
    .context-window {
        top: 0 !important;
        left: 56px !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        height: 100vh !important;
        border-radius: 0 !important;
        background: #000000 !important;
        border: none !important;
        z-index: 1100 !important;
    }

    .context-window.hidden {
        display: none !important;
    }

    /* ═══════════════════════════════════════════════════════════
     * ACCOUNT / PROFILE DROPDOWN — Desktop floating window
     * Mimics the Electron app's split-layout: sidebar + content
     * ═══════════════════════════════════════════════════════════ */
    @keyframes desktopDropdownIn {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
        to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

    .profile-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: calc(50% + 28px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 900px !important;
        max-width: 90vw !important;
        height: 600px !important;
        max-height: 85vh !important;
        border-radius: 16px !important;
        background: rgba(12, 12, 12, 0.96) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.09) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
            0 10px 30px rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(20px) saturate(1.2) !important;
        -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
        overflow: hidden !important;
        animation: desktopDropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        padding: 0 !important;
        z-index: 1200 !important;
        /* Flex row for split layout */
        display: flex !important;
        flex-direction: row !important;
    }

    .profile-dropdown.hidden {
        display: none !important;
    }

    /* The .profile-settings-panel becomes the LEFT sidebar nav */
    .profile-dropdown .profile-settings-panel {
        width: 240px !important;
        min-width: 240px !important;
        height: 100% !important;
        padding: 20px 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
        scrollbar-width: none !important;
        flex-shrink: 0 !important;
    }

    .profile-dropdown .profile-settings-panel::-webkit-scrollbar {
        display: none !important;
    }

    /* Hide Mindspace, Notes, Offline Mode from desktop sidebar */
    .profile-dropdown .settings-menu-item[data-section="mindspace"],
    .profile-dropdown .settings-menu-item[data-section="notes"],
    .profile-dropdown .settings-menu-item[data-section="offline-mode"] {
        display: none !important;
    }

    /* Account heading styled as panel title */
    .profile-dropdown .settings-section.account-section .section-heading {
        font-size: 18px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: #ffffff !important;
        padding: 4px 8px 16px !important;
    }

    /* Settings menu items in the sidebar */
    .profile-dropdown .settings-menu-item {
        border-radius: 8px !important;
        padding: 10px 12px !important;
        transition: background 0.2s ease !important;
    }

    .profile-dropdown .settings-menu-item:hover {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .profile-dropdown .settings-menu-item .item-arrow {
        opacity: 0.4 !important;
    }

    /* Full panels: fill the RIGHT side of the split layout */
    .profile-dropdown .settings-full-panel {
        position: absolute !important;
        top: 0 !important;
        left: 240px !important;
        right: 0 !important;
        width: auto !important;
        height: 100% !important;
        border-radius: 0 16px 16px 0 !important;
        z-index: 10 !important;
        background: rgba(14, 14, 14, 0.99) !important;
        animation: none !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .profile-dropdown .settings-full-panel.hidden {
        display: none !important;
    }

    .profile-dropdown .settings-full-panel .panel-header {
        padding: 20px 24px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        flex-shrink: 0 !important;
    }

    .profile-dropdown .settings-full-panel .panel-content {
        padding: 24px !important;
        overflow-y: auto !important;
        flex: 1 !important;
    }

    .profile-dropdown .settings-full-panel .back-to-menu-btn {
        display: inline-flex !important;
    }

    /* Desktop Account Right Panel (shows account info on the right by default) */
    .desktop-account-right-panel {
        position: absolute !important;
        top: 0 !important;
        left: 240px !important;
        right: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background: rgba(14, 14, 14, 0.99) !important;
        border-radius: 0 16px 16px 0 !important;
        overflow: hidden !important;
    }

    .desktop-account-right-panel.hidden {
        display: none !important;
    }

    .desktop-account-right-header {
        padding: 24px 28px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        flex-shrink: 0 !important;
    }

    .desktop-account-right-header h2 {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin: 0 !important;
    }

    .desktop-account-right-content {
        padding: 24px 28px !important;
        overflow-y: auto !important;
        flex: 1 !important;
    }

    /* Hide the account section content from the LEFT sidebar on desktop
       (it's shown on the right panel instead) */
    .profile-dropdown .settings-section.account-section .auth-state,
    .profile-dropdown .settings-section.account-section .profile-header-card,
    .profile-dropdown .settings-section.account-section .account-subscription-card,
    .profile-dropdown .settings-section.account-section .account-actions {
        display: none !important;
    }
}

/* ---------------------------------------------------------------
 * Slightly larger desktop adjustments (>= 1280px)
 * --------------------------------------------------------------- */
@media (min-width: 1280px) {
    .home-suggestions-wrapper {
        width: min(72%, 860px);
    }

    .home-carousel {
        width: min(60%, 620px);
    }
}

/* ═══════════════════════════════════════════════════════════════════
 * LIGHT MODE — Desktop Account Panel Overrides
 * Ensures the floating account window is legible in light mode
 * ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    /* Main dropdown container */
    body:not(.dark-mode) .profile-dropdown {
        background: rgba(255, 255, 255, 0.97) !important;
        border: 1.5px solid #cbd5e1 !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
            0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    /* LEFT sidebar nav */
    body:not(.dark-mode) .profile-dropdown .profile-settings-panel {
        border-right: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
    }

    /* Section heading */
    body:not(.dark-mode) .profile-dropdown .settings-section.account-section .section-heading {
        color: #0f172a !important;
    }

    /* Menu items */
    body:not(.dark-mode) .profile-dropdown .settings-menu-item {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-menu-item i:first-child {
        color: #475569 !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-menu-item span {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-menu-item .item-arrow {
        color: #94a3b8 !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-menu-item:hover {
        background: rgba(15, 23, 42, 0.05) !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-menu-item:hover i:first-child,
    body:not(.dark-mode) .profile-dropdown .settings-menu-item:hover span {
        color: #0f172a !important;
    }

    /* RIGHT panel — full panels */
    body:not(.dark-mode) .profile-dropdown .settings-full-panel {
        background: #ffffff !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-header {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-header h2 {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-header .back-to-menu-btn {
        color: #475569 !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-header .back-to-menu-btn:hover {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-content {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .settings-full-panel .panel-description {
        color: #64748b !important;
    }

    /* Desktop Account Right Panel */
    body:not(.dark-mode) .desktop-account-right-panel {
        background: #ffffff !important;
    }

    body:not(.dark-mode) .desktop-account-right-header {
        border-bottom: 1px solid #e2e8f0 !important;
    }

    body:not(.dark-mode) .desktop-account-right-header h2 {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .desktop-account-right-content {
        color: #0f172a !important;
    }

    /* Profile card in account panel */
    body:not(.dark-mode) .profile-dropdown .profile-header-card {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
    }

    body:not(.dark-mode) .profile-dropdown .profile-header-card .profile-name {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .profile-header-card .profile-email {
        color: #64748b !important;
    }

    /* Account actions */
    body:not(.dark-mode) .profile-dropdown .account-actions button {
        color: #475569 !important;
        border-color: #e2e8f0 !important;
        background: #ffffff !important;
    }

    body:not(.dark-mode) .profile-dropdown .account-actions button:hover {
        color: #0f172a !important;
        border-color: #94a3b8 !important;
        background: #f8fafc !important;
    }

    /* Usage section inside panel */
    body:not(.dark-mode) .profile-dropdown .account-usage-section {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    }

    body:not(.dark-mode) .profile-dropdown .usage-title {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .usage-total-hero {
        color: #0f172a !important;
        text-shadow: none !important;
    }

    body:not(.dark-mode) .profile-dropdown .usage-lifetime-label {
        color: #64748b !important;
    }

    body:not(.dark-mode) .profile-dropdown .usage-breakdown {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
    }

    body:not(.dark-mode) .profile-dropdown .breakdown-label {
        color: #64748b !important;
    }

    body:not(.dark-mode) .profile-dropdown .breakdown-value {
        color: #0f172a !important;
    }

    /* Subscription section */
    body:not(.dark-mode) .profile-dropdown .account-subscription-card {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
    }

    body:not(.dark-mode) .profile-dropdown .subscription-title {
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown .subscription-subtitle {
        color: #64748b !important;
    }

    /* Theme panel */
    body:not(.dark-mode) .profile-dropdown #theme-panel .panel-content label,
    body:not(.dark-mode) .profile-dropdown #theme-panel .panel-content span {
        color: #0f172a !important;
    }

    /* About panel */
    body:not(.dark-mode) .profile-dropdown #about-panel .panel-content p {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown #about-panel .panel-content h3,
    body:not(.dark-mode) .profile-dropdown #about-panel .panel-content h4 {
        color: #0f172a !important;
    }

    /* Support panel */
    body:not(.dark-mode) .profile-dropdown #support-panel .panel-content p {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown #support-panel .panel-content a {
        color: #2563eb !important;
    }

    /* Know Me panel */
    body:not(.dark-mode) .profile-dropdown .know-me-item {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown .know-me-item-header strong {
        color: #0f172a !important;
    }

    /* Memory panel */
    body:not(.dark-mode) .profile-dropdown #memory-panel .panel-content {
        color: #334155 !important;
    }

    /* Profile panel form */
    body:not(.dark-mode) .profile-dropdown #profile-panel .form-group label {
        color: #334155 !important;
    }

    body:not(.dark-mode) .profile-dropdown #profile-panel .form-group input {
        background: #ffffff !important;
        border-color: #cbd5e1 !important;
        color: #0f172a !important;
    }

    body:not(.dark-mode) .profile-dropdown #profile-panel .form-group input::placeholder {
        color: #94a3b8 !important;
    }

    /* Files panel */
    body:not(.dark-mode) .profile-dropdown #files-panel .panel-content {
        color: #334155 !important;
    }
}
