@font-face {
    font-family: 'MentuaMed';
    src: url('../brand/font/Mentua-Medium.eot');
    src: url('../brand/font/Mentua-Medium.eot?#iefix') format('embedded-opentype'),
         url('../brand/font/Mentua-Medium.woff2') format('woff2'),
         url('../brand/font/Mentua-Medium.woff') format('woff'),
         url('../brand/font/Mentua-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
  /* Dark sidebar colors */
  --sidebar-bg: #1A1B1E;
  --sidebar-text: #FFFFFF;
  --sidebar-text-dim: #B6B8BC;
  --sidebar-hair: #2F3136;
  
  /* Light main content colors */
  --bg: #e3e3e1;
  --surface: #e3e3e1;
  --surface-white: #FFFFFF;
  --text: #23211d;
  --text-muted: #7b8284;
  --text-dim: #7b8284;
  --border: #d0d0ce;
  --hair: #d0d0ce;
  
  /* Accent colors */
  --accent: #e9422a;
  --accent-yellow: #e5bc3f;
  --success: #00713d;
  --warning: #e5bc3f;
  --info: #7b8284;
  --danger: #e9422a;
  
  /* Layout */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(35,33,29,0.08);
  --shadow-md: 0 4px 6px rgba(35,33,29,0.1);
  --shadow-lg: 0 10px 20px rgba(35,33,29,0.15);
  --font-primary: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: 'MentuaMed', "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.3s ease;
}

.app.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}

.app.login-page {
  grid-template-columns: 1fr;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}

aside {
  background: var(--sidebar-bg);
  padding: 24px;
  border-right: 1px solid var(--sidebar-hair);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  width: 260px;
  transition: width 0.3s ease, padding 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--sidebar-text);
}

aside.collapsed {
  width: 80px;
  padding: 24px 16px;
}

aside .logo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

aside.collapsed .logo {
  font-size: 24px;
  margin-bottom: 24px;
  flex-direction: column;
  gap: 4px;
}

aside .logo:hover {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 8px;
}

aside .logo-content {
  display: flex;
  align-items: center;
}

aside .logo-full {
  display: block;
}

aside .logo-collapsed {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--sidebar-text);
}

aside .hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
}

aside .hamburger-bar {
  width: 14px;
  height: 2px;
  background: var(--sidebar-text);
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Collapsed state */
aside.collapsed .logo-full {
  display: none;
}

aside.collapsed .logo-collapsed {
  display: block;
}

/* Removed floating sidebar toggle - now integrated into logo */

.brand-search {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

aside.collapsed .brand-search {
  display: none;
}

.brands-section {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 24px;
}

aside.collapsed .brands-section {
  display: none;
}

.sidebar-nav {
  border-top: 1px solid var(--sidebar-hair);
  padding-top: 16px;
  margin-top: auto;
}

.sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sidebar-hair);
}


aside .user-info {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--sidebar-text-dim);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}

nav a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--sidebar-text);
}

nav a.active {
  background: var(--accent);
  color: var(--sidebar-text);
}

nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--sidebar-text);
  border-radius: 0 2px 2px 0;
}

aside.collapsed nav a {
  padding: 12px 8px;
  text-align: center;
  font-size: 0;
  position: relative;
}

