@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Light Theme Colors */
    --bg-main: #f8fafc;
    --bg-panel: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #eff6ff;
    
    --ai-msg-bg: #f1f5f9;
    --ai-msg-text: #1e293b;
    --user-msg-bg: var(--accent-primary);
    --user-msg-text: #ffffff;
    
    --status-online: #10b981;
    --status-listening: #8b5cf6;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.dark-theme {
    --bg-main: #020617;
    --bg-panel: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    
    --accent-primary: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.1);
    
    --ai-msg-bg: #1e293b;
    --ai-msg-text: #f1f5f9;
    --user-msg-bg: var(--accent-primary);
    --user-msg-text: #ffffff;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

/* 3-Column Layout */
.app-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    height: 100vh;
    width: 100%;
}

@media (max-width: 1024px) {
    .app-wrapper {
        grid-template-columns: 80px 1fr 250px;
    }
    .features-menu .menu-item {
        justify-content: center;
    }
    .features-menu .menu-item i {
        margin: 0;
    }
    /* Hide text nodes */
    .features-menu .menu-item {
        font-size: 0;
    }
    .features-menu .menu-item i {
        font-size: 1.2rem;
    }
    .sidebar-header h2 {
        display: none;
    }
}

@media (max-width: 768px) {
    body { overflow: hidden; }

    .app-wrapper {
        grid-template-columns: 1fr;
        height: 100dvh; /* dynamic viewport height for mobile browsers */
    }
    .left-sidebar, .right-sidebar { display: none; }

    /* Center panel fills all space minus bottom nav */
    .center-panel {
        height: 100dvh;
        padding-bottom: 70px; /* room for bottom nav */
    }

    /* Compact header */
    .app-header { padding: 14px 16px; }
    .header-text h1 { font-size: 1.1rem; }
    .header-text p  { font-size: 0.78rem; }

    /* Suggestions scrollable */
    .quick-suggestions { padding: 10px 16px; gap: 8px; }
    .suggestion-btn    { padding: 7px 14px; font-size: 0.8rem; }

    /* Chat area */
    .chat-container { padding: 16px; }
    .chat-msg { max-width: 92%; }

    /* Input bar */
    .input-section { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .chat-input    { font-size: 1rem; } /* 16px minimum prevents iOS zoom */

    /* Full-screen modals on mobile */
    .modal-content, .modal-large {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
    }
    .modal-overlay {
        align-items: flex-end;
    }
    .modal-body { max-height: 65dvh; }
}

/* ── Bottom Navigation Bar ── */
.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 500;
        background: var(--bg-panel);
        border-top: 1px solid var(--border-color);
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
}

.mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    min-height: 52px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-btn i   { font-size: 1.2rem; }
.mobile-nav-btn.active { color: var(--accent-primary); }
.mobile-nav-btn:active { transform: scale(0.93); }

/* Centre mic button — elevated floating style */
.mobile-nav-mic {
    position: relative;
    top: -18px;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    color: white !important;
    box-shadow: 0 4px 18px rgba(59,130,246,0.5);
    font-size: 0;
    padding: 0;
    min-height: unset;
    gap: 0;
}
.mobile-nav-mic i { font-size: 1.4rem; color: white; }
.mobile-nav-mic.listening {
    animation: pulseMic 1.5s infinite;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* ── Slide-up Mobile Drawer ── */
.mobile-drawer-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 700;
    background: var(--bg-panel);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .mobile-drawer-overlay { display: block; pointer-events: none; }
    .mobile-drawer         { display: block; }
}

.mobile-drawer-overlay.open { opacity: 1; pointer-events: all; }
.mobile-drawer.open          { transform: translateY(0); }

.drawer-handle {
    width: 40px; height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 20px;
}
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.drawer-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 8px;
    color: var(--text-primary);
    font-size: 0.75rem; font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 72px;
}
.drawer-item i { font-size: 1.3rem; color: var(--accent-primary); }
.drawer-item:active {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    transform: scale(0.95);
}


