/**
 * Bengali Bhoj Rajshahi — Admin Dashboard Stylesheet
 * Responsive, Modern, and Royal Bangaliana Aesthetic
 */

:root {
  --primary: #b81414;
  --primary-hover: #9e1010;
  --primary-light: #fef2f2;
  --brand-yellow: #ffd000;
  --brand-yellow-hover: #e6bc00;
  --dark-charcoal: #2b1f1d;
  --text-main: #332724;
  --text-muted: #736762;
  --bg-page: #f8f5f0;
  --bg-sidebar: #1f1614;
  --bg-card: #ffffff;
  --border-light: #e8dfd5;
  --border-dark: #382926;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. Login Authentication View
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top center, #fbf2e3 0%, #f4eae0 60%, #eaddce 100%);
  position: relative;
  overflow: hidden;
}

.login-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 208, 0, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: 0 16px 40px rgba(43, 31, 29, 0.12);
  border: 1px solid rgba(255, 208, 0, 0.4);
  position: relative;
  z-index: 2;
  animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-logo-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ffd000, #b81414);
  box-shadow: 0 6px 20px rgba(184, 20, 20, 0.2);
}

.login-logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.login-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.login-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark-charcoal);
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fff;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 20, 20, 0.12);
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  padding: 4px;
}

.toggle-password-btn:hover {
  opacity: 1;
}

.form-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.86rem;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.back-to-site-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-to-site-link:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(184, 20, 20, 0.3);
}

.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 20, 20, 0.4);
}

.login-credentials-hint {
  margin-top: 24px;
  padding: 12px 14px;
  background: #fbf9f4;
  border: 1px dashed #e2d7c5;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #6b5c57;
}

.hint-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.hint-row code {
  background: #eee5d8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: #2b1f1d;
}

/* ==========================================================================
   2. Main Dashboard Layout
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar — Exact Look & Feel matching screenshot */
.sidebar {
  width: 270px;
  background: #0f1713;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid #1a271f;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #1c2e24;
  border-radius: 4px;
}

.sidebar-header {
  padding: 20px 18px 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1c2b22;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brand-yellow);
}

.sidebar-brand .brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.sidebar-brand .brand-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #56b870;
  color: #ffffff;
  padding: 1px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 14px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Accordion Groups */
.nav-accordion-group {
  margin-bottom: 4px;
}

.group-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.group-header-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.group-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}

.group-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.96rem;
}

.group-arrow {
  font-size: 0.82rem;
  color: #8da497;
  transition: transform 0.22s ease;
  display: inline-block;
}

.nav-accordion-group.collapsed .group-arrow {
  transform: rotate(-90deg);
}

.group-children {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0 6px 0;
  transition: max-height 0.25s ease;
}

.nav-accordion-group.collapsed .group-children {
  display: none;
}

/* Sub-items (Pill design matching screenshot) */
.nav-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 9px 14px 9px 40px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #8fa89b;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.nav-sub-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Active green pill state matching 'Staff & roles' in user screenshot */
.nav-sub-btn.active {
  background: #56b870 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(86, 184, 112, 0.35);
}

.nav-sub-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
}

.nav-sub-badge.highlight {
  background: #ffd000;
  color: #b81414;
}