aside.collapsed nav a::after {
  content: '';
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

/* SVG Icon backgrounds for collapsed sidebar - Data URIs */
aside.collapsed nav a[data-icon="dashboard"]::after {
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><rect height="3" rx=".5" width="5" x="5.5" y="8.5" fill="%23ffffff"/><path d="m1 12.9324a2.0347 2.0347 0 0 0 2 2.0676h10a2.0347 2.0347 0 0 0 2-2.0676v-6.1724a2.09 2.09 0 0 0 -.8375-1.6825l-5-3.6922a1.9471 1.9471 0 0 0 -2.325 0l-5 3.6922a2.09 2.09 0 0 0 -.8375 1.6825zm3.5-3.9324a1.5017 1.5017 0 0 1 1.5-1.5h4a1.5017 1.5017 0 0 1 1.5 1.5v2a1.5017 1.5017 0 0 1 -1.5 1.5h-4a1.5017 1.5017 0 0 1 -1.5-1.5z" fill="%23ffffff"/></svg>');
}

aside.collapsed nav a[data-icon="analytics"]::after {
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m15.5 13v2a.4951.4951 0 0 1 -.5.5h-14a.4951.4951 0 0 1 -.5-.5v-2a.4951.4951 0 0 1 .5-.5h14a.4951.4951 0 0 1 .5.5zm-14.5-1.5h3a.4951.4951 0 0 0 .5-.5v-5a.4951.4951 0 0 0 -.5-.5h-3a.4951.4951 0 0 0 -.5.5v5a.4951.4951 0 0 0 .5.5zm5.5 0h3a.4951.4951 0 0 0 .5-.5v-8a.4951.4951 0 0 0 -.5-.5h-3a.4951.4951 0 0 0 -.5.5v8a.4951.4951 0 0 0 .5.5zm8.5-11h-3a.4951.4951 0 0 0 -.5.5v10a.4951.4951 0 0 0 .5.5h3a.4951.4951 0 0 0 .5-.5v-10a.4951.4951 0 0 0 -.5-.5z" fill="%23ffffff"/></svg>');
}

aside.collapsed nav a[data-icon="brands"]::after {
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.5 2v.67a1.8931 1.8931 0 0 1 -.39 1.14 1.8494 1.8494 0 0 1 -1.44.69 1.8077 1.8077 0 0 1 -1.81-1.57.0367.0367 0 0 0 -.01-.03 1.7852 1.7852 0 0 1 -.02-.23v-1.17h3.17a.4951.4951 0 0 1 .5.5z" fill="%23ffffff"/><path d="m9.83 1.5v1.17a1.2972 1.2972 0 0 1 -.03.26 1.8168 1.8168 0 0 1 -3.6 0 .0367.0367 0 0 0 -.01-.03 1.7852 1.7852 0 0 1 -.02-.23v-1.17z" fill="%23ffffff"/><path d="m5.17 1.5v1.17a1.2972 1.2972 0 0 1 -.03.26 1.8077 1.8077 0 0 1 -1.81 1.57 1.8322 1.8322 0 0 1 -1.29-.53 2.0023 2.0023 0 0 1 -.14-.16 1.8408 1.8408 0 0 1 -.4-1.14v-.67a.4951.4951 0 0 1 .5-.5z" fill="%23ffffff"/><path d="m14 5.17v8.83a.4951.4951 0 0 1 -.5.5h-2.5v-4.5a1.498 1.498 0 0 0 -1.5-1.5h-3a1.498 1.498 0 0 0 -1.5 1.5v4.5h-2.5a.4951.4951 0 0 1 -.5-.5v-8.83a2.4759 2.4759 0 0 0 .64.24 1.5536 1.5536 0 0 0 .23.05 2.3163 2.3163 0 0 0 .46.04 2.81 2.81 0 0 0 1.38-.36 1.6542 1.6542 0 0 0 .25-.15c.08-.06.16-.12.24-.19a2.128 2.128 0 0 0 .26-.26 1.7086 1.7086 0 0 0 .21-.26 1.7086 1.7086 0 0 0 .21.26 2.6806 2.6806 0 0 0 .5.45 1.6542 1.6542 0 0 0 .25.15 2.7868 2.7868 0 0 0 2.74 0 1.6542 1.6542 0 0 0 .25-.15 2.6806 2.6806 0 0 0 .5-.45 1.7086 1.7086 0 0 0 .21-.26 1.7086 1.7086 0 0 0 .21.26 2.128 2.128 0 0 0 .26.26c.08.07.16.13.24.19a1.6542 1.6542 0 0 0 .25.15 2.81 2.81 0 0 0 1.38.36 2.3163 2.3163 0 0 0 .46-.04 1.5536 1.5536 0 0 0 .23-.05 2.4759 2.4759 0 0 0 .64-.24z" fill="%23ffffff"/><path d="m10 10v4.5h-4v-4.5a.4951.4951 0 0 1 .5-.5h3a.4951.4951 0 0 1 .5.5z" fill="%23ffffff"/></svg>');
}

aside.collapsed nav a[data-icon="users"]::after {
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m15.35 18.6v2.94a20.0091 20.0091 0 0 1 -12.2 0v-2.94a6.1349 6.1349 0 0 1 3.96-5.71.4761.4761 0 0 0 .32-.41.507.507 0 0 0 -.23-.48 3.8619 3.8619 0 0 1 -1.85-3.3 3.9 3.9 0 0 1 7.8 0 3.8619 3.8619 0 0 1 -1.85 3.3.507.507 0 0 0 -.23.48.4761.4761 0 0 0 .32.41 6.1349 6.1349 0 0 1 3.96 5.71z" fill="%23ffffff"/><path d="m20.85 15.3v2.94a19.6274 19.6274 0 0 1 -4.5.9v-.54a7.13 7.13 0 0 0 -3.81-6.28 4.878 4.878 0 0 0 -1.48-8.16 3.8964 3.8964 0 1 1 5.75 4.55.4811.4811 0 0 0 -.24.47.5131.5131 0 0 0 .33.42 6.107 6.107 0 0 1 3.95 5.7z" fill="%23ffffff"/></svg>');
}

aside.collapsed .sidebar-footer {
  text-align: center;
}

aside.collapsed .sidebar-footer > div:first-child {
  justify-content: center;
}

aside.collapsed .sidebar-footer > div:first-child > div:last-child {
  display: none;
}

aside.collapsed .sidebar-footer > div:last-child {
  display: none;
}

main {
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -1px;
}

.stat-card .change {
  font-size: 12px;
  margin-top: 4px;
  color: var(--success);
}

.stat-card .change.negative {
  color: var(--accent);
}

.data-table {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f8f8f6;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: #f8f8f6;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.success {
  background: rgba(0, 113, 61, 0.1);
  color: var(--success);
}

.badge.warning {
  background: rgba(229, 188, 63, 0.1);
  color: var(--warning);
}

.badge.info {
  background: rgba(123, 130, 132, 0.1);
  color: var(--info);
}

.badge.danger {
  background: rgba(233, 66, 42, 0.1);
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #d73620;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-white);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(35,33,29,0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

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

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
  background: var(--surface-white);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 66, 42, 0.1);
}

