/* ==========================================================================
   BRING! SHOLI - MAIN CSS & DESIGN TOKENS
   Modern, vibrant, sleek theme variables, typography, resets & layouts.
   ========================================================================== */

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

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(51, 65, 85, 0.95);
  --bg-card-done: rgba(15, 23, 42, 0.6);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --border-card: rgba(255, 255, 255, 0.1);
  
  --accent-primary: #38bdf8;
  --accent-primary-hover: #0284c7;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-purple: #a855f7;

  /* Store Brand Palette */
  --store-billa: #e60000;
  --store-billa-bg: rgba(255, 210, 0, 0.2);
  --store-billa-border: #ffd200;

  --store-dm: #003a70;
  --store-dm-bg: rgba(0, 58, 112, 0.25);
  --store-dm-border: #fddb00;

  --store-spar: #00843d;
  --store-spar-bg: rgba(0, 132, 61, 0.25);
  --store-spar-border: #e30613;

  --store-hofer: #00a3e0;
  --store-hofer-bg: rgba(0, 163, 224, 0.25);
  --store-hofer-border: #00205b;

  --store-bipa: #e4007f;
  --store-bipa-bg: rgba(228, 0, 127, 0.25);
  --store-bipa-border: #e4007f;

  /* Spacing & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.25);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1080px;
  --header-height: 70px;
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-done: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;
  --border-card: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Responsive App Shell */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 120px 16px;
}

@media (min-width: 640px) {
  .app-container {
    padding: 0 24px 120px 24px;
  }
}
