/* ═══════════════════════════════════════════════════════
   DUDHWALA - MILK MANAGER CSS
   Warm, friendly, illiterate-user-friendly design
═══════════════════════════════════════════════════════ */

:root {
  --cream: #FFFBF0;
  --cream-dark: #FFF3D0;
  --blue: #1565C0;
  --blue-light: #E3F2FD;
  --blue-mid: #42A5F5;
  --green: #2E7D32;
  --green-light: #E8F5E9;
  --green-mid: #66BB6A;
  --orange: #E65100;
  --orange-light: #FFF3E0;
  --orange-mid: #FFA726;
  --red: #C62828;
  --red-light: #FFEBEE;
  --red-mid: #EF5350;
  --purple: #6A1B9A;
  --purple-light: #F3E5F5;
  --teal: #00695C;
  --teal-light: #E0F2F1;
  --gold: #F57F17;
  --gold-light: #FFFDE7;
  --grey: #546E7A;
  --grey-light: #ECEFF1;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #607080;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ═══ NAVBAR ═══ */
.navbar {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 15px rgba(21,101,192,0.4);
}
.nav-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; }
.brand-icon { font-size: 28px; }
.brand-text { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 800; color: white; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 11px; gap: 1px; transition: all 0.2s;
}
.nav-link span:first-child { font-size: 18px; }
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.2); color: white;
}
.logout-link:hover { background: rgba(255,80,80,0.3) !important; }
.nav-user { margin-left: 12px; }
.user-badge {
  background: rgba(255,255,255,0.2); color: white;
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* ═══ MAIN CONTENT ═══ */
.main-content { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }

/* ═══ PAGE HEADER ═══ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-family: 'Baloo 2', cursive; font-size: 26px; font-weight: 800; color: var(--blue); }
.date-badge {
  background: var(--blue-light); color: var(--blue);
  padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 14px;
}

/* ═══ ALERTS ═══ */
.alert {
  padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-weight: 600; font-size: 15px;
}
.alert-success { background: var(--green-light); color: var(--green); border-left: 4px solid var(--green-mid); }
.alert-danger { background: var(--red-light); color: var(--red); border-left: 4px solid var(--red-mid); }
.alert-warning { background: var(--orange-light); color: var(--orange); border-left: 4px solid var(--orange-mid); }

/* ═══ STAT CARDS ═══ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  box-shadow: var(--shadow); transition: transform 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 28px; }
.stat-value { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 800; }
.stat-label { font-size: 12px; font-weight: 600; opacity: 0.8; }
.stat-blue { background: var(--blue-light); color: var(--blue); }
.stat-green { background: var(--green-light); color: var(--green); }
.stat-orange { background: var(--orange-light); color: var(--orange); }
.stat-red { background: var(--red-light); color: var(--red); }
.stat-teal { background: var(--teal-light); color: var(--teal); }
.stat-purple { background: var(--purple-light); color: var(--purple); }
.stat-gold { background: var(--gold-light); color: var(--gold); }
.stat-info { background: #E1F5FE; color: #01579B; }

/* ═══ QUICK ACTIONS ═══ */
.quick-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.action-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  text-decoration: none; font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow); transition: all 0.2s; flex: 1; min-width: 150px;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action-icon { font-size: 22px; }
.action-blue { background: var(--blue); color: white; }
.action-green { background: var(--green); color: white; }
.action-orange { background: var(--orange); color: white; }
.action-purple { background: var(--purple); color: white; }
.action-red { background: var(--red); color: white; }

