/* JuniorChat AI — Atjeenotje Style */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&display=swap');

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

:root {
    --sky: #87CEEB;
    --sky-dark: #5BAACD;
    --navy: #1E2D3B;
    --navy-hover: #2a3f52;
    --white: #ffffff;
    --card-bg: #ffffff;
    --green: #27ae60;
    --green-hover: #218838;
    --blue: #4361ee;
    --blue-hover: #3a52c4;
    --orange: #fca311;
    --red: #e74c3c;
    --purple: #9b5de5;
    --teal: #2ec4b6;
    --yellow: #ffc43d;
    --text: #1E2D3B;
    --text-light: #555;
    --text-muted: #888;
    --border: #1E2D3B;
    --border-light: #e0e0e0;
    --sidebar-width: 260px;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 4px 4px 0px #1E2D3B;
    --shadow-sm: 3px 3px 0px #1E2D3B;
    --shadow-hover: 2px 2px 0px #1E2D3B;
    --font: 'Baloo 2', cursive, sans-serif;
}

html, body {
    height: 100%;
    font-family: var(--font);
    color: var(--text);
    background: var(--sky);
    overflow: hidden;
}

/* --- Floating Background --- */
.background-chars {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateX(20px) rotate(180deg); opacity: 0.5; }
    100% { transform: translateY(-120vh) translateX(-20px) rotate(360deg); opacity: 0; }
}

.floating-char {
    position: absolute;
    bottom: -100px;
    animation: floatUp 12s infinite linear;
    font-weight: 800;
    user-select: none;
    font-family: var(--font);
}

.floating-char:nth-child(6n+1) { color: rgba(255, 107, 107, 0.5); }
.floating-char:nth-child(6n+2) { color: rgba(252, 163, 17, 0.5); }
.floating-char:nth-child(6n+3) { color: rgba(46, 196, 182, 0.5); }
.floating-char:nth-child(6n+4) { color: rgba(67, 97, 238, 0.5); }
.floating-char:nth-child(6n+5) { color: rgba(255, 196, 61, 0.5); }
.floating-char:nth-child(6n+6) { color: rgba(155, 93, 229, 0.5); }

.floating-char:nth-child(1) { left: 5%; font-size: 3em; animation-duration: 10s; }
.floating-char:nth-child(2) { left: 15%; font-size: 2em; animation-duration: 8s; animation-delay: 1s; }
.floating-char:nth-child(3) { left: 25%; font-size: 4em; animation-duration: 13s; animation-delay: 2s; }
.floating-char:nth-child(4) { left: 38%; font-size: 2.5em; animation-duration: 11s; }
.floating-char:nth-child(5) { left: 50%; font-size: 1.5em; animation-duration: 7s; animation-delay: 3s; }
.floating-char:nth-child(6) { left: 62%; font-size: 5em; animation-duration: 14s; animation-delay: 1s; }
.floating-char:nth-child(7) { left: 72%; font-size: 3em; animation-duration: 9s; animation-delay: 4s; }
.floating-char:nth-child(8) { left: 85%; font-size: 2em; animation-duration: 6s; animation-delay: 2s; }
.floating-char:nth-child(9) { left: 92%; font-size: 3.5em; animation-duration: 10s; animation-delay: 5s; }
.floating-char:nth-child(10) { left: 8%; font-size: 6em; animation-duration: 15s; animation-delay: 3s; }

/* --- Layout --- */
.app-container {
    display: flex;
    height: 100dvh;
    height: 100vh;
    position: relative;
    z-index: 1;
}

@supports (height: 100dvh) {
    .app-container { height: 100dvh; }
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--navy);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 100;
    border-right: 3px solid var(--border);
}

.sidebar-header {
    padding: 14px;
    border-bottom: 2px dashed var(--border-light);
}

.new-chat-btn {
    width: 100%;
    padding: 10px 14px;
    background: var(--green);
    color: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.15s;
    box-shadow: 2px 2px 0px var(--border);
}