.form-control:disabled {
  background: #f8f8f6;
  cursor: not-allowed;
  opacity: 0.6;
}

select.form-control {
  cursor: pointer;
}

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

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

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

.card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.alert-success {
  background: rgba(0, 113, 61, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 113, 61, 0.2);
}

.alert-error {
  background: rgba(233, 66, 42, 0.1);
  color: var(--danger);
  border: 1px solid rgba(233, 66, 42, 0.2);
}

.alert-warning {
  background: rgba(229, 188, 63, 0.1);
  color: var(--warning);
  border: 1px solid rgba(229, 188, 63, 0.2);
}

.alert-info {
  background: rgba(123, 130, 132, 0.1);
  color: var(--info);
  border: 1px solid rgba(123, 130, 132, 0.2);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--sidebar-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.login-container h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--sidebar-text);
}

.login-container p {
  color: var(--sidebar-text-dim);
  margin-bottom: 32px;
  font-size: 14px;
}

.login-container .form-control {
  background: rgba(255,255,255,0.05);
  border-color: var(--sidebar-hair);
  color: var(--sidebar-text);
}

.login-container .form-control:focus {
  background: rgba(255,255,255,0.08);
}

.login-container .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--text-dark);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state-text {
  font-size: 14px;
  margin-bottom: 24px;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.3s ease;
}

.tooltip {
  position: relative;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-bottom: 8px;
  box-shadow: var(--shadow-md);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-hair);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  gap: 8px;
}

.mobile-nav-toggle:hover {
  background: rgba(26, 27, 30, 0.9);
}

