/* SideWithMe - ChatGPT Clone Styles (Light Theme - Jan 2025) */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Backgrounds - Light Theme (exact ChatGPT Jan 2025) */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #ececec;
    --bg-hover: rgba(0, 0, 0, 0.05);
    --bg-sidebar: #f9f9f9;
    --bg-code: #1e1e1e;

    /* Text */
    --text-primary: #0d0d0d;
    --text-secondary: #5d5d5d;
    --text-tertiary: #8f8f8f;
    --text-placeholder: #8f8f8f;

    /* Borders */
    --border-light: rgba(13, 13, 13, 0.05);
    --border-medium: rgba(13, 13, 13, 0.1);
    --border-heavy: rgba(13, 13, 13, 0.15);

    /* Accent colors */
    --accent-blue: #2563eb;
    --accent-green: #10a37f;
    --accent-green-hover: #1a7f64;

    /* Functional */
    --error: #ef4444;
    --success: #10a37f;

    /* Sizing */
    --sidebar-width: 260px;
    --header-height: 52px;
    --max-content-width: 768px;
    --input-radius: 28px;
}

/* Base Styles */
html, body {
    min-height: 100%;
}

body {
    font-family: ui-sans-serif, -apple-system, "system-ui", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Keep chat shell locked to viewport while allowing other pages to scroll normally */
body.chat-page {
    height: 100%;
    overflow: hidden;
}

/* Layout */
#app {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
    border-right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: var(--header-height);
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-logo {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-hover);
}

.sidebar-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px;
}