.new-chat-btn:hover {
    background: var(--green-hover);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.conversation-list::-webkit-scrollbar { width: 4px; }
.conversation-list::-webkit-scrollbar-thumb { background: rgba(30,45,59,0.2); border-radius: 2px; }

.conversation-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.conversation-item:hover { background: rgba(67,97,238,0.08); }
.conversation-item.active { background: rgba(67,97,238,0.12); border-left: 3px solid var(--orange); }
.conversation-item .title { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.conversation-item .actions { display: none; gap: 4px; flex-shrink: 0; }
.conversation-item:hover .actions { display: flex; }
.conversation-item .actions button {
    background: none; border: none; color: var(--navy);
    cursor: pointer; padding: 2px 4px; font-size: 12px; opacity: 0.5;
}
.conversation-item .actions button:hover { opacity: 1; }

.sidebar-footer {
    padding: 12px 14px;
    border-top: 2px dashed var(--border-light);
}

.sidebar-footer a {
    display: flex; align-items: center; gap: 8px;
    color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 600;
    padding: 6px 8px; border-radius: 6px; transition: background 0.15s;
}
.sidebar-footer a:hover { background: rgba(67,97,238,0.08); }
.sidebar-footer a.cta-btn { display: block !important; background: #4361ee !important; color: #fff !important; text-align: center !important; padding: 12px 16px !important; border-radius: 10px !important; font-weight: 700 !important; font-size: 13px !important; margin-bottom: 10px !important; line-height: 1.3 !important; border: 2px solid #1E2D3B; box-shadow: 3px 3px 0px #1E2D3B; }
.sidebar-footer a.cta-btn:hover { background: #3451de !important; transform: translate(-1px, -1px); box-shadow: 4px 4px 0px #1E2D3B; }

/* --- Main Chat Area --- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: transparent;
}

.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 101;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
    font-weight: 700;
    transition: all 0.15s;
}

.hamburger:hover {
    transform: translate(1px, 1px);
    box-shadow: var(--shadow-hover);
}

/* --- Messages --- */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.messages-container::-webkit-scrollbar { width: 6px; }
.messages-container::-webkit-scrollbar-thumb { background: rgba(30,45,59,0.3); border-radius: 3px; }

.messages-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* --- Welcome Screen --- */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 30px;
}

.welcome-screen h1 {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 4px;
}

.welcome-screen p {
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 24px;
}

.welcome-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 600px;
    width: 100%;
}

.welcome-tip {
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.welcome-tip:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue);
}

.welcome-tip:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--border);
}

.welcome-tip .tip-title {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 4px;
    color: var(--navy);
}

.welcome-tip .tip-desc {
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 500;
}

