/* RAUM CMS — Shared admin styles (used by editor, settings, dashboard, media, tracking) */

* { box-sizing: border-box; }
html { scrollbar-color: rgba(255,255,255,.12) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }

body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: #0f0f12; color: #e4e2de; height: 100vh; display: flex; flex-direction: column; }

/* Buttons */
.btn-primary { background: #c49a82; color: #0a0a0c; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: #2a2a2e; color: #e4e2de; }
.btn-secondary:hover { background: #35353a; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 20px; background: #252529; border: 1px solid #2a2a2e; border-radius: 8px; font-size: 0.85rem; z-index: 100; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.warn { background: #3a2a1a; border-color: #5a4a2a; color: #e4c2a0; }
kbd { font-size: 0.7rem; background: #2a2a2e; padding: 2px 5px; border-radius: 3px; color: #8a8693; }

/* Settings modal (shared across pages) */
.settings-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.settings-overlay.open { display: flex; }
.settings-panel { width: 100%; max-width: 420px; background: #18181c; border: 1px solid #2a2a2e; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); max-height: 85vh; overflow-y: auto; }
.settings-header { padding: 16px 20px; border-bottom: 1px solid #2a2a2e; display: flex; align-items: center; justify-content: space-between; }
.settings-header h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #e4e2de; }
.settings-close { background: none; border: none; color: #8a8693; font-size: 1.25rem; cursor: pointer; padding: 4px; line-height: 1; }
.settings-close:hover { color: #e4e2de; }
.settings-body { padding: 20px; }
.settings-section { margin-bottom: 20px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8693; margin: 0 0 12px; }
.settings-section label { display: block; font-size: 0.8rem; color: #b0aaa0; margin-bottom: 6px; }
.settings-section input[type="password"],
.settings-section input[type="text"] { width: 100%; padding: 10px 12px; background: #1e1e22; border: 1px solid #2a2a2e; border-radius: 8px; color: #e4e2de; font-size: 0.9rem; }
.settings-section input:focus { outline: none; border-color: #c49a82; }
.settings-section .hint { font-size: 0.75rem; color: #5a5566; margin-top: 6px; }
.settings-section textarea { width: 100%; padding: 10px 12px; background: #1e1e22; border: 1px solid #2a2a2e; border-radius: 8px; color: #e4e2de; font-size: 0.85rem; font-family: inherit; resize: vertical; min-height: 60px; }
.settings-section textarea:focus { outline: none; border-color: #c49a82; }
.settings-section .checkbox-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.settings-section .checkbox-row input[type="checkbox"] { accent-color: #c49a82; }
.settings-section .checkbox-row label { margin: 0; font-size: 0.85rem; color: #b0aaa0; }
.settings-footer { padding: 16px 20px; border-top: 1px solid #2a2a2e; display: flex; justify-content: flex-end; gap: 8px; }
.settings-footer button { padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: none; }

/* Panel width variants */
.panel-wide { max-width: 560px; }
.panel-medium { max-width: 520px; }
.panel-narrow { max-width: 480px; }
.settings-panel.panel-xl { max-width: 90vw; width: 90vw; display: flex; flex-direction: column; }

/* CMS Top Nav */
.cms-nav { display: flex; align-items: center; gap: 0; padding: 0 14px; background: #1a1a1e; border-bottom: 1px solid #2a2a2e; height: 34px; flex-shrink: 0; position: relative; }
.cms-nav-brand { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: #c49a82; margin-right: 18px; display: inline-flex; align-items: center; text-decoration: none; }
.cms-nav-item { font-size: 0.72rem; color: #8a8693; text-decoration: none; padding: 7px 12px; border-bottom: 2px solid transparent; line-height: 1; transition: color 0.15s; }
.cms-nav-item:hover { color: #e4e2de; }
.cms-nav-item.active { color: #e4e2de; border-bottom-color: #c49a82; }
.cms-nav-site { position: absolute; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c49a82; background: rgba(196,154,130,.08); padding: 3px 14px; border-radius: 3px; border: 1px solid rgba(196,154,130,.18); pointer-events: none; white-space: nowrap; }
.cms-nav-pill { margin-left: auto; font-size: .65rem; color: #c49a82; text-decoration: none; padding: 4px 10px; border: 1px solid rgba(196,154,130,.35); border-radius: 99px; transition: color .15s, border-color .15s; }
.cms-nav-pill:hover { color: #e4e2de; border-color: #c49a82; }
.user-avatar { position: relative; margin-left: 10px; width: 22px; height: 22px; border-radius: 50%; background: #2a2a2e; color: #8a8693; font-size: .55rem; font-weight: 600; letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: default; }
.user-avatar::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 6px); right: 0; background: #1e1e22; color: #b0aaa0; font-size: .7rem; font-weight: 400; letter-spacing: 0; white-space: nowrap; padding: 5px 10px; border-radius: 6px; border: 1px solid #2a2a2e; opacity: 0; pointer-events: none; transition: opacity .15s; }
.user-avatar:hover::after { opacity: 1; }

/* Generic view container */
.cms-view { display: none; flex: 1; min-height: 0; }
.cms-view.active { display: flex; }

/* Spinner animation */
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty { padding: 24px; color: #5a5566; font-size: 0.9rem; text-align: center; }
