/* ============================================================
   app.css — Store Kodytechnolab design system
   No external dependencies. System fonts only.
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
body {
  /* Light theme (default) */
  --bg:        #f7f8fa;
  --surface:   #ffffff;
  --surface-2: #f1f3f6;
  --border:    #e2e5ea;
  --text:      #1a1d23;
  --text-2:    #5c6470;
  --text-3:    #8b929e;
  --accent:    #2563eb;
  --success:   #15803d;
  --warning:   #b45309;
  --danger:    #b91c1c;
  --radius:    8px;
  --sidebar-w: 240px;
  --topbar-h:  56px;
}

body.dark {
  --bg:        #0f1115;
  --surface:   #171a20;
  --surface-2: #1e222a;
  --border:    #2a2f39;
  --text:      #e5e8ed;
  --text-2:    #9aa3b0;
  --text-3:    #6b7480;
  --accent:    #3b82f6;
  --success:   #22c55e;
  --warning:   #f59e0b;
  --danger:    #ef4444;
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
h4, h5, h6 { font-size: 14px; font-weight: 600; }

small { font-size: 12px; }

/* ── 3. LAYOUT SHELL ─────────────────────────────────────── */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 56px;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 99;
  transition: left 0.2s ease;
}

.topbar.sidebar-collapsed {
  left: 56px;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 24px;
  min-height: calc(100vh - var(--topbar-h));
  transition: margin-left 0.2s ease;
  overflow-y: auto;
  flex: 1;
}

.main-content.sidebar-collapsed {
  margin-left: 56px;
}

/* ── 4. SIDEBAR INTERNALS ─────────────────────────────────── */
.sidebar-brand {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  margin-left: 10px;
  color: var(--text);
  transition: opacity 0.15s;
}

.sidebar.collapsed .brand-text {
  opacity: 0;
  pointer-events: none;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 16px 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s;
}

.sidebar.collapsed .nav-section-label {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  margin: 1px 8px;
  font-size: 14px;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.nav-item.active {
  background: var(--accent);
  color: #fff;
}

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

.nav-badge {
  background: var(--danger);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Collapsed sidebar: hide label text but keep icon */
.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 8px;
  margin: 1px 8px;
}

.sidebar.collapsed .nav-item > span:not(.nav-icon) {
  display: none;
}

.sidebar.collapsed .nav-badge {
  display: none;
}

/* ── 5. TOPBAR INTERNALS ─────────────────────────────────── */
.topbar-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.topbar-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.topbar-search {
  flex: 1;
  max-width: 360px;
  margin: 0 20px;
  position: relative;
}

.topbar-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.topbar-search input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--surface);
}

.topbar-search input::placeholder {
  color: var(--text-3);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.1s, color 0.1s;
}

.btn-icon:hover {
  background: var(--surface-2);
  color: var(--text);
}

.notif-btn {
  position: relative;
}

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-weight: 600;
  line-height: 1;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: background 0.1s;
}

.user-menu-btn:hover {
  background: var(--surface-2);
}

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

/* Dropdown */
.dropdown-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 200;
  display: none;
}

.dropdown.open {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s;
}

.dropdown-item:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── 6. CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── 7. STAT TILES ───────────────────────────────────────── */
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
}

.stat-tile .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.icon-blue  { background: #eff6ff; color: var(--accent); }
.icon-green { background: #f0fdf4; color: var(--success); }
.icon-amber { background: #fffbeb; color: var(--warning); }
.icon-red   { background: #fef2f2; color: var(--danger); }

/* Dark mode icon backgrounds */
body.dark .icon-blue  { background: rgba(59, 130, 246, 0.15); }
body.dark .icon-green { background: rgba(34, 197, 94, 0.15); }
body.dark .icon-amber { background: rgba(245, 158, 11, 0.15); }
body.dark .icon-red   { background: rgba(239, 68, 68, 0.15); }

/* ── 8. TABLES ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table th.num,
.data-table td.num {
  text-align: right;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table .text-mono {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

/* ── 9. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.1s, opacity 0.1s;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

body.dark .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}

body.dark .btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-ghost {
  background: none;
  color: var(--text-2);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 13px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 10. FORMS ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

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

.required {
  color: var(--danger);
  margin-left: 2px;
}

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

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
  border-color: var(--danger);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-control::placeholder {
  color: var(--text-3);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

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

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

select.form-control {
  appearance: auto;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ── 11. PILLS / BADGES ──────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}

.pill-success { background: #dcfce7; color: #15803d; }
.pill-warning { background: #fef9c3; color: #854d0e; }
.pill-danger  { background: #fee2e2; color: #b91c1c; }
.pill-accent  { background: #eff6ff; color: #1d4ed8; }
.pill-neutral { background: var(--surface-2); color: var(--text-2); }

/* Dark mode pills */
body.dark .pill-success { background: rgba(34, 197, 94, 0.18);  color: #4ade80; }
body.dark .pill-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
body.dark .pill-danger  { background: rgba(239, 68, 68, 0.18);  color: #f87171; }
body.dark .pill-accent  { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }

/* ── 12. PAGE HEADER ─────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-3);
}

/* ── 13. ALERTS ──────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-width: 1px;
  border-style: solid;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Dark mode alerts */
body.dark .alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

body.dark .alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

body.dark .alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

body.dark .alert-info {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── 14. MODALS ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── 15. PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.page-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.1s;
}

.page-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-btn:disabled,
.page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── 16. LOGIN PAGE ──────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 16px;
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.login-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.login-sub {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  margin-top: 4px;
}

/* ── 17. UTILITY CLASSES ─────────────────────────────────── */
.text-muted   { color: var(--text-2); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }

/* Margin top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* Margin bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* Flex helpers */
.flex         { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center  { align-items: center; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1        { gap: 4px; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.gap-4        { gap: 16px; }

/* Display */
.hidden  { display: none !important; }
.block   { display: block; }
.inline  { display: inline; }

/* Width */
.w-full { width: 100%; }

/* Font */
.font-mono {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Font weight */
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }

/* Vertical align */
.va-middle { vertical-align: middle; }

/* ── 18. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Collapse sidebar to icon-only on mobile */
  .sidebar {
    width: 56px;
  }

  .sidebar .brand-text,
  .sidebar .nav-section-label {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .sidebar .nav-item {
    justify-content: center;
    padding: 8px;
  }

  .sidebar .nav-item > span:not(.nav-icon) {
    display: none;
  }

  .sidebar .nav-badge {
    display: none;
  }

  .topbar {
    left: 56px;
  }

  .main-content {
    margin-left: 56px;
    padding: 16px;
  }

  /* Grid to 1 column */
  .card-grid,
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .topbar-search {
    max-width: 200px;
    margin: 0 10px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .topbar-search {
    display: none;
  }

  .login-box {
    padding: 24px 20px;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
  }

  .modal-overlay {
    align-items: flex-end;
  }
}
