/* ============================================================
   CREW PORTAL — Apartmány Pastviny
   Paleta: lesní zelená + krémová + teplá hnědá
   ============================================================ */

:root {
  --green-900: #1a3a0f;
  --green-800: #2D4A22;
  --green-700: #3d6b2e;
  --green-600: #4a8038;
  --green-500: #5a9944;
  --green-100: #e6f0e0;
  --green-50:  #f0f7ec;

  --brown-600: #7a5230;
  --brown-400: #C9A96E;
  --brown-200: #e8d9be;
  --brown-100: #f5eedd;

  --bg:        #F4EFE8;
  --bg-card:   #FFFFFF;
  --bg-hover:  #f0ebe3;
  --sidebar-bg:#2D4A22;
  --sidebar-w: 260px;
  --topbar-h:  60px;

  --text:      #1C1C1C;
  --text-2:    #4A4A4A;
  --text-muted:#7A7A7A;
  --text-inv:  #FFFFFF;

  --border:    #E0D5C8;
  --border-2:  #cfc4b4;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  --radius:    8px;
  --radius-lg: 14px;

  --font: 'Urbanist', Arial, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ============================================================
   LAYOUT
   ============================================================ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform .25s ease;
}

.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .25s ease;
}

.main-content {
  flex: 1;
  padding: 28px 32px;
  max-width: 1100px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo img { height: 36px; width: auto; }
.sidebar-logo-text { color: var(--text-inv); font-weight: 700; font-size: 1rem; }
.sidebar-badge {
  margin-left: auto;
  background: var(--brown-400);
  color: var(--text-inv);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 7px; border-radius: 20px;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.sidebar-section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 16px 20px 6px;
}

.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem; font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.sidebar-nav-item.active { background: rgba(255,255,255,0.12); color: #fff; border-left-color: var(--brown-400); }

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-icon svg { width: 100%; height: 100%; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brown-400);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-name { color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.sidebar-logout { color: rgba(255,255,255,0.5); transition: color .15s; }
.sidebar-logout:hover { color: #fff; }
.sidebar-logout svg { width: 18px; height: 18px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-2); padding: 6px;
}
.topbar-toggle svg { width: 22px; height: 22px; display: block; }

.topbar-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.topbar-search input { border: none; background: none; outline: none; width: 100%; font-size: 0.875rem; color: var(--text); }
.topbar-search input::placeholder { color: var(--text-muted); }

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

.topbar-btn {
  position: relative;
  background: none; border: none;
  color: var(--text-2); padding: 8px;
  border-radius: var(--radius); transition: background .15s, color .15s;
}
.topbar-btn:hover { background: var(--bg); color: var(--green-700); }
.topbar-btn svg { width: 20px; height: 20px; display: block; }

.notif-badge {
  position: absolute; top: 4px; right: 4px;
  background: #e53e3e; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Notif dropdown */
.notif-wrapper { position: relative; }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none; z-index: 300;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.notif-header strong { font-size: 0.9rem; }
.notif-mark-all { font-size: 0.75rem; color: var(--green-600); }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .12s; }
.notif-item:hover { background: var(--bg); }
.notif-item:last-child { border-bottom: none; }
.notif-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.notif-body { font-size: 0.8rem; color: var(--text-2); margin-bottom: 4px; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 20px; font-size: 0.9rem;
  border-left: 4px solid transparent;
}
.alert-success { background: var(--green-50); border-color: var(--green-600); color: var(--green-900); }
.alert-error   { background: #fff5f5; border-color: #e53e3e; color: #742a2a; }
.alert-info    { background: #ebf8ff; border-color: #3182ce; color: #1a365d; }
.alert-warning { background: #fffbeb; border-color: #d97706; color: #78350f; }
.alert-close { background: none; border: none; font-size: 1.2rem; opacity: .6; padding: 0 4px; }
.alert-close:hover { opacity: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--green-800); }
.card-body { padding: 20px 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header-left {}
.page-title {
  font-size: 1.6rem; font-weight: 700;
  color: var(--green-800); line-height: 1.25;
}
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px;
}
.page-breadcrumb a { color: var(--text-muted); }
.page-breadcrumb a:hover { color: var(--green-700); }
.page-breadcrumb-sep { opacity: .5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius); border: none;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); }
.btn-accent { background: var(--brown-400); color: #fff; }
.btn-accent:hover { background: var(--brown-600); color: #fff; }
.btn-danger { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.btn-danger:hover { background: #fed7d7; color: #9b2c2c; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }
.btn-icon { padding: 7px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label-optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-control {
  width: 100%; padding: 9px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237A7A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: #c53030; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* Checkbox / Radio */
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }
.form-check input { width: 16px; height: 16px; accent-color: var(--green-700); cursor: pointer; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th { text-align: left; padding: 11px 16px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.badge-admin  { background: var(--green-100); color: var(--green-800); }
.badge-editor { background: var(--brown-100); color: var(--brown-600); }
.badge-viewer { background: #f0f0f0; color: #4a4a4a; }
.badge-published { background: var(--green-100); color: var(--green-700); }
.badge-draft { background: #fef9c3; color: #854d0e; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.stat-icon { width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-green { background: var(--green-100); color: var(--green-700); }
.stat-icon-brown { background: var(--brown-100); color: var(--brown-600); }
.stat-icon-blue  { background: #ebf8ff; color: #2b6cb0; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ============================================================
   SECTION / ARTICLE CARDS
   ============================================================ */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.section-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--text);
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.section-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-600); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.section-card-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; }
.section-card-icon svg { width: 22px; height: 22px; }
.section-card-title { font-size: 0.95rem; font-weight: 700; color: var(--green-800); }
.section-card-desc { font-size: 0.82rem; color: var(--text-muted); flex: 1; }
.section-card-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.article-list { display: flex; flex-direction: column; gap: 2px; }
.article-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background .12s;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { text-decoration: none; color: var(--text); }
.article-item:hover .article-item-title { color: var(--green-700); }
.article-item-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.article-item-icon svg { width: 18px; height: 18px; }
.article-item-body { flex: 1; min-width: 0; }
.article-item-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.article-item-excerpt { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-item-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.article-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-title { font-size: 1.8rem; font-weight: 700; color: var(--green-800); line-height: 1.3; margin-bottom: 10px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.article-meta-item { display: flex; align-items: center; gap: 5px; }
.article-meta-item svg { width: 14px; height: 14px; }

.article-content { line-height: 1.75; color: var(--text); }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5 {
  color: var(--green-800); font-weight: 700; margin: 1.5em 0 .6em;
}
.article-content h1 { font-size: 1.6rem; }
.article-content h2 { font-size: 1.3rem; border-bottom: 1px solid var(--border); padding-bottom: .3em; }
.article-content h3 { font-size: 1.1rem; }
.article-content p { margin-bottom: 1em; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li { margin-bottom: .4em; }
.article-content blockquote {
  border-left: 4px solid var(--brown-400);
  padding: 12px 20px; margin: 1em 0;
  background: var(--brown-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-2);
}
.article-content code {
  background: var(--bg); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px;
  font-family: monospace; font-size: .9em;
}
.article-content pre {
  background: var(--green-900); color: #e2e8f0;
  padding: 16px 20px; border-radius: var(--radius);
  overflow-x: auto; margin-bottom: 1em;
}
.article-content pre code { background: none; border: none; padding: 0; }
.article-content table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.article-content th { background: var(--bg); }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 14px; }
.article-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-content a { color: var(--green-700); }
.article-content strong { color: var(--green-800); }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 1.5em 0; }

/* ============================================================
   EDITOR (Quill overrides)
   ============================================================ */
.editor-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.ql-toolbar { border: none !important; border-bottom: 1px solid var(--border) !important; background: var(--bg) !important; }
.ql-container { border: none !important; font-family: var(--font) !important; font-size: 0.95rem !important; min-height: 320px; }
.ql-editor { min-height: 320px; line-height: 1.75; }
.ql-editor:focus { outline: none; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px;
  transition: box-shadow .15s;
}
.search-result:hover { box-shadow: var(--shadow-md); }
.search-result-title { font-size: 1rem; font-weight: 700; color: var(--green-700); margin-bottom: 4px; }
.search-result-excerpt { font-size: 0.875rem; color: var(--text-2); margin-bottom: 8px; }
.search-result-meta { font-size: 0.75rem; color: var(--text-muted); }
mark { background: #fef08a; color: var(--text); padding: 0 2px; border-radius: 2px; }

/* ============================================================
   AUTH (login stránka)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px 44px; width: 100%; max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 48px; width: auto; }
.auth-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--green-800); margin-top: 8px; }
.auth-title { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }
.auth-footer a { color: var(--green-700); }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 199;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-2); text-decoration: none;
}
.pagination a:hover { background: var(--bg-hover); border-color: var(--green-600); }
.pagination .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 16px; opacity: .35; display: block; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty-state-text { font-size: 0.875rem; margin-bottom: 20px; }

/* ============================================================
   DIVIDER + MISC
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .topbar-toggle { display: flex; }
  .main-content { padding: 20px 16px; }
  .auth-card { padding: 28px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .topbar-search { display: none; }
}
