/* ========================================
   TABLE OF CONTENTS
   0. DESIGN TOKENS (CSS VARIABLES)
   1. RESET & BASE
   2. LAYOUT
   3. SIDEBAR
   4. HEADER
   5. DASHBOARD
   6. LOGIN PAGE
   7. LANDING PAGE
   8. COMPONENTS
   9. FORMS
   10. TABLES
   11. CARDS
   12. MODALS
   13. BUTTONS
   14. TOAST NOTIFICATIONS
   15. CHARTS
   16. ICONS
   17. UTILITIES
   18. ANIMATIONS
   19. RESPONSIVE
   ======================================== */

/* ========================================
   0. DESIGN TOKENS - KUNASH THEME
   Red-Orange | Beige | Vanilla Cream
   NO WHITE COLOR USED ANYWHERE
   ======================================== */
:root {
    /* Brand Colors - Red-Orange Theme */
    --color-primary: #FE8C00;
    --color-primary-dark: #E07A00;
    --color-primary-light: #FFA033;
    --color-primary-soft: #FFF1D1;
    --color-secondary: #E07A00;
    --gradient-primary: linear-gradient(135deg, #FE8C00 0%, #E07A00 100%);

    /* Background Colors - No White! */
    --color-bg: #F9F4EA;
    --color-bg-alt: #FFF1D1;
    --color-surface: #FDF8F0;
    --color-surface-hover: #FFF1D1;
    --color-sidebar: #f6eed9;
    --color-sidebar-hover: #ed9932;
    --color-header: #f6eed9;

    /* Semantic Colors */
    --color-success: #4c8c6b;
    --color-success-soft: #E8F3ED;
    --color-danger: #e15b4d;
    --color-danger-soft: #FDE8E5;
    --color-warning: #e2a13b;
    --color-warning-soft: #FDF3E0;
    --color-info: #5a89a8;
    --color-info-soft: #EAF1F5;

    /* Neutrals - Warm Beige Scale */
    --color-text: #3D2C1E;
    --color-text-muted: #8A7B6A;
    --color-text-subtle: #B8A99A;
    --color-border: #E8DCCB;
    --color-border-strong: #D4C4B0;
    --color-shadow: rgba(62, 45, 30, 0.12);

    /* Chart Colors - Warm Palette */
    --chart-1: #FE8C00;
    --chart-2: #4c8c6b;
    --chart-3: #e2a13b;
    --chart-4: #5a89a8;
    --chart-5: #a15c8f;
    --chart-6: #8a6d4f;
    --chart-grid: #E8DCCB;

    /* Elevation - No White Shadows */
    --shadow-sm: 0 2px 8px rgba(62, 45, 30, 0.08);
    --shadow-md: 0 4px 20px rgba(62, 45, 30, 0.12);
    --shadow-lg: 0 8px 40px rgba(62, 45, 30, 0.16);
    --shadow-xl: 0 16px 60px rgba(62, 45, 30, 0.20);

    /* Radius & Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;

    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;

    /* Motion */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ========================================
   1. RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ========================================
   2. LAYOUT
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: 264px;
    flex: 1;
    padding: 20px 28px;
    transition: margin-left var(--transition-slow);
    background: var(--color-bg);
}

.main-content.sidebar-collapsed {
    margin-left: 72px;
}

.page-content {
    background: var(--color-surface);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* ========================================
/* ========================================
/* ========================================
   3. SIDEBAR - CLEAN / MINIMAL (Claude-style)
   Flat rounded rows, soft states, no gradients on nav items
   ======================================== */
/* ==========================================================================
   DESIGN VARIABLES (Orange Active Accent)
   ========================================================================== */
:root {
  --bg-sidebar: #171926;             
  --bg-app-body: #ffffff;            
  --color-active-pill: #ff8c38;      
  --color-inactive-icon: #a0a5b5;    
  --color-hover-icon: #ffffff;       
  
  /* Dimensions & Physics */
  --sidebar-width-expanded: 240px;
  --sidebar-width-collapsed: 78px;
  --transition-speed: 0.3s;
  --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar, .sidebar * {
  box-sizing: border-box;
}

/* ==========================================================================
   SIDEBAR LAYOUT WRAPPER
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: var(--sidebar-width-expanded);
  background-color: var(--bg-sidebar);
  border-radius: 40px;                
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  z-index: 1000;
  transition: width var(--transition-speed) var(--transition-curve);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* App workspace margin adapter */
.main-content {
  margin-left: calc(var(--sidebar-width-expanded) + 40px);
  transition: margin-left var(--transition-speed) var(--transition-curve);
}

/* ==========================================================================
   HEADER / BRANDING & TOGGLE AREA
   ========================================================================== */
.sidebar .logo {
  display: flex;
  align-items: center;
  padding: 0 18px;
  margin-bottom: 25px;
  position: relative;
  min-height: 40px;
  transition: all var(--transition-speed) var(--transition-curve);
}

.sidebar .logo-img-wrapper {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar .brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.sidebar .logo h2 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0 12px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition-speed) var(--transition-curve);
}

.sidebar .sidebar-toggle {
  background: none;
  border: none;
  color: var(--color-inactive-icon);
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  margin-left: auto;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, transform var(--transition-speed) var(--transition-curve), background-color 0.2s ease;
}

.sidebar .sidebar-toggle:hover {
  color: var(--color-hover-icon);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   NAVIGATION ENGINE
   ========================================================================== */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-item {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 21px;
  text-decoration: none;
  color: var(--color-inactive-icon);
  transition: color 0.2s ease;
}

.sidebar-nav .nav-icon {
  min-width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 5;
}

.sidebar-nav .nav-label {
  margin-left: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition-speed) var(--transition-curve);
}

.sidebar-nav .nav-item:not(.active) .nav-link:hover {
  color: var(--color-hover-icon);
}

/* ==========================================================================
   THE OUTWARD INVERTED CURVE EFFECT (Active State)
   ========================================================================== */
.sidebar-nav .nav-link.active {
  color: var(--bg-sidebar);                  
  background-color: var(--bg-app-body);      
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  position: relative;
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 6px 6px 0 6px var(--bg-app-body);
  pointer-events: none;
}

.sidebar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-top-right-radius: 20px;
  box-shadow: 6px -6px 0 6px var(--bg-app-body);
  pointer-events: none;
}

.sidebar-nav .nav-link.active .nav-icon {
  position: relative;
  color: var(--bg-sidebar);
}

.sidebar-nav .nav-link.active .nav-icon::before {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  background-color: var(--color-active-pill);
  border-radius: 50%;
  z-index: -1;
}

.sidebar-nav .nav-link.active .nav-label {
  color: #1a1d2e;                    
  font-weight: 600;
}

/* ==========================================================================
   SIDEBAR FOOTER STYLING
   ========================================================================== */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 18px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-avatar {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s;
}

.sidebar-avatar:hover {
  border-color: var(--color-active-pill);
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logout-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e06666;                    
  height: 40px;
}

.logout-btn .nav-icon {
  min-width: 36px;
  display: flex;
  justify-content: center;
}

.logout-btn .nav-label {
  margin-left: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition-speed) var(--transition-curve);
}