.mobile-logo {
  height: 18px;
  width: auto;
  max-width: 80px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-nav-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .app {
    grid-template-columns: 200px 1fr;
  }
  
  .app.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  
  aside {
    width: 200px;
  }
  
  main {
    padding: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation ONLY */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-overlay {
    display: block;
    pointer-events: none;
  }
  
  .mobile-overlay.active {
    pointer-events: auto;
  }
  
  aside {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex !important;
    overflow-y: auto;
  }
  
  aside.mobile-active {
    transform: translateX(0);
  }
  
  aside.collapsed {
    width: 280px;
    padding: 24px;
  }
  
  aside .logo {
    display: none;
  }
  
  aside .hamburger-bars {
    display: none;
  }
  
  aside.collapsed .logo-full,
  aside.collapsed .logo-collapsed {
    display: none;
  }
  
  aside.collapsed .brand-search,
  aside.collapsed .brands-section,
  aside.collapsed .sidebar-footer {
    display: block;
  }
  
  .brand-search {
    margin-top: 55px; /* Reduced from 80px */
    margin-bottom: 16px;
    padding: 0 4px;
  }
  
  .brands-section {
    flex: 1;
    margin-bottom: 16px;
  }
  
  .sidebar-nav a[data-icon]::before {
    display: none;
  }
  
  /* Very basic responsive layout - NO interaction blocking */
  main {
    max-width: 100vw;
    box-sizing: border-box;
    padding-top: 40px; /* Space for mobile logo */
  }
  
  .card {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Page title adjustments */
  .page-header {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .page-header h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  
  .page-header p {
    line-height: 1.3;
    margin-bottom: 0;
  }
  
  /* Dashboard specific mobile fixes */
  .stats-grid {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px;
    margin-bottom: 0;
  }
  
  /* Make locations table mobile-friendly */
  .data-table table {
    min-width: auto;
  }
  
  /* Hide Brand, Address, Completeness columns on mobile */
  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(3),
  .data-table td:nth-child(3),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    display: none !important;
  }
  
  /* Adjust column widths for mobile - Location, Last Updated, Actions */
  .data-table th:nth-child(1),
  .data-table td:nth-child(1) {
    width: 40% !important;
    padding: 12px 8px !important;
  }
  
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
    width: 30% !important;
    font-size: 12px !important;
    padding: 12px 4px !important;
  }
  
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
    width: 30% !important;
    min-width: 90px !important;
    padding: 12px 4px !important;
  }
  
  /* Make sure table doesn't overflow */
  .data-table {
    width: 100% !important;
    overflow-x: visible !important;
  }
  
  .data-table table {
    width: 100% !important;
    table-layout: fixed !important;
  }
  
  /* Mobile-specific button adjustments */
  .data-table .actions {
    flex-direction: column !important;
    gap: 4px !important;
  }
  
  .data-table .btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    text-align: center;
  }
  
  /* Form improvements for add/edit pages */
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }
  
  /* Hours form fixes */
  .hours-grid,
  .day-schedule {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    width: 100% !important;
  }
  
  .day-schedule > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px;
  }
  
  /* Profile card fixes */
  .profile-card {
    max-width: 100% !important;
    overflow: hidden;
  }
  
  /* Button improvements */
  .btn-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: 100% !important;
  }
  
  .btn-group .btn {
    width: 100% !important;
    margin-bottom: 0;
    padding: 14px 20px;
    text-align: center;
  }
  
  /* Form section spacing */
  .form-section {
    margin-bottom: 24px;
  }
  
  .form-section .card {
    margin-bottom: 16px;
  }
  
  /* Edit location page mobile fixes */
  .page-header h1 {
    font-size: 20px !important;
  }
  
  /* Restaurant info header mobile adaptation - SINGLE CARD */
  .restaurant-info-header .restaurant-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }
  
  .restaurant-info-header .restaurant-photo {
    width: 100px !important;
    height: 100px !important;
    align-self: center !important;
  }
  
  .restaurant-info-header .restaurant-details {
    width: 100% !important;
    text-align: center !important;
  }
  
  .restaurant-info-header .restaurant-title-block h2 {
    font-size: 20px !important;
  }
  
  /* Custom URL input row mobile */
  .restaurant-info-header .url-input-row {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .restaurant-info-header .url-input-row input {
    max-width: none !important;
    width: 100% !important;
  }
  
  .restaurant-info-header .url-input-row button {
    width: 100% !important;
  }
  
  .restaurant-info-header .url-input-row span {
    text-align: center !important;
  }
  
  /* Form grid mobile fixes */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* Operating hours mobile fixes */
  .hours-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .hours-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    align-items: stretch !important;
  }
  
  .hours-day {
    font-weight: 600 !important;
    text-align: center;
    padding: 4px 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
  }
  
  .hours-input {
    width: 100% !important;
    padding: 10px 12px !important;
  }
  
  .checkbox-wrapper {
    justify-content: center !important;
    padding: 8px 0;
  }
  
  /* Amenity rows mobile fixes */
  .amenity-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px !important;
  }
  
  /* Form actions mobile */
  .card > div[style*="justify-content: space-between"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .card > div[style*="justify-content: space-between"] > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .card > div[style*="justify-content: space-between"] .btn {
    width: 100% !important;
    text-align: center;
  }
  
  /* Bulk upload mobile fixes */
  .card-header div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .card-header div[style*="display: flex"] .btn {
    width: 100% !important;
    text-align: center;
  }
  
  /* File upload area mobile */
  .file-upload-area {
    padding: 24px !important;
  }
  
  /* Results table mobile */
  .results-summary {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .result-stat {
    padding: 12px !important;
  }
  
  .result-stat-value {
    font-size: 20px !important;
  }
}

/* Extra small mobile (iPhone vertical) */
@media (max-width: 480px) {
  /* Tighter column widths for very small screens */
  .data-table th:nth-child(1),
  .data-table td:nth-child(1) {
    width: 45% !important;
    padding: 10px 6px !important;
  }
  
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
    width: 25% !important;
    font-size: 10px !important;
    padding: 10px 2px !important;
  }
  
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
    width: 30% !important;
    padding: 6px 2px !important;
    min-width: 75px !important;
  }
  
  /* Stack buttons vertically with minimal spacing */
  .data-table .actions {
    flex-direction: column !important;
    gap: 2px !important;
  }
  
  /* Smaller action buttons */
  .data-table .btn {
    font-size: 10px !important;
    padding: 4px 6px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Ensure no overflow on actions column */
  .data-table td:nth-child(6) {
    overflow: visible !important;
    white-space: normal !important;
  }
}


@media (prefers-color-scheme: dark) {
  :root {
    --surface-light: var(--surface);
    --text-dark: var(--text);
    --border: var(--hair);
  }
  
  .form-control {
    background: rgba(255,255,255,0.05);
    color: var(--text);
  }
  
  th {
    background: rgba(255,255,255,0.03);
  }
  
  tr:hover {
    background: rgba(255,255,255,0.02);
  }
}