/* ═══ PANELS ═══ */
.panel {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}
.panel-header {
  background: linear-gradient(135deg, #F5F5F5, #EEEEEE);
  padding: 14px 20px; font-weight: 800; font-size: 15px;
  border-bottom: 2px solid var(--border); color: var(--text);
}
.highlight-panel .panel-header { background: linear-gradient(135deg, var(--blue-light), #BBDEFB); color: var(--blue); }
.panel > *:not(.panel-header) { padding: 16px 20px; }
.panel > .delivery-list, .panel > .customer-grid,
.panel > .payment-list, .panel > .history-list,
.panel > .delivery-cards, .panel > .reports-grid { padding: 12px; }

/* ═══ SECTION TITLE ═══ */
.section-title {
  font-family: 'Baloo 2', cursive; font-size: 17px; font-weight: 800;
  color: var(--blue); margin-bottom: 12px; padding-left: 4px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; transition: all 0.2s; text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-grey { background: var(--grey-light); color: var(--grey); }
.btn-blue { background: var(--blue-light); color: var(--blue); }
.btn-orange { background: var(--orange-light); color: var(--orange); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-xl { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ═══ FORMS ═══ */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: 700; font-size: 13px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  font-family: 'Nunito', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue-mid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.align-bottom { justify-content: flex-end; }
.inline-form .form-row { align-items: flex-end; }
.qty-big { font-size: 22px; font-weight: 800; text-align: center; padding: 12px; }
.readonly-input { background: var(--grey-light); }

/* ═══ FILTER BAR ═══ */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px; background: white; padding: 12px 16px;
  border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700;
}
.filter-btn {
  padding: 6px 16px; border-radius: 20px; text-decoration: none;
  font-size: 13px; font-weight: 700; background: var(--grey-light); color: var(--grey);
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: white; }

/* ═══ DELIVERY SUMMARY BAR ═══ */
.delivery-summary-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.dsb-item {
  padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 14px;
}
.dsb-green { background: var(--green-light); color: var(--green); }
.dsb-orange { background: var(--orange-light); color: var(--orange); }
.dsb-grey { background: var(--grey-light); color: var(--grey); }
.dsb-blue { background: var(--blue-light); color: var(--blue); }

/* ═══ DATE NAV ═══ */
.date-nav {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  background: white; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.date-display { font-weight: 800; font-size: 16px; flex: 1; text-align: center; }
.today-badge { background: var(--blue); color: white; padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-left: 8px; }
.bulk-action-bar { margin-bottom: 14px; }

/* ═══ DELIVERY CARDS ═══ */
.cluster-divider {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  padding: 8px 16px; font-weight: 800; color: var(--blue);
  border-radius: var(--radius-sm); margin: 10px 0 6px;
}
.delivery-card {
  display: flex; align-items: center; gap: 14px;
  background: white; border-radius: var(--radius); padding: 14px;
  margin-bottom: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border-left: 5px solid var(--border); transition: all 0.2s;
}
.card-leave { border-left-color: var(--grey); background: var(--grey-light); }
.card-delivered { border-left-color: var(--orange-mid); }
.card-approved { border-left-color: var(--green-mid); background: var(--green-light); }
.card-pending { border-left-color: var(--orange-mid); }
.dc-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.dc-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: white; display: flex;
  align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.dc-name { font-weight: 800; font-size: 15px; }
.dc-sub { font-size: 12px; color: var(--text-muted); }
.dc-notes { font-size: 11px; color: var(--orange); margin-top: 2px; }
.dc-center { text-align: center; min-width: 80px; }
.dc-qty { font-family: 'Baloo 2', cursive; font-size: 20px; font-weight: 800; color: var(--blue); }
.dc-amount { font-size: 13px; font-weight: 700; color: var(--green); }
.dc-status { font-size: 11px; font-weight: 700; margin-top: 3px; }
.status-leave { color: var(--grey); }
.status-approved { color: var(--green); }
.status-done { color: var(--orange); }
.status-pending { color: var(--red); }
.dc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.act-btn {
  padding: 7px 12px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; font-size: 12px; font-weight: 700; transition: all 0.2s;
}
.act-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-deliver { background: var(--blue); color: white; }
.btn-leave { background: var(--grey-light); color: var(--grey); }
.btn-approve { background: var(--green); color: white; }

/* ═══ DELIVERY LIST (DASHBOARD) ═══ */
.delivery-list { }
.delivery-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-sm);
  margin-bottom: 4px; border-left: 4px solid var(--border);
}
.row-leave { background: var(--grey-light); border-left-color: var(--grey); }
.row-done { background: var(--green-light); border-left-color: var(--green-mid); }
.row-pending { background: var(--orange-light); border-left-color: var(--orange-mid); }
.del-icon { font-size: 18px; }
.del-name { flex: 1; font-weight: 700; }
.del-cluster { font-size: 11px; }
.del-slot { font-size: 12px; color: var(--text-muted); }
.del-qty { font-weight: 800; color: var(--blue); }
.del-status { font-size: 12px; font-weight: 700; min-width: 60px; text-align: right; }

/* ═══ CLUSTER GRID ═══ */
.cluster-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.cluster-card {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  padding: 10px 18px; border-radius: 24px; text-decoration: none;
  font-weight: 700; font-size: 14px; transition: all 0.2s;
}
.cluster-card:hover { background: var(--blue); color: white; }
.badge-cluster { background: var(--blue-light); color: var(--blue); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }

/* ═══ CUSTOMER GRID ═══ */
.customer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.customer-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s;
}
.customer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cust-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: linear-gradient(135deg, var(--blue-light), #E8F4FD);
}
.cust-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: white; display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.cust-name { font-weight: 800; font-size: 16px; }
.cust-id { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.cust-cluster-badge { margin-left: auto; background: var(--blue); color: white; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.cust-details { padding: 12px 14px; }
.cust-detail-row { display: flex; gap: 6px; align-items: center; padding: 4px 0; font-size: 13px; }
.cust-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }

/* ═══ CALENDAR ═══ */
.calendar-controls { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 12px; background: white; padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-month-display { font-family: 'Baloo 2', cursive; font-size: 20px; font-weight: 800; color: var(--blue); min-width: 180px; text-align: center; }
.calendar-legend { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 12px; }
.leg-green { background: var(--green-light); color: var(--green); }
.leg-orange { background: var(--orange-light); color: var(--orange); }
.leg-grey { background: var(--grey-light); color: var(--grey); }
.calendar-grid { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--blue); }
.cal-day-header { text-align: center; padding: 10px; color: white; font-weight: 800; font-size: 13px; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell {
  min-height: 80px; border: 1px solid var(--border); padding: 6px;
  cursor: pointer; transition: background 0.2s; position: relative;
}
.cal-cell:hover { background: var(--blue-light); }
.cal-today { background: #FFF3E0 !important; }
.cal-has-data { cursor: pointer; }
.cal-empty { background: var(--grey-light); opacity: 0.5; }
.cal-date { font-weight: 800; font-size: 13px; color: var(--text-muted); }
.cal-dot { font-size: 11px; font-weight: 700; padding: 1px 4px; border-radius: 6px; margin-top: 2px; }
.dot-green { background: var(--green-light); color: var(--green); }
.dot-orange { background: var(--orange-light); color: var(--orange); }
.dot-grey { background: var(--grey-light); color: var(--grey); }
.cal-litres { font-size: 10px; font-weight: 800; color: var(--blue); margin-top: 2px; }
.day-detail-panel {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0; margin-top: 12px; overflow: hidden;
}
.detail-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--blue-light); font-weight: 800; color: var(--blue); }
.detail-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--blue); font-weight: 800; }
.detail-table { width: 100%; border-collapse: collapse; margin: 12px; width: calc(100% - 24px); }
.detail-table th { background: var(--blue); color: white; padding: 8px 12px; font-size: 13px; text-align: left; }
.detail-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }

/* ═══ PAYMENTS ═══ */
.month-selector { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.month-btn { padding: 7px 14px; border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 700; background: var(--grey-light); color: var(--grey); transition: all 0.2s; }
.month-btn.active, .month-btn:hover { background: var(--blue); color: white; }
.payment-list { }
.payment-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius-sm);
  margin-bottom: 6px; border-left: 5px solid var(--border);
  background: var(--grey-light);
}
.row-due { border-left-color: var(--red-mid); background: var(--red-light); }
.row-paid { border-left-color: var(--green-mid); background: var(--green-light); }
.row-zero { border-left-color: var(--border); }
.pay-cust { display: flex; align-items: center; gap: 10px; flex: 1; }
.pay-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.pay-name { font-weight: 800; font-size: 15px; }
.pay-sub { font-size: 12px; color: var(--text-muted); }
.pay-amounts { display: flex; gap: 16px; }
.pay-item { display: flex; flex-direction: column; align-items: center; }
.pay-lbl { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.pay-val { font-family: 'Baloo 2', cursive; font-size: 16px; font-weight: 800; }
.pay-val.green { color: var(--green); }
.pay-val.red { color: var(--red); }
.pay-actions { display: flex; gap: 8px; }
.pay-history { background: var(--blue-light); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; margin-top: -4px; }
.hist-item { font-size: 13px; padding: 3px 0; }

/* ═══ REPORTS ═══ */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-card { display: flex; align-items: center; gap: 12px; background: var(--grey-light); padding: 12px; border-radius: var(--radius-sm); }
.rep-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.rep-info { flex: 1; }
.rep-name { font-weight: 800; font-size: 14px; }
.rep-sub { font-size: 11px; color: var(--text-muted); }

/* ═══ CUSTOMER DASHBOARD ═══ */
.today-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.today-slot-card { background: white; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--border); }
.slot-leave { border-top-color: var(--grey); background: var(--grey-light); }
.slot-done { border-top-color: var(--green-mid); }
.slot-pending { border-top-color: var(--orange-mid); }
.slot-icon { font-size: 36px; }
.slot-name { font-family: 'Baloo 2', cursive; font-size: 18px; font-weight: 800; margin-top: 6px; }
.slot-qty { font-size: 28px; font-weight: 800; color: var(--blue); }
.slot-status { font-size: 13px; font-weight: 700; margin-top: 6px; }
.slot-extra { font-size: 12px; color: var(--orange); font-weight: 700; }
.slot-notes { font-size: 11px; color: var(--text-muted); }

