/* ============================================================
   MD İşletme Listeleyici — Executive Design System
   ============================================================
   Ultra-premium, clean, monochromatic dark-first UI system.
   Inspired by Vercel, Linear, and GitHub styles.
   ============================================================ */

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

/* ============================================================
   1.  DESIGN TOKENS  (CSS Variables)
   ============================================================ */
:root {
  /* ── Accent Colors ──────────────────────────────────────── */
  --primary:        #4f46e5;
  --primary-hover:  #4338ca;
  --primary-glow:   rgba(79, 70, 229, 0.15);
  
  --success:        #10b981;
  --success-hover:  #059669;
  
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --danger-hover:   #dc2626;
  
  --info:           #06b6d4;
  
  /* ── Colors (Dark Mode - Default) ───────────────────────── */
  --bg-body:        #09090b;
  --bg-sidebar:     #09090b;
  --bg-card:        #18181b;
  --bg-input:       #09090b;
  --bg-table-head:  #18181b;
  --bg-table-row:   #18181b;
  --bg-table-hover: #27272a;
  
  --text-primary:   #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted:     #52525b;
  --text-inverse:   #09090b;
  
  --border:         rgba(255, 255, 255, 0.08);
  --border-focus:   #6366f1;
  --border-card:    rgba(255, 255, 255, 0.08);
  
  --shadow-sm:      0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:      0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:      0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow:    0 0 20px var(--primary-glow);
  
  /* ── Radii ──────────────────────────────────────────────── */
  --radius-xs:      4px;
  --radius-sm:      6px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --radius-pill:    9999px;
  
  /* ── Layout & Speed ─────────────────────────────────────── */
  --sidebar-width:  260px;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --speed-fast:     0.15s;
  --speed-med:      0.25s;
}

/* ============================================================
   2.  LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme='light'] {
  --bg-body:        #f4f4f5;
  --bg-sidebar:     #ffffff;
  --bg-card:        #ffffff;
  --bg-input:       #ffffff;
  --bg-table-head:  #fafafa;
  --bg-table-row:   #ffffff;
  --bg-table-hover: #f4f4f5;
  
  --text-primary:   #09090b;
  --text-secondary: #71717a;
  --text-muted:     #a1a1aa;
  --text-inverse:   #ffffff;
  
  --border:         rgba(9, 9, 11, 0.08);
  --border-focus:   #4f46e5;
  --border-card:    rgba(9, 9, 11, 0.06);
  
  --shadow-sm:      0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md:      0 4px 6px -1px rgba(9, 9, 11, 0.05), 0 2px 4px -2px rgba(9, 9, 11, 0.05);
  --shadow-lg:      0 10px 15px -3px rgba(9, 9, 11, 0.05), 0 4px 6px -4px rgba(9, 9, 11, 0.05);
  --shadow-glow:    0 0 20px rgba(79, 70, 229, 0.08);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--speed-med) var(--ease-out), color var(--speed-med) var(--ease-out);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--speed-fast) var(--ease-out);
}
a:hover {
  color: var(--primary-hover);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-in {
  animation: fadeInUp 0.4s var(--ease-out) both;
}

/* ============================================================
   4.  AUTH PAGES  (Login / Register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, #18181b 0%, #09090b 100%);
  position: relative;
  overflow: hidden;
}

[data-theme='light'] .auth-page {
  background: radial-gradient(circle at center, #ffffff 0%, #f4f4f5 100%);
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo .logo-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.auth-logo h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-body);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out);
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   5.  FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--speed-fast) var(--ease-out);
}

.input-wrapper input {
  padding-left: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.input-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Custom Checkbox */
.form-check {
  display: flex;
  align-items: center;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}
.checkbox-label input {
  display: none;
}
.checkbox-label .checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  transition: all var(--speed-fast) var(--ease-out);
}
.checkbox-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   6.  BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--speed-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-table-hover);
  border-color: var(--text-muted);
}

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

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--success-hover);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Search Actions Specific */
.btn-maps {
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
}
.btn-maps:hover {
  background: #1d4ed8;
}

.btn-whatsapp {
  background: #10b981;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
}
.btn-whatsapp:hover {
  background: #059669;
}

.btn-website {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 12px;
}
.btn-website:hover {
  background: var(--bg-table-hover);
}