.logout-btn:hover {
  color: #ff8080;                    
}

/* ==========================================================================
   MINIMIZED SIDEBAR STATE CONFIGURATIONS (Collapsing Rules)
   ========================================================================== */
.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.main-content.sidebar-collapsed {
  margin-left: calc(var(--sidebar-width-collapsed) + 40px);
}

/* Hide text gracefully */
.sidebar.collapsed .logo h2,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .logout-btn .nav-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  margin: 0;
}

/* Header stacks logo and expand button vertically when collapsed */
.sidebar.collapsed .logo {
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: auto;
  margin-bottom: 20px;
}

.sidebar.collapsed .logo-img-wrapper {
  display: flex;
  margin: 0 auto;
}

.sidebar.collapsed .brand-logo {
  width: 32px;
  height: 32px;
}

/* Expand toggle stays visible and flips */
.sidebar.collapsed .sidebar-toggle {
  margin: 0 auto;
  transform: rotate(180deg);
  opacity: 1;
  pointer-events: auto;
}

.sidebar.collapsed .sidebar-nav .nav-link {
  padding: 0;
  justify-content: center;
}

.sidebar.collapsed .sidebar-nav .nav-icon {
  min-width: 100%;
}

.sidebar.collapsed .sidebar-footer {
  padding: 20px 0 0 0;
  align-items: center;
}