/* Base Panel Styles */
.left-sidebar, .center-panel, .right-sidebar {
    background-color: var(--bg-panel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-sidebar {
    border-right: 1px solid var(--border-color);
}

.right-sidebar {
    border-left: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

/* === LEFT SIDEBAR === */
.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.features-menu {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-item i {
    width: 24px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.menu-item:hover {
    background-color: var(--bg-secondary);
}

.menu-item.active {
    background-color: var(--accent-light);
    color: var(--accent-primary);
}

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

/* === CENTER PANEL === */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.header-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--status-listening));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.icon-btn {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background-color: var(--accent-light);
    color: var(--accent-primary);
}

.quick-suggestions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-btn {
    white-space: nowrap;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-light);
    color: var(--accent-primary);
}

/* Chat Area */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user { align-self: flex-end; }
.chat-msg.ai { align-self: flex-start; }

.msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.chat-msg.user .msg-bubble {
    background-color: var(--user-msg-bg);
    color: var(--user-msg-text);
    border-bottom-right-radius: 4px;
}

.chat-msg.ai .msg-bubble {
    background-color: var(--ai-msg-bg);
    color: var(--ai-msg-text);
    border-bottom-left-radius: 4px;
}

.msg-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
}
.chat-msg.user .msg-time { align-self: flex-end; }
.chat-msg.ai .msg-time { align-self: flex-start; }

/* Input Section */
.input-section {
    padding: 20px 24px;
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 8px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.mic-btn.listening {
    color: var(--status-listening);
    background-color: rgba(139, 92, 246, 0.1);
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.send-btn {
    color: var(--accent-primary);
}

/* === RIGHT SIDEBAR === */
.right-sidebar {
    padding: 24px;
    overflow-y: auto;
}

.status-card {
    background-color: var(--bg-panel);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.avatar-container {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--accent-primary);
}

.avatar-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.avatar-container.listening .avatar-icon {
    animation: pulse 1s infinite alternate;
    color: var(--status-listening);
}

@keyframes pulse {
    from { transform: scale(0.95); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-panel);
}

.status-dot.online { background-color: var(--status-online); }
.status-dot.listening { background-color: var(--status-listening); }
.status-dot.processing { background-color: var(--accent-primary); }

.status-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.right-section h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.action-btn:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Memory Panel */
.memory-content {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    margin: auto;
}

.memory-item {
    font-size: 0.85rem;
    padding: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    border-left: 3px solid var(--accent-primary);
}

/* System Controls */
.controls-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.control-btn {
    flex: 1;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: var(--text-secondary);
    color: var(--bg-panel);
    border-color: var(--text-secondary);
}

.control-btn[data-action="shutdown"]:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Action Embed for apps */
.action-embed {
    margin-top: 8px;
    padding: 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dark-theme .action-embed {
    background-color: rgba(255,255,255,0.05);
}

.action-embed:hover {
    background-color: var(--accent-light);
}

.embed-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.details h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1; pointer-events: all;
}
.modal-content {
    background: var(--bg-panel);
    width: 90%; max-width: 400px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.modal-header h2 {
    font-size: 1.1rem;
}
.close-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.2rem; cursor: pointer;
}
.close-btn:hover {
    color: var(--text-primary);
}
.apps-list-container {
    max-height: 200px; overflow-y: auto; margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.app-edit-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-secondary); padding: 8px 12px; border-radius: 8px;
}
.app-edit-item-info {
    display: flex; flex-direction: column;
}
.app-edit-item-info span {
    font-size: 0.85rem; font-weight: 500;
}
.app-edit-item-info small {
    font-size: 0.75rem; color: var(--text-secondary);
}
.app-edit-item button {
    background: #ef4444; color: white; border: none; border-radius: 4px;
    padding: 6px 10px; cursor: pointer; font-size: 0.8rem;
}
.app-edit-item button:hover {
    background: #dc2626;
}
.add-app-form {
    display: flex; flex-direction: column; gap: 8px;
    border-top: 1px solid var(--border-color); padding-top: 16px;
}
.add-app-form h3 {
    font-size: 0.9rem; margin-bottom: 4px;
}
.add-app-form input {
    padding: 8px; border-radius: 4px; border: 1px solid var(--border-color);
    background: var(--bg-main); color: var(--text-primary); outline: none;
}
.add-app-form input:focus {
    border-color: var(--accent-primary);
}
.add-app-form button {
    background: var(--accent-primary); color: white; border: none; border-radius: 4px;
    padding: 10px; cursor: pointer; font-weight: 500; margin-top: 4px;
}
.add-app-form button:hover {
    background: var(--accent-hover);
}

/* =============================================
   🌊  AUDIO-REACTIVE WAVEFORM
   ============================================= */

.waveform-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin-bottom 0.4s ease;
}

/* Expanded state — when mic is active */
.waveform-container.active {
    height: 72px;
    opacity: 1;
    margin-bottom: 12px;
}

#waveform-canvas {
    width: 100%;
    height: 56px;
    display: block;
    /* subtle blue glow */
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
    border-radius: 8px;
}