/* Loading button */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.loading .loading-spinner {
  display: block !important;
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
[data-theme='light'] .btn-secondary.loading .loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--text-primary);
}

/* ============================================================
   7.  DASHBOARD LAYOUT (Sidebar + Content)
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-med) var(--ease-out);
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--speed-med) var(--ease-out);
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header .logo-icon {
  font-size: 24px;
}
.sidebar-header .logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--speed-fast) var(--ease-out);
}
.sidebar-nav a:hover {
  background: var(--bg-table-hover);
  color: var(--text-primary);
}
.sidebar-nav a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.sidebar-nav a .nav-icon {
  font-size: 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-footer .user-avatar {
  width: 32px;
  height: 32px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.sidebar-footer .user-details {
  display: flex;
  flex-direction: column;
}
.sidebar-footer .user-name {
  font-weight: 600;
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer .user-role {
  font-size: 11px;
  color: var(--text-secondary);
}
.sidebar-footer .logout-btn {
  font-size: 16px;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.sidebar-footer .logout-btn:hover {
  background: var(--bg-table-hover);
  color: var(--danger);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.top-bar .page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

/* ============================================================
   8.  CARDS, GRIDS, STATS
   ============================================================ */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-card .stat-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* General Card Component */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.card-body {
  padding: 24px;
}

/* ============================================================
   9.  SEARCH FORM & SEARCH RESULTS
   ============================================================ */
.search-form .search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
}
.search-input-group input {
  padding-left: 40px;
}

.results-section {
  margin-top: 8px;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.results-count {
  font-size: 13px;
  color: var(--text-secondary);
}
.export-buttons {
  display: flex;
  gap: 8px;
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-table-head);
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}
.data-table tbody tr {
  background: var(--bg-table-row);
  transition: background var(--speed-fast) var(--ease-out);
}
.data-table tbody tr:hover {
  background: var(--bg-table-hover);
}

/* Table Rating */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--warning);
}
.rating-badge .star {
  letter-spacing: -2px;
  margin-right: 2px;
}

/* Contact display */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info .phone {
  font-weight: 500;
}
.contact-info .website-link {
  font-size: 12px;
  color: var(--primary);
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.hidden {
  display: none !important;
}

/* ============================================================
   10. HISTORY PAGE
   ============================================================ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-item {
  border: 1px solid var(--border-card);
  transition: all var(--speed-fast) var(--ease-out);
}
.history-item:hover {
  border-color: var(--text-muted);
}
.history-item.removing {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s var(--ease-out);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state .empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================
   11. SETTINGS & PROFILE
   ============================================================ */
.settings-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.settings-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   12. ALERTS & NOTIFICATIONS
   ============================================================ */
.alert-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.alert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  animation: fadeInUp 0.3s var(--ease-out) both;
  position: relative;
  overflow: hidden;
}

.alert-icon {
  font-weight: 700;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

.alert-message {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.alert-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}
.alert-close:hover {
  color: var(--text-primary);
}

/* Server rendered absolute pages flash message styling */
main .alert {
  margin-bottom: 24px;
  animation: none;
}

.alert-success .alert-icon { background: var(--success); }
.alert-success { border-left: 3px solid var(--success); }

.alert-danger .alert-icon,
.alert-error .alert-icon { background: var(--danger); }
.alert-danger, .alert-error { border-left: 3px solid var(--danger); }

.alert-warning .alert-icon { background: var(--warning); }
.alert-warning { border-left: 3px solid var(--warning); }

.alert-info .alert-icon { background: var(--info); }
.alert-info { border-left: 3px solid var(--info); }

.alert.dismissing {
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.25s var(--ease-out);
}

/* ============================================================
   13. THEME TOGGLE SWITCH
   ============================================================ */
.theme-toggle {
  display: inline-block;
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}
.theme-toggle input {
  display: none;
}
.theme-toggle .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--speed-med) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  overflow: hidden;
}
.theme-toggle .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--speed-med) var(--ease-out);
  z-index: 2;
}
.theme-toggle input:checked + .slider::before {
  transform: translateX(24px);
}

.theme-toggle .slider .sun,
.theme-toggle .slider .moon {
  font-size: 11px;
  user-select: none;
  z-index: 1;
}

/* ============================================================
   14. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .main-content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .search-form .search-row {
    grid-template-columns: 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
