/* ============================================
   ChatGenzAI - Main Styles
   File: css/style.css
   ============================================ */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* ============================================
   App Layout
   ============================================ */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 0;
    border-right: none;
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    padding: 6px;
    border-radius: 8px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-actions {
    padding: 12px;
}

.btn-new-chat {
    width: 100%;
    padding: 12px 16px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-new-chat:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-new-chat:active {
    transform: translateY(0);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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

.conversation-item.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.conversation-item .conv-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.conversation-item .conv-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item .conv-actions {
    display: none;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 2px;
    border-radius: 4px;
}

.conversation-item:hover .conv-actions {
    display: flex;
}

.conversation-item .conv-action-btn {
    padding: 4px;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.15s;
}

.conversation-item .conv-action-btn:hover {
    background: var(--bg-active);
    color: var(--text-primary);
}

.conversation-item .conv-action-btn.delete:hover {
    color: var(--error);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background 0.15s;
    font-size: 14px;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   Login Button & User Profile
   ============================================ */
.btn-login {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: all 0.15s;
}

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

.btn-login svg {
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--bg-tertiary);
}

.user-profile .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

.user-profile .user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

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

.user-profile .user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    padding: 6px;
    border-radius: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.15s;
}

.btn-logout:hover {
    background: var(--error-light);
    color: var(--error);
}

/* Login required overlay */
.login-required {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.login-required-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.login-required-card .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.login-required-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.login-required-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.login-required-card .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    background: white;
    color: #1F2937;
    border: 1px solid #D1D5DB;
}

.login-required-card .btn-login:hover {
    background: #F9FAFB;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Landing Page (wajib login - seperti ChatGPT welcome)
   ============================================ */
.landing-page {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.landing-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F0F14 0%, #18181B 100%);
}

.landing-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    animation: blobFloat 15s ease-in-out infinite;
}

.landing-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.landing-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #EC4899 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.landing-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    animation: landingFadeIn 0.6s ease;
}

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

.landing-logo {
    margin-bottom: 24px;
    animation: pulse 3s ease-in-out infinite;
}

.landing-title {
    font-size: 42px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.landing-tagline {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.landing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.landing-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: white;
    color: #1F2937;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google-login:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-google-login:active {
    transform: translateY(0);
}

.landing-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.landing-footer {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.landing-footer strong {
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 480px) {
    .landing-title { font-size: 32px; }
    .landing-tagline { font-size: 15px; }
    .landing-features {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .btn-google-login {
        width: 100%;
        justify-content: center;
    }
}

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

.main-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    z-index: 10;
}

.btn-menu {
    padding: 8px;
    border-radius: 8px;
    color: var(--text-tertiary);
    display: none;
    align-items: center;
    transition: background 0.15s;
}

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

.model-selector {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.model-select {
    width: 100%;
    padding: 8px 36px 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: all 0.15s;
}

.model-select:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.model-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

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

.btn-icon {
    padding: 8px;
    border-radius: 8px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
}

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

/* ============================================
   Input Area
   ============================================ */
.input-area {
    padding: 16px 20px 12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 8px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

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

.btn-attach, .btn-send, .btn-stop {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.btn-attach {
    color: var(--text-tertiary);
}

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

.btn-attach:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-send {
    background: var(--accent-gradient);
    color: white;
}

.btn-send:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-active);
    color: var(--text-muted);
}

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

.btn-stop:hover {
    opacity: 0.9;
}

.message-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 4px;
    resize: none;
    outline: none;
    font-size: 15px;
    line-height: 1.5;
    max-height: 200px;
    color: var(--text-primary);
}

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

.input-footer {
    max-width: 800px;
    margin: 8px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.char-counter {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   Welcome Screen
   ============================================ */
.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.welcome-logo {
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-width: 720px;
    width: 100%;
}

.suggestion-card {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.suggestion-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.suggestion-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-elevated);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    padding: 6px;
    border-radius: 8px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

input[type="range"].form-control {
    padding: 0;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"].form-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.settings-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid transparent;
    margin-left: 8px;
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Sidebar Overlay (Mobile)
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    backdrop-filter: blur(2px);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    .sidebar.collapsed {
        width: 280px;
        border-right: 1px solid var(--border-color);
    }
    
    .btn-menu {
        display: flex;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        padding: 10px 14px;
    }
    
    .input-area {
        padding: 12px 14px 8px;
    }
    
    .input-wrapper {
        border-radius: 22px;
    }
    
    .modal {
        max-width: calc(100vw - 32px);
    }
}