/* ═══ HISTORY LIST ═══ */
.history-list { }
.hist-del-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius-sm); margin-bottom: 4px;
  border-left: 4px solid var(--border);
}
.hist-date { text-align: center; font-weight: 800; font-size: 14px; min-width: 40px; }
.hist-slot { font-size: 13px; min-width: 100px; }
.hist-qty { flex: 1; font-size: 13px; }
.hist-status { font-size: 12px; }
.badge-green { background: var(--green-light); color: var(--green); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 11px; }
.badge-blue { background: var(--blue-light); color: var(--blue); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 11px; }
.badge-orange { background: var(--orange-light); color: var(--orange); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 11px; }
.badge-leave { background: var(--grey-light); color: var(--grey); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 11px; }

/* ═══ SCHEDULE DISPLAY ═══ */
.schedule-display { display: flex; gap: 14px; flex-wrap: wrap; }
.sch-item { display: flex; align-items: center; gap: 8px; background: var(--grey-light); padding: 12px 18px; border-radius: var(--radius); }
.sch-icon { font-size: 22px; }
.sch-label { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.sch-qty { font-family: 'Baloo 2', cursive; font-size: 18px; font-weight: 800; color: var(--blue); }

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-box {
  background: white; border-radius: var(--radius); padding: 28px;
  width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 16px;
}
.modal-header { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 800; color: var(--blue); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ═══ LOGIN ═══ */
.login-body { background: linear-gradient(135deg, #1565C0 0%, #0D47A1 50%, #01579B 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-wrapper { width: 100%; max-width: 420px; padding: 20px; }
.login-card { background: white; border-radius: 20px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-header { text-align: center; margin-bottom: 28px; }
.login-icon { font-size: 64px; display: block; margin-bottom: 10px; }
.login-header h1 { font-family: 'Baloo 2', cursive; font-size: 32px; font-weight: 800; color: var(--blue); }
.login-header p { color: var(--text-muted); font-size: 15px; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-hint { text-align: center; margin-top: 20px; padding: 12px; background: var(--grey-light); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-muted); }
.login-hint strong { color: var(--blue); }
.header-controls { display: flex; gap: 10px; align-items: center; }

/* ═══ EMPTY STATE ═══ */
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); font-size: 15px; }

/* ═══ FOOTER ═══ */
.footer { text-align: center; padding: 16px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 24px; }

/* ═══ BADGES ═══ */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-green-bg { background: var(--green); color: white; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-3, .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .nav-label { display: none; }
  .nav-link { padding: 6px 10px; }
  .brand-text { font-size: 18px; }
  .delivery-card { flex-wrap: wrap; }
  .pay-amounts { gap: 10px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .quick-actions .action-btn { min-width: 120px; }
  .cal-cell { min-height: 55px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 0 12px; }
  .main-content { padding: 16px 12px; }
  .payment-row { flex-direction: column; align-items: flex-start; }
  .dc-actions { justify-content: center; }
}

/* ═══ QTY QUICK-PICK BUTTONS ═══ */
.qty-picker {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.qty-btn {
  padding: 4px 9px; border-radius: 20px; border: 2px solid var(--blue-mid);
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 800; cursor: pointer;
  transition: all 0.15s; font-family: 'Nunito', sans-serif;
  line-height: 1;
}
.qty-btn:hover {
  background: var(--blue); color: white; border-color: var(--blue);
  transform: translateY(-1px);
}
.qty-picker-lg { margin-top: 8px; }
.qty-btn-lg {
  padding: 7px 14px; font-size: 15px; border-radius: 22px;
  border-width: 2px;
}