.nav-sub-btn.active .nav-sub-badge {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* Bottom Settings Card */
.sidebar-settings-card {
  margin: 14px 8px 6px 8px;
  border: 1px solid #1f3025;
  background: #142019;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sidebar-settings-card:hover {
  border-color: #2e4738;
}

.settings-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.settings-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.settings-nav-btn.active {
  background: #56b870 !important;
  color: #ffffff !important;
}

.sidebar-footer {
  padding: 18px 14px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn-view-site {
  display: block;
  text-align: center;
  padding: 9px;
  background: rgba(255, 208, 0, 0.15);
  color: var(--brand-yellow);
  border: 1px solid rgba(255, 208, 0, 0.35);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.sidebar-btn-view-site:hover {
  background: var(--brand-yellow);
  color: #1a120e;
}

.sidebar-btn-logout {
  background: transparent;
  color: #e57373;
  border: 1px solid rgba(229, 115, 115, 0.3);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-btn-logout:hover {
  background: #e57373;
  color: #fff;
}

/* Main Content Container */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-page);
}

/* Topbar */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e8e2d8;
  color: #423531;
}

.btn-secondary:hover {
  background: #ddd4c8;
}

.btn-save-server {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-save-server:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-add-dish {
  background: var(--brand-yellow);
  color: #1a120e;
  box-shadow: 0 4px 12px rgba(255, 208, 0, 0.3);
}

.btn-add-dish:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f5ede2;
  border-color: #d8cbb8;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #faf6f0;
  border: 1px solid var(--border-light);
  border-radius: 30px;
}

.user-avatar {
  font-size: 1.2rem;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.user-role {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
  display: block;
}

/* Content Body */
.content-body {
  padding: 28px;
  flex-grow: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

/* ==========================================================================
   3. Tab 1: Overview Styles
   ========================================================================== */
.welcome-banner {
  background: linear-gradient(135deg, #b81414, #8b0c0c);
  color: #fff;
  padding: 26px 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(184, 20, 20, 0.2);
}

.banner-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 0.94rem;
  opacity: 0.9;
  max-width: 600px;
}

.banner-quick-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

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

.btn-light:hover {
  background: #fdf2f2;
}

.btn-gold {
  background: var(--brand-yellow);
  color: #1a120e;
}

.btn-gold:hover {
  background: var(--brand-yellow-hover);
}

/* Stats Cards */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.icon-bg-red { background: #fef2f2; color: #b81414; }
.icon-bg-gold { background: #fffbeb; color: #d97706; }
.icon-bg-green { background: #f0fdf4; color: #16a34a; }
.icon-bg-blue { background: #eff6ff; color: #2563eb; }

.stat-card-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  line-height: 1.2;
}

.stat-card-sub {
  display: block;
  font-size: 0.78rem;
  color: #8c827a;
}

.overview-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.overview-section-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.offers-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ==========================================================================
   4. Tab 2: Menu Management (Table & Controls)
   ========================================================================== */
.filter-controls-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  opacity: 0.6;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 0.9rem;
}

.filter-dropdowns {
  display: flex;
  gap: 10px;
}

.form-select, .form-input {
  padding: 9px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text-main);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 20, 20, 0.1);
}

/* Dishes Table */
.dishes-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.dishes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dishes-table th {
  background: #faf7f2;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.dishes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 0.92rem;
}

.dishes-table tr:hover td {
  background: #fefdf9;
}

.dish-thumb-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-light);
}

.dish-name-cell .name {
  font-weight: 700;
  color: var(--dark-charcoal);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.dish-name-cell .desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 380px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tag-pill {
  display: inline-block;
  padding: 3px 9px;
  background: #f5ede2;
  color: #704f38;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.table-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.table-price-current {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

.table-price-orig {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 600;
}

.table-discount-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #b81414;
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 3px;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-edit {
  background: #fdf2f2;
  color: #b81414;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-edit:hover {
  background: #b81414;
  color: #fff;
}

.btn-action-delete {
  background: #fbf9f9;
  color: #888;
  border: 1px solid #eee;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-delete:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* ==========================================================================
   5. Tab 3: Offers Cards Grid
   ========================================================================== */
.offers-management-header {
  background: var(--bg-card);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
}

.offers-management-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  margin-bottom: 4px;
}

.offers-management-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.offers-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.admin-offer-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255, 208, 0, 0.6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.offer-card-top {
  position: relative;
  height: 160px;
}

.offer-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-badge-float {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #b81414;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.offer-card-body {
  padding: 16px;
  flex-grow: 1;
}

.offer-dish-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark-charcoal);
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.offer-current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.offer-old-price {
  font-size: 0.92rem;
  color: #888;
  text-decoration: line-through;
}

.offer-card-footer {
  padding: 12px 16px;
  background: #faf7f2;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   6. Tab 4: Restaurant Settings Form
   ========================================================================== */
.settings-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  max-width: 850px;
}

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

.settings-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  margin-bottom: 4px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.settings-form .form-group {
  margin-bottom: 18px;
}

.settings-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark-charcoal);
}