.sidebar.collapsed .logout-btn {
  width: 100%;
  justify-content: center;
}

/* 4. ======================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f6eed9 0%, #F9F4EA 100%);
    padding: 18px 28px;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
    margin: -20px -28px 20px -28px;
    width: calc(100% + 56px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition-base);
}

.notifications:hover {
    background: var(--color-bg-alt);
}

.notifications i {
    font-size: 20px;
    color: var(--color-text-muted);
}

.notifications .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-danger);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background var(--transition-base);
}

.user-info:hover {
    background: var(--color-bg-alt);
}

.user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info .user-details {
    display: flex;
    flex-direction: column;
}

.user-info .user-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--color-text);
}

.user-info .user-role {
    font-size: 12px;
    color: var(--color-text-muted);
}

.user-info .dropdown-icon {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: 5px;
}

/* ========================================
   5. DASHBOARD
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
    margin-bottom: 25px;
}

.stat-card {
    background: var(--color-surface);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue    { background: var(--color-primary-soft); color: var(--color-primary); }
.stat-icon.green   { background: var(--color-success-soft); color: var(--color-success); }
.stat-icon.orange  { background: var(--color-warning-soft); color: var(--color-warning); }
.stat-icon.purple  { background: #F3E8FF; color: #7c3aed; }
.stat-icon.red     { background: var(--color-danger-soft); color: var(--color-danger); }
.stat-icon.cyan    { background: var(--color-info-soft); color: var(--color-info); }

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info .stat-label {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 3px;
}

.stat-info .stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-info .stat-change.up   { color: var(--color-success); }
.stat-info .stat-change.down { color: var(--color-danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-5);
    margin-bottom: 25px;
}

.dashboard-chart,
.recent-orders,
.low-stock {
    background: var(--color-surface);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.dashboard-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

.dashboard-chart .chart-header h3,
.recent-orders h3,
.low-stock h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.recent-orders h3,
.low-stock h3 {
    margin-bottom: 15px;
}

.dashboard-chart .chart-header .chart-actions {
    display: flex;
    gap: 8px;
}

.dashboard-chart .chart-header .chart-actions button {
    padding: 5px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.dashboard-chart .chart-header .chart-actions button:hover,
.dashboard-chart .chart-header .chart-actions button.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.low-stock .stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.low-stock .stock-item:last-child {
    border-bottom: none;
}

.low-stock .stock-item .stock-name {
    font-weight: 500;
}

.low-stock .stock-item .stock-qty {
    color: var(--color-danger);
    font-weight: 600;
}

/* ========================================
   6. LOGIN PAGE
   ======================================== */
.login-page {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: var(--space-5);
}

.login-box {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.5s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: var(--color-primary);
    padding: 15px;
    object-fit: contain;
}

.login-logo h1 {
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

/* ========================================
   7. LANDING PAGE
   ======================================== */
.landing-page {
    font-family: var(--font-family);
    color: var(--color-text);
    overflow-x: hidden;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.landing-nav.scrolled {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    padding: 8px;
    object-fit: contain;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-base);
    position: relative;
}

.nav-menu a:not(.btn-nav-login):hover {
    color: var(--color-primary);
}

.nav-menu a:not(.btn-nav-login)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu a:not(.btn-nav-login):hover::after {
    width: 100%;
}

.btn-nav-login {
    padding: 10px 25px;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
    transition: all var(--transition-base) !important;
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 140, 0, 0.35);
    color: white !important;
}