.sidebar-nav-section {
    padding: 4px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.sidebar-nav-item:hover {
    background: var(--bg-hover);
}

.sidebar-nav-item.active {
    background: var(--bg-tertiary);
}

.sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.sidebar-nav-item--external {
    display: flex;
    align-items: center;
}

.sidebar-nav-item .external-icon {
    width: 12px;
    height: 12px;
    margin-left: auto;
    color: var(--text-tertiary);
}

.sidebar-nav-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav-item .shortcut {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.sidebar-nav-item .shortcut kbd {
    font-family: inherit;
    font-size: 10px;
}

/* Section headers */
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
}

.sidebar-section-header:hover {
    color: var(--text-secondary);
}

.sidebar-section-header svg {
    width: 14px;
    height: 14px;
}

/* Conversation list */
.conversation-list {
    padding: 4px 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    text-decoration: none;
}

.conversation-item:hover {
    background: var(--bg-hover);
}

.conversation-item.active {
    background: var(--bg-tertiary);
}

.conversation-item-title {
    flex: 1;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item-options {
    display: none;
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
}

.conversation-item:hover .conversation-item-options {
    display: flex;
}

.conversation-item-options:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.conversation-item-options svg {
    width: 16px;
    height: 16px;
}

/* Sidebar footer / User profile */
.sidebar-footer {
    padding: 8px;
    margin-top: auto;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-menu:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.user-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* GPT item icons */
.gpt-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gpt-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.gpt-icon--purple {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.gpt-icon--blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gpt-icon--green {
    background: linear-gradient(135deg, #10b981, #34d399);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    flex-shrink: 0;
}

/* Model selector button */
.model-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
}

.model-selector:hover {
    background: var(--bg-hover);
}

.model-selector svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.model-name {
    color: var(--text-primary);
}

.model-version {
    color: var(--text-secondary);
}

.header-spacer {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--text-primary);
    border: none;
    border-radius: 9999px;
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.header-btn:hover {
    opacity: 0.85;
}

.header-btn-secondary {
    background: transparent;
    color: var(--text-primary);
}

.header-btn-secondary:hover {
    background: var(--bg-hover);
}

/* Icon Button */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 9999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.icon-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.icon-btn:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn.listening {
    color: var(--error);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chat Area */
.chat-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state h1 {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0;
}

.empty-state h1 .user-greeting {
    cursor: pointer;
}

.empty-state h1 .user-greeting:hover {
    text-decoration: underline;
}

/* Messages */
.messages {
    max-width: var(--max-content-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.message {
    padding: 24px 0;
    animation: messageSlideIn 0.2s ease-out;
}

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

/* Message header with "You said:" / "ChatGPT said:" */
.message-header {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.message-content {
    min-width: 0;
}

.message-content p {
    font-size: 16px;
    line-height: 28px;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Message actions */
.message-actions {
    display: flex;
    gap: 2px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.15s;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.message-actions button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.message-actions button svg {
    width: 16px;
    height: 16px;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Input Area */
.input-area {
    padding: 16px 16px 12px;
    background: var(--bg-primary);
}

.input-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.input-container {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 0;
    border-radius: var(--input-radius);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 4px 0px, rgba(0, 0, 0, 0.62) 0px 0px 1px 0px;
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.input-container:focus-within {
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 8px 0px, rgba(0, 0, 0, 0.62) 0px 0px 1px 0px;
}

.input-main {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px 8px;
    gap: 8px;
}

.input-container textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    max-height: 200px;
    padding: 0;
    margin-top: 2px;
}

.input-container textarea::placeholder {
    color: var(--text-placeholder);
}

.input-container textarea:focus {
    outline: none;
}

.input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 12px;
}

.input-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add files button (+) */
.add-files-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.add-files-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.add-files-btn svg {
    width: 20px;
    height: 20px;
}

/* Thinking mode toggle */
.thinking-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    background: transparent;
    border: none;
    border-radius: 9999px;
    color: #0d7377;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
}

.thinking-toggle:hover {
    background: rgba(13, 115, 119, 0.08);
}

.thinking-toggle svg {
    width: 18px;
    height: 18px;
    color: #0d7377;
}

.thinking-toggle .chevron {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    color: #0d7377;
}

/* Microphone button */
.mic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mic-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mic-btn svg {
    width: 18px;
    height: 18px;
}

/* Send button */
.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    cursor: pointer;
    transition: opacity 0.15s;
}

.send-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.send-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

/* Disclaimer */
.disclaimer {
    max-width: var(--max-content-width);
    margin: 8px auto 0;
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

.disclaimer a {
    color: var(--text-tertiary);
    text-decoration: underline;
}

.disclaimer a:hover {
    color: var(--text-secondary);
}

/* Tap Indicator */
.tap-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    animation: tapFade 0.8s ease-out forwards;
}

.tap-indicator--validate {
    background: rgba(16, 163, 127, 0.95);
    color: white;
}

.tap-indicator--refute {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

@keyframes tapFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.toast {
    padding: 12px 24px;
    background: var(--text-primary);
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 14px;
    animation: toastSlideIn 0.3s ease-out;
}

.toast--error {
    background: var(--error);
}

.toast--success {
    background: var(--success);
}

.toast--fade {
    animation: toastFade 0.3s ease-out forwards;
}

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

@keyframes toastFade {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-error {
    font-size: 14px;
    color: var(--error);
    margin-top: 4px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--text-primary);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--text-primary);
    border: none;
    border-radius: 9999px;
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.85;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-link {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--text-primary);
    text-decoration: underline;
}

.auth-link a:hover {
    text-decoration: none;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.landing-logo svg {
    width: 28px;
    height: 28px;
    color: var(--accent-green);
}

.landing-nav-links {
    display: flex;
    gap: 12px;
}

.landing-nav-links a {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 9999px;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.landing-nav-links a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.landing-nav-links a.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.landing-nav-links a.primary:hover {
    opacity: 0.85;
}

.landing-hero {
    text-align: center;
    padding: 80px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.15;
}

.landing-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.landing-hero .btn-primary {
    display: inline-block;
    width: auto;
    padding: 14px 28px;
    font-size: 16px;
    text-decoration: none;
}

.landing-section {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.landing-step {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.landing-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(16, 163, 127, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-green);
}

.landing-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.landing-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.landing-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.landing-feature svg {
    width: 22px;
    height: 22px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.landing-feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

.landing-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-light);
    margin-top: 64px;
}

.landing-footer p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Mobile Styles */
.mobile-only {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .mobile-only {
        display: flex;
    }

    .landing-hero h1 {
        font-size: 32px;
    }

    .landing-hero p {
        font-size: 16px;
    }

    .landing-nav {
        padding: 12px 16px;
    }

    .landing-section {
        padding: 40px 16px;
    }

    .action-btn span {
        display: none;
    }

    .action-btn {
        padding: 8px;
    }

    .voice-btn span {
        display: none;
    }

    .voice-btn {
        padding: 8px;
    }
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 6px;
    z-index: 50;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item.active {
    background: var(--bg-tertiary);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

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

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.settings-item-label {
    font-size: 14px;
    color: var(--text-primary);
}

.btn-danger {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: 9999px;
    color: var(--error);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
    background: var(--text-primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Hidden */
[hidden] {
    display: none !important;
}