.form-actions-row {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   7. Dish Modal Styles (Add / Edit)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 8, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-light);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  background: #f3f3f3;
  color: #000;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-columns-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

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

.input-with-prefix .prefix {
  position: absolute;
  left: 12px;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

.input-with-prefix input {
  padding-left: 28px !important;
}

.checkbox-tags-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #fdfaf6;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.dish-preview-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}

.preview-img-container {
  height: 160px;
  background: #eee;
}

.preview-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-card-info {
  padding: 12px;
}

.preview-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark-charcoal);
}

.preset-thumbs-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.preset-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.preset-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.08);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #faf7f2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==========================================================================
   8. Floating Toast Notification
   ========================================================================== */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f1614;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--brand-yellow);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-columns-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
  .topbar-right .btn-save-server span:not(.btn-icon),
  .topbar-right .btn-add-dish span:not(.btn-icon) {
    display: none;
  }
}

/* ==========================================================================
   New Panes Styling: Reports, Accounts, Orders, Staff, Activity & Banners
   ========================================================================== */

.section-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-card-header-row h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.section-card-header-row p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.panel-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* Analytics Split Grid */
.analytics-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .analytics-split-grid {
    grid-template-columns: 1fr;
  }
}

.top-dishes-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dish-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dish-bar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #4a5568;
}

.rank-badge.gold {
  background: #fef3c7;
  color: #b45309;
}

.rank-badge.silver {
  background: #f1f5f9;
  color: #475569;
}

.rank-badge.bronze {
  background: #ffedd5;
  color: #c2410c;
}

.dish-name-label {
  font-weight: 700;
  flex-grow: 1;
}

.dish-plates-count {
  font-weight: 600;
  color: #718096;
  font-size: 0.85rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #edf2f7;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.fill-red { background: #b81414; }
.fill-gold { background: #ffd000; }
.fill-green { background: #48bb78; }
.fill-blue { background: #3182ce; }
.fill-purple { background: #805ad5; }

/* Category Ratio */
.category-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-ratio-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-ratio-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Orders Filter Bar */
.orders-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.order-filter-pill {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-filter-pill:hover {
  border-color: #56b870;
  color: #56b870;
}

.order-filter-pill.active {
  background: #56b870;
  color: #ffffff;
  border-color: #56b870;
  box-shadow: 0 2px 8px rgba(86, 184, 112, 0.3);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-new {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.badge-cooking {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.badge-delivered {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.order-status-select {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.order-status-select:focus {
  outline: none;
  border-color: #0d8a57;
}

.order-time-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

/* Payment Badges */
.pay-method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pay-method.bkash {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.pay-method.nagad {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.pay-method.cash {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-credit {
  color: #15803d;
  font-weight: 700;
  font-size: 0.82rem;
}

.badge-debit {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.82rem;
}

.badge-status-completed {
  display: inline-block;
  padding: 2px 8px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Categories Cards Grid */
.categories-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.category-manage-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.category-manage-card:hover {
  transform: translateY(-3px);
  border-color: #56b870;
  box-shadow: var(--shadow-md);
}

.cat-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.cat-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b1f1d;
  margin-bottom: 4px;
}

.cat-card-body p {
  font-size: 0.82rem;
  color: #718096;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-items-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: #edf2f7;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 10px;
}

.cat-card-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: #56b870;
}

/* Staff & Roles */
.staff-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-light);
}

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.role-superadmin {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.role-manager {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.role-chef {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.role-cashier {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Home Banners Thumbnails Grid */
.banner-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.banner-thumb-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.banner-thumb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.banner-thumb-title {
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  text-align: center;
}

/* Activity Timeline */
.activity-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-left: 20px;
}

.activity-timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e2e8f0;
}

.activity-timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #56b870;
}

.timeline-dot.green { border-color: #56b870; }
.timeline-dot.gold { border-color: #ffd000; }
.timeline-dot.blue { border-color: #3182ce; }
.timeline-dot.red { border-color: #b81414; }

.timeline-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #2d3748;
}

.timeline-time {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

