/* ============================================================
   PrivateServer Dashboard — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --bg-base:      #070b14;
  --bg-surface:   #0d1526;
  --bg-panel:     #111a2e;
  --bg-hover:     #162035;
  --border:       rgba(255,255,255,0.07);
  --border-glow:  rgba(124,58,237,0.4);
  --accent:       #7c3aed;
  --accent-light: #9d5ff5;
  --accent-dim:   rgba(124,58,237,0.15);
  --cyan:         #06b6d4;
  --cyan-dim:     rgba(6,182,212,0.15);
  --green:        #10b981;
  --green-dim:    rgba(16,185,129,0.15);
  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,0.15);
  --orange:       #f59e0b;
  --orange-dim:   rgba(245,158,11,0.15);
  --text-1:       #f0f4ff;
  --text-2:       #94a3b8;
  --text-3:       #4b5a72;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px rgba(124,58,237,0.2);
  --transition:   all 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--bg-base); color: var(--text-1); font-size: 14px; line-height: 1.5; overflow: hidden; }
a { color: var(--accent-light); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── APP SHELL ── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ──────────────────────────────────────
   SIDEBAR
────────────────────────────────────── */
.sidebar {
  width: 240px; min-width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 0;
  transition: width 0.3s ease, min-width 0.3s ease;
  position: relative;
  z-index: 10;
}
.sidebar.collapsed { width: 64px; min-width: 64px; }

.sidebar-logo {
  padding: 20px 16px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}
.sidebar-logo .logo-text { font-size: 15px; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; }
.sidebar-logo .logo-text span { color: var(--accent-light); }
.sidebar.collapsed .logo-text { display: none; }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-1); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent-light);
  border-color: var(--border-glow);
}
.nav-item.active .nav-icon { color: var(--accent-light); }
.nav-icon { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-label { overflow: hidden; }
.sidebar.collapsed .nav-label { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  cursor: pointer;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.user-info { overflow: hidden; flex: 1; }
.user-email { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar.collapsed .user-info { display: none; }

.btn-collapse {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 8px; border: none; background: transparent;
  color: var(--text-3); border-radius: var(--radius); transition: var(--transition);
  font-size: 16px; margin-top: 4px;
}
.btn-collapse:hover { background: var(--bg-hover); color: var(--text-2); }

/* ──────────────────────────────────────
   MAIN CONTENT
────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface);
  flex-shrink: 0;
}
.topbar-title { font-size: 18px; font-weight: 700; flex: 1; }
.topbar-title span { color: var(--text-2); font-weight: 400; font-size: 14px; margin-left: 8px; }

.content { flex: 1; overflow-y: auto; padding: 24px; }

/* ──────────────────────────────────────
   LOGIN PAGE
────────────────────────────────────── */
.login-page {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-base);
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.25), transparent),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6,182,212,0.12), transparent);
}
.login-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.4), transparent); top: -100px; left: -100px; }
.orb2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(6,182,212,0.3), transparent); bottom: -50px; right: -50px; animation-delay: -4s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px; padding: 40px;
  background: rgba(13,21,38,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-logo .logo-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 0 24px rgba(124,58,237,0.5);
}
.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo h1 span { color: var(--accent-light); }
.login-subtitle { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }

/* ──────────────────────────────────────
   FORM ELEMENTS
────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1); font-size: 14px;
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 40px; }
.input-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); cursor: pointer; font-size: 16px;
  background: none; border: none; padding: 0;
  transition: var(--transition);
}
.input-suffix:hover { color: var(--text-2); }

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  border: none; transition: var(--transition); white-space: nowrap; cursor: pointer;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text-1); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-1); }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ──────────────────────────────────────
   CARDS & PANELS
────────────────────────────────────── */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 700; }
.card-title small { font-size: 12px; color: var(--text-2); font-weight: 400; margin-left: 8px; }

/* ──────────────────────────────────────
   STAT CARDS
────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: var(--transition); cursor: default;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-color, var(--accent)); opacity: 0.7;
}
.stat-card:hover { border-color: var(--card-color, var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.stat-icon { font-size: 22px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-1); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; letter-spacing: 0.03em; }

/* ──────────────────────────────────────
   TABLE
────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 10px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13.5px; color: var(--text-1); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }
.td-muted { color: var(--text-2); font-size: 12.5px; }
.td-mono { font-family: 'Courier New', monospace; font-size: 12.5px; }

/* ──────────────────────────────────────
   BADGES
────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 3px 8px;
  border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.badge-purple { background: var(--accent-dim); color: var(--accent-light); }
.badge-cyan   { background: var(--cyan-dim); color: var(--cyan); }
.badge-green  { background: var(--green-dim); color: var(--green); }
.badge-red    { background: var(--red-dim); color: var(--red); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-gray   { background: rgba(255,255,255,0.07); color: var(--text-2); }

/* ──────────────────────────────────────
   MODAL
────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; width: 100%;
  max-width: 520px; box-shadow: var(--shadow);
  animation: slideUp 0.2s ease;
}
.modal-lg { max-width: 700px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-3); font-size: 20px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--text-1); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

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

/* ──────────────────────────────────────
   TOAST
────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--border); max-width: 360px;
  animation: toastIn 0.3s ease;
  box-shadow: var(--shadow);
}
.toast-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: var(--green); }
.toast-error   { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: var(--red); }
.toast-info    { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.3); color: var(--cyan); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast.removing { animation: toastOut 0.3s ease forwards; }

/* ──────────────────────────────────────
   UPLOAD ZONE
────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px 24px; text-align: center;
  transition: var(--transition); cursor: pointer; color: var(--text-2);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent); background: var(--accent-dim); color: var(--text-1);
}
.drop-zone .drop-icon { font-size: 36px; margin-bottom: 12px; }
.drop-zone p { font-size: 14px; }
.drop-zone small { font-size: 12px; color: var(--text-3); }

/* ──────────────────────────────────────
   PROGRESS BAR
────────────────────────────────────── */
.progress-bar { height: 4px; background: var(--bg-hover); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 99px; transition: width 0.3s ease; }