.waveform-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
    pointer-events: none;
}

.waveform-container.active .waveform-label {
    opacity: 1;
    transform: translateY(0);
}

/* Listening label colour */
.waveform-container.listening .waveform-label {
    color: var(--status-listening);
}

/* Dark-mode tint for canvas glow */
.dark-theme #waveform-canvas {
    filter: drop-shadow(0 0 8px rgba(99, 179, 237, 0.55));
}

/* =============================================
   📝  NOTES · REMINDERS · TOAST
   ============================================= */

.modal-large { max-width: 520px; }
.modal-body  { max-height: 60vh; overflow-y: auto; }

/* ── Notes list ── */
.notes-list-container,
.reminders-list-container {
    max-height: 200px; overflow-y: auto;
    margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 8px;
}

.note-item, .reminder-item {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: 8px;
    background: var(--bg-secondary);
}
.note-item   { border-left: 3px solid var(--accent-primary); }
.reminder-item { border-left: 3px solid #f59e0b; }

.note-item-content, .reminder-item-content { flex: 1; }
.note-item-content p, .reminder-item-content p {
    font-size: 0.88rem; color: var(--text-primary);
    margin-bottom: 3px; line-height: 1.4;
}
.note-item-content small, .reminder-item-content small {
    font-size: 0.72rem; color: var(--text-secondary);
}
.note-item button, .reminder-item button {
    background: #ef4444; color: white;
    border: none; border-radius: 4px;
    padding: 5px 9px; cursor: pointer; font-size: 0.75rem; flex-shrink: 0;
}
.note-item button:hover, .reminder-item button:hover { background: #dc2626; }

/* ── Shared form styles ── */
.add-note-form, .add-reminder-form {
    display: flex; flex-direction: column; gap: 8px;
    border-top: 1px solid var(--border-color); padding-top: 16px;
}
.add-note-form h3, .add-reminder-form h3 {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 2px;
}
.add-note-form textarea {
    padding: 10px; border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main); color: var(--text-primary);
    outline: none; resize: vertical; min-height: 76px;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.add-reminder-form input {
    padding: 10px; border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main); color: var(--text-primary);
    outline: none; font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.add-note-form textarea:focus,
.add-reminder-form input:focus { border-color: var(--accent-primary); }
.add-note-form button, .add-reminder-form button {
    background: var(--accent-primary); color: white; border: none;
    border-radius: 8px; padding: 10px; cursor: pointer;
    font-weight: 500; font-size: 0.9rem; transition: background 0.2s;
}
.add-note-form button:hover,
.add-reminder-form button:hover { background: var(--accent-hover); }

/* ── Toast ── */
.reminder-toast {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    background: var(--bg-panel);
    border: 1px solid #f59e0b; border-left: 4px solid #f59e0b;
    border-radius: 12px; padding: 16px 18px;
    display: flex; align-items: flex-start; gap: 14px;
    max-width: 300px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateX(calc(100% + 40px)); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}
.reminder-toast.active { transform: translateX(0); opacity: 1; }
.toast-icon { font-size: 1.4rem; color: #f59e0b; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-content strong { display: block; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 3px; }
.toast-content p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.4; }
.toast-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.toast-close:hover { color: var(--text-primary); }

/* ── Shutdown overlay ── */
.shutdown-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: #000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s ease;
}
.shutdown-overlay.active { opacity: 1; pointer-events: all; }
.shutdown-overlay i { font-size: 2.5rem; color: #ef4444; }
.shutdown-overlay p { color: #94a3b8; font-size: 0.95rem; letter-spacing: 0.08em; }

/* Streaming cursor blink */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.msg-bubble.streaming { position: relative; }
.msg-bubble.streaming::after {
    content: '▋';
    display: inline-block;
    animation: blink 0.7s step-start infinite;
    color: var(--accent-primary);
    margin-left: 1px;
}