.btn-nav-login::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 140, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideUp 0.8s ease-out;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-top: 5px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.features {
    padding: 80px 0;
    background: var(--color-surface);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 35px 30px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .feature-icon i {
    font-size: 28px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.about {
    padding: 80px 0;
    background: var(--color-bg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-text);
}

.about-item i {
    color: var(--color-success);
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact {
    padding: 80px 0;
    background: var(--color-surface);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: var(--color-bg-alt);
    transform: translateX(5px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.footer {
    background: #2C241D;
    color: white;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: #B8A99A;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #B8A99A;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-col ul a:hover {
    color: var(--color-primary-light);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-size: var(--font-size-base);
}

.newsletter-form input::placeholder {
    color: #B8A99A;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: #B8A99A;
    font-size: var(--font-size-base);
}

/* ========================================
   8. COMPONENTS
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   9. FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-size: var(--font-size-base);
}

.form-group label i {
    margin-right: 8px;
    color: var(--color-primary);
}

.form-group .required {
    color: var(--color-danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: var(--color-bg);
    font-family: inherit;
    color: var(--color-text);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 140, 0, 0.12);
    background: var(--color-surface);
}

.form-control.error {
    border-color: var(--color-danger);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-control.success {
    border-color: var(--color-success);
}

.form-control:disabled {
    background: var(--color-bg-alt);
    color: var(--color-text-subtle);
    cursor: not-allowed;
}

.form-control::placeholder {
    color: var(--color-text-subtle);
}

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' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A7B6A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: 5px;
    transition: color var(--transition-base);
}

.toggle-password:hover {
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.remember-me label {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    cursor: pointer;
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition-base);
}

.forgot-password:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

/* ========================================
   10. TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    margin-top: var(--space-5);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-base);
}

.table thead {
    background: var(--color-bg-alt);
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-bg-alt);
    vertical-align: middle;
    color: var(--color-text);
}

.table tbody tr:hover {
    background: var(--color-bg);
}

.table .actions {
    display: flex;
    gap: 8px;
}

.table .actions button {
    padding: 5px 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.table .actions .btn-view   { background: var(--color-info-soft); color: var(--color-info); }
.table .actions .btn-view:hover   { background: var(--color-info); color: #fff; }
.table .actions .btn-edit   { background: var(--color-success-soft); color: var(--color-success); }
.table .actions .btn-edit:hover   { background: var(--color-success); color: #fff; }
.table .actions .btn-delete { background: var(--color-danger-soft); color: var(--color-danger); }
.table .actions .btn-delete:hover { background: var(--color-danger); color: #fff; }

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active,
.status-badge.completed,
.status-badge.in-stock {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.status-badge.inactive,
.status-badge.cancelled,
.status-badge.low-stock {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.status-badge.pending {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}

/* ========================================
   11. CARDS
   ======================================== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-bg-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-bg-alt);
    background: var(--color-bg);
}

/* ========================================
   12. MODALS
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 29, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-bg-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-base);
    padding: 5px;
}

.modal-header .close-btn:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--color-bg-alt);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========================================
   13. BUTTONS
   ======================================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 140, 0, 0.35);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #3d7a5a;
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: #c94b3e;
}

.btn-warning {
    background: var(--color-warning);
    color: white;
}

.btn-warning:hover {
    background: #c98a30;
}

.btn-info {
    background: var(--color-info);
    color: white;
}

.btn-info:hover {
    background: #4a7390;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 30px; font-size: var(--font-size-lg); }
.btn-block { width: 100%; justify-content: center; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(254, 140, 0, 0.3);
}

/* ========================================
   14. TOAST NOTIFICATIONS
   ======================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-success { background: var(--color-success); }
.toast-error   { background: var(--color-danger); }
.toast-warning { background: var(--color-warning); }
.toast-info    { background: var(--color-info); }

.toast i {
    font-size: 20px;
}

/* ========================================
   15. CHARTS
   ======================================== */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.chart-container canvas,
.chart-container svg {
    width: 100% !important;
    max-width: 100%;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: var(--space-4);
    justify-content: center;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-legend-item:nth-child(6n+1) .chart-legend-dot { background: var(--chart-1); }
.chart-legend-item:nth-child(6n+2) .chart-legend-dot { background: var(--chart-2); }
.chart-legend-item:nth-child(6n+3) .chart-legend-dot { background: var(--chart-3); }
.chart-legend-item:nth-child(6n+4) .chart-legend-dot { background: var(--chart-4); }
.chart-legend-item:nth-child(6n+5) .chart-legend-dot { background: var(--chart-5); }
.chart-legend-item:nth-child(6n+6) .chart-legend-dot { background: var(--chart-6); }

.chart-tooltip {
    background: var(--color-text);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--color-text-subtle);
    font-size: var(--font-size-base);
    gap: 8px;
}

/* ========================================
   16. ICONS
   ======================================== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-xs { font-size: 12px; width: 12px; height: 12px; }
.icon-sm { font-size: 14px; width: 14px; height: 14px; }
.icon-md { font-size: 18px; width: 18px; height: 18px; }
.icon-lg { font-size: 24px; width: 24px; height: 24px; }
.icon-xl { font-size: 32px; width: 32px; height: 32px; }

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.icon-circle.blue    { background: var(--color-primary-soft); color: var(--color-primary); }
.icon-circle.green   { background: var(--color-success-soft); color: var(--color-success); }
.icon-circle.orange  { background: var(--color-warning-soft); color: var(--color-warning); }
.icon-circle.red     { background: var(--color-danger-soft); color: var(--color-danger); }
.icon-circle.cyan    { background: var(--color-info-soft); color: var(--color-info); }
.icon-circle.solid   { background: var(--gradient-primary); color: #fff; }

svg.icon { fill: none; stroke: currentColor; stroke-width: 2; }

/* ========================================
   17. UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.text-muted   { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger  { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-primary { color: var(--color-primary); }

.fw-bold     { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal   { font-weight: 400; }

.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.d-flex { display: flex; }
.d-grid { display: grid; }

.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.hidden    { display: none; }
.invisible { visibility: hidden; }
.overflow-hidden { overflow: hidden; }

.rounded    { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }

.shadow    { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========================================
   18. ANIMATIONS
   ======================================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100px); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate {
    animation: slideUp 0.6s ease-out;
}

/* ========================================
   19. RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-features { justify-items: center; }
    .contact-container { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active { display: flex; }

    .sidebar { width: 70px; }
    .sidebar .logo h2, .sidebar-nav .nav-link span, .sidebar-nav .nav-link .badge, .logout-btn span { display: none; }
    .sidebar .logo { justify-content: center; padding: 15px; }
    .sidebar .logo .logo-icon { width: 35px; height: 35px; font-size: 18px; }
    .sidebar-nav .nav-link { justify-content: center; padding: 12px; }
    .sidebar-nav .nav-link i { font-size: 20px; width: auto; }
    .logout-btn { justify-content: center; padding: 10px; }
    .logout-btn i { font-size: 20px; width: auto; }
    .sidebar-toggle { display: none; }

    .main-content { margin-left: 70px; padding: 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-options { flex-direction: column; gap: 10px; align-items: flex-start; }
    .header { flex-direction: column; align-items: flex-start; gap: 15px; padding: 12px 15px; margin: -15px -15px 20px -15px; width: calc(100% + 30px); }
    .header-right { width: 100%; justify-content: flex-end; }
    .modal { max-width: 100%; margin: 10px; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 15px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .login-box { padding: 30px 20px; }
    .login-logo h1 { font-size: 24px; }
    .stat-card { padding: 15px; }
    .stat-info .stat-value { font-size: 22px; }
    .table th, .table td { padding: 8px 10px; font-size: 12px; }
    .card-header { flex-direction: column; gap: 10px; align-items: stretch; }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #B8A99A; }