/* ──────────────────────────────────────
   TOGGLE / SWITCH
────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 99px;
  background: var(--bg-hover); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-track::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; top: 2px; left: 2px;
  transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle input:checked + .toggle-track::after { left: 20px; }

/* ──────────────────────────────────────
   NOTES SPLIT VIEW
────────────────────────────────────── */
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: calc(100vh - 140px); }
.notes-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.note-item {
  padding: 12px 14px; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.note-item:hover { background: var(--bg-hover); }
.note-item.active { background: var(--accent-dim); border-color: var(--border-glow); }
.note-item-title { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.note-item-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.note-editor { display: flex; flex-direction: column; gap: 12px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.note-editor textarea { flex: 1; background: transparent; border: none; color: var(--text-1); resize: none; outline: none; font-size: 14px; line-height: 1.7; min-height: 300px; }

/* ──────────────────────────────────────
   VAULT CARDS
────────────────────────────────────── */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vault-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: var(--transition); cursor: pointer; position: relative;
}
.vault-card:hover { border-color: var(--border-glow); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.vault-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vault-favicon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.vault-title { font-size: 14px; font-weight: 700; }
.vault-user { font-size: 12.5px; color: var(--text-2); }
.vault-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ──────────────────────────────────────
   MEDIA GALLERY
────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.media-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
  background: var(--bg-panel); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: var(--transition);
}
.media-item:hover { border-color: var(--border-glow); transform: scale(1.02); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: var(--transition);
}
.media-item:hover .media-item-overlay { opacity: 1; }
.media-item-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center;
}
.lightbox img, .lightbox video { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* ──────────────────────────────────────
   WEBHOOK
────────────────────────────────────── */
.webhook-url-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  font-family: 'Courier New', monospace; font-size: 12px; color: var(--cyan);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  word-break: break-all;
}

/* ──────────────────────────────────────
   URL SHORTENER
────────────────────────────────────── */
.url-input-row {
  display: flex; gap: 10px; align-items: flex-end; margin-bottom: 20px;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px;
}
.url-input-row .form-group { flex: 1; margin: 0; }

/* ──────────────────────────────────────
   SETTINGS SECTIONS
────────────────────────────────────── */
.settings-section { margin-bottom: 28px; }
.settings-section-title {
  font-size: 11.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 14px; font-weight: 500; }
.settings-row-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.danger-zone { border-color: rgba(239,68,68,0.3); }
.danger-zone .card-title { color: var(--red); }

/* ──────────────────────────────────────
   2FA QR
────────────────────────────────────── */
.qr-box { text-align: center; padding: 20px; }
.qr-box img { border-radius: var(--radius); border: 4px solid #fff; margin-bottom: 12px; }
.secret-box {
  font-family: monospace; background: var(--bg-hover); padding: 10px;
  border-radius: var(--radius-sm); letter-spacing: 0.1em; font-size: 13px;
  color: var(--accent-light); margin: 8px 0; word-break: break-all;
}

/* ──────────────────────────────────────
   KEY REVEAL BOX
────────────────────────────────────── */
.key-reveal {
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius); padding: 14px; margin: 14px 0;
}
.key-reveal code {
  display: block; font-family: monospace; font-size: 13px;
  color: var(--green); word-break: break-all; margin-bottom: 10px;
}
.key-warn { font-size: 12px; color: var(--orange); display: flex; align-items: center; gap: 6px; }

/* ──────────────────────────────────────
   EMPTY STATE
────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-1); }
.empty-state p { font-size: 13.5px; }

/* ──────────────────────────────────────
   SKELETON LOADER
────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-panel) 25%, var(--bg-hover) 50%, var(--bg-panel) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { height: 14px; margin-bottom: 10px; border-radius: 99px; }
.skel-row.short { width: 40%; }
.skel-row.medium { width: 65%; }

/* ──────────────────────────────────────
   MISC UTILITIES
────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-2); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.font-bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.copy-btn { font-size: 14px; padding: 4px 8px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; font-weight: 800; }
.tag { display: inline-block; padding: 2px 8px; background: var(--accent-dim); color: var(--accent-light); border-radius: 99px; font-size: 11px; margin: 2px; }

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 64px; min-width: 64px; }
  .sidebar .logo-text, .sidebar .nav-label, .sidebar .user-info { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 10px; }
  .content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-layout { grid-template-columns: 1fr; }
  .vault-grid { grid-template-columns: 1fr; }
  .url-input-row { flex-direction: column; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
