/* ZyvenMail Luxury Design System - Gmail / Superhuman Aesthetic */
:root {
    --bg-base: #07080c;
    --bg-surface: #0e111a;
    --bg-surface-elevated: #141724;
    --bg-card: #10131d;
    --bg-card-hover: #171b2a;
    --border: #22273d;
    --border-subtle: #191c2c;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-hover: #4f46e5;
}

[data-theme="cream_light"] {
    --bg-base: #fbfbf9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f4f3ef;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f0eb;
    --border: #e4e2d8;
    --border-subtle: #edebe4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --accent-hover: #4338ca;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Gmail Style Smart Category Tabs */
.zm-smart-tab {
    position: relative;
    padding: 0.65rem 1.25rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}
.zm-smart-tab:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}
.zm-smart-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* GTD Triage Chips */
.zm-triage-chip {
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.15s ease;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
}
.zm-triage-chip:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.zm-triage-chip.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Settings Modal Tabs */
.zm-settings-tab {
    display: flex;
    align-items: center;
    space-x: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.825rem;
    font-weight: 500;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    text-align: left;
}
.zm-settings-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-elevated);
}
.zm-settings-tab.active {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Recipient Bubble Chips */
.zm-chip {
    animation: zm-chip-in 0.15s ease-out;
}
@keyframes zm-chip-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Rich Editor Toolbar Styling */
.zm-rich-toolbar select,
.zm-rich-toolbar button {
    transition: all 0.15s ease;
}
.zm-rich-toolbar button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Dropdown Flyout */
.zm-account-flyout {
    animation: zm-fade-down 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zm-fade-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Voice Dictation Pulsing Glow */
@keyframes zm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.zm-recording {
    animation: zm-pulse 1.5s infinite;
}

/* Dark mode white email inverter */
.zm-inverted {
    filter: invert(0.92) hue-rotate(180deg);
}