/* Tip colors */
.welcome-tip:nth-child(1) { border-color: var(--green); }
.welcome-tip:nth-child(1):hover { background: #f0faf4; }
.welcome-tip:nth-child(2) { border-color: var(--orange); }
.welcome-tip:nth-child(2):hover { background: #fff9ef; }
.welcome-tip:nth-child(3) { border-color: var(--purple); }
.welcome-tip:nth-child(3):hover { background: #f8f0ff; }

/* --- Message Bubbles --- */
.message {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.message.user { flex-direction: row-reverse; }

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.message.user .message-avatar {
    background: var(--orange);
    color: var(--navy);
}

.message.assistant .message-avatar {
    background: var(--teal);
    color: #fff;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message.user .message-content {
    background: var(--white);
    border: 2px solid var(--border);
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message.assistant .message-content {
    background: var(--white);
    border: 2px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message-content p { margin-bottom: 8px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content code {
    background: rgba(67, 97, 238, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: var(--blue);
}

.message-content pre {
    background: var(--navy);
    color: #d4d4d4;
    padding: 14px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.5;
    border: 2px solid var(--border);
}

.message-content pre code { background: none; padding: 0; color: inherit; }
.message-content ul, .message-content ol { padding-left: 20px; margin-bottom: 8px; }
.message-content li { margin-bottom: 4px; }
.message-content a { color: var(--blue); text-decoration: underline; }
.message-content h1, .message-content h2, .message-content h3 { margin: 12px 0 6px; font-weight: 700; }
.message-content h1 { font-size: 20px; }
.message-content h2 { font-size: 17px; }
.message-content h3 { font-size: 15px; }

.message-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(67, 97, 238, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Typing Indicator --- */
.typing-indicator {
    display: inline-flex;
    gap: 5px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* --- Input Area --- */
.input-area {
    padding: 12px 20px 20px;
    background: transparent;
}

.input-wrapper {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}

.input-row:focus-within {
    border-color: var(--blue);
    box-shadow: 4px 4px 0px var(--blue);
}

.input-row textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    max-height: 200px;
    min-height: 24px;
    padding: 4px 0;
    background: transparent;
    color: var(--text);
}

.input-row textarea::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.input-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--blue);
}

.btn-send {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px var(--border);
}

.btn-send:hover {
    background: var(--green-hover);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

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

.btn-stop {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px var(--border);
}

.btn-stop:hover {
    background: #c0392b;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

/* --- File Previews --- */
.file-preview-container {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.file-preview-container.show { display: flex; }

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    animation: popIn 0.2s ease;
}

.file-preview-item.loading { opacity: 0.6; border-style: dashed; }
.file-preview-item.loading .file-preview-name { font-style: italic; color: var(--text-muted); }
.file-preview-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-item .remove-file {
    background: none; border: none; cursor: pointer;
    color: var(--red); font-size: 14px; padding: 0 2px; flex-shrink: 0;
}

/* --- Privacy Review Panel --- */
.privacy-panel {
    display: none;
    max-width: 720px;
    margin: 0 auto 12px;
    background: #FFF8E1;
    border: 3px solid var(--orange);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    animation: popIn 0.25s ease;
}

.privacy-panel.show { display: block; }

.privacy-panel h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #E65100;
}

.privacy-violations { margin-bottom: 12px; }

.privacy-violation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

.violation-type {
    background: var(--orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.violation-original { text-decoration: line-through; color: var(--red); }
.violation-arrow { color: var(--text-muted); }
.violation-replacement { color: var(--green); font-weight: 700; }

.privacy-clean-text {
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    border: 2px dashed var(--border-light);
}

.privacy-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.privacy-actions button {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.15s;
    box-shadow: 2px 2px 0px var(--border);
}

.privacy-actions button:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

.btn-approve { background: var(--green); color: #fff; }
.btn-approve:hover { background: var(--green-hover); }
.btn-edit { background: var(--white); }
.btn-edit:hover { background: #f5f5f5; }
.btn-cancel-privacy { background: none; color: var(--text-light); border-color: var(--text-muted) !important; box-shadow: none !important; }

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    border: 2px solid var(--border);
}

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

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--blue); }

.toast.file-privacy-notice {
    background: var(--white);
    color: var(--text);
    border-color: var(--orange);
    max-width: 450px;
    width: 450px;
    text-align: left;
    padding: 14px 16px;
}

.fpn-header { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: #E65100; }
.fpn-desc { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.fpn-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.fpn-row { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; font-weight: 600; }
.fpn-type { background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.fpn-original { text-decoration: line-through; color: var(--red); }
.fpn-replacement { color: var(--green); font-weight: 700; }

/* --- Rename Input --- */
.rename-input {
    background: var(--white);
    border: 2px solid var(--blue);
    border-radius: 4px;
    color: var(--navy);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 6px;
    width: 100%;
    outline: none;
}

/* --- Generated Images --- */
.message-image {
    max-width: 100%;
    max-height: 512px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
    display: block;
    margin-top: 4px;
    border: 2px solid var(--border);
}

.message-image:hover { opacity: 0.9; }

.image-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.image-fullscreen-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--white);
}

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

/* --- Loading Spinner --- */
.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* --- Privacy Consent Modal --- */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.privacy-modal {
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 8px 0px var(--border);
    animation: modalBounce 0.35s ease;
}

@keyframes modalBounce {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    60% { transform: scale(1.02) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.privacy-modal h2 {
    font-family: var(--font);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    padding: 1.25rem 1.5rem;
    border-bottom: 3px dashed var(--border-light);
    flex-shrink: 0;
}

.privacy-content {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}

.privacy-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.privacy-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.privacy-content p { margin-bottom: 0.5rem; }
.privacy-content ul { margin: 0.3rem 0 0.5rem 1.2rem; }
.privacy-content li { margin-bottom: 0.3rem; }
.privacy-content a { color: var(--blue); text-decoration: none; font-weight: 600; }
.privacy-content a:hover { text-decoration: underline; }

.privacy-modal-actions {
    padding: 1rem 1.5rem;
    border-top: 3px dashed var(--border-light);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.btn-accept-privacy {
    background: var(--green);
    color: #fff;
    border: 3px solid var(--border);
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.btn-accept-privacy:hover {
    background: var(--green-hover);
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hover);
}

.btn-accept-privacy:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--border);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }

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

    .hamburger { display: block; }

    .messages-wrapper { max-width: 100%; }
    .message-content { max-width: 88%; }
    .welcome-tips { grid-template-columns: 1fr; }
    .welcome-screen h1 { font-size: 2.2em; }

    .toast.file-privacy-notice { width: calc(100vw - 40px); max-width: none; }
}

@media (max-width: 768px) {
    .sidebar { width: 280px; }
}
