/* ==========================================================================
   AKBAR MALIGAI STORE - Owner Admin Dashboard Stylesheet
   Modern, secure, responsive control center for rates, stock & orders
   ========================================================================== */

:root {
  --primary: #0a3d24;
  --primary-light: #155e37;
  --primary-dark: #052415;
  --gold: #d4af37;
  --gold-dark: #b69124;
  --gold-light: #fffbeb;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef3c7;

  --radius: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --font: 'Outfit', 'Mukta Malar', system-ui, sans-serif;
}

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

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

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #052415 0%, #0a3d24 60%, #155e37 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--gold);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 30%, #d4af37 100%);
  border: 2px solid var(--gold-dark);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.login-brand h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}

.login-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.input-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.input-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 36, 0.15);
}

.login-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.login-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: all 0.2s;
}

.login-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(10, 61, 36, 0.25);
}

.login-error {
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.6rem;
  font-weight: 600;
}

.back-shop-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* ==========================================================================
   ADMIN MAIN LAYOUT & HEADER
   ========================================================================== */
.admin-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.seal-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 30%, #d4af37 100%);
  border: 1.5px solid var(--gold-dark);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-brand h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.portal-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-logout {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: var(--danger);
  color: #fff;
}

/* Admin Container */
.admin-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  flex: 1;
}

/* Metrics Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

/* Tabs Navigation */
.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: var(--primary);
}

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

.tab-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  font-weight: 800;
}

/* Tab contents */
.tab-content {
  display: none;
}

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

/* ==========================================================================
   INVENTORY & RATE EDITING TABLE
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

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

.search-ico {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  background: #ffffff;
  cursor: pointer;
}

.btn-danger-outline {
  background: #fff;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: var(--danger-bg);
}

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

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.inventory-table th {
  background: #f1f5f9;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.inventory-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.inventory-table tr:hover {
  background: #f8fafc;
}

.admin-prod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.prod-name-title {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.prod-name-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cat-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}

/* Rates list & editable inputs */
.rates-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rate-edit-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #edf2f7;
}

.rate-unit-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 65px;
}

.rate-currency {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.rate-input {
  width: 75px;
  padding: 0.25rem 0.4rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.rate-input:focus {
  border-color: var(--primary);
  background: #fffff0;
}

.btn-save-rate {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-rate:hover {
  background: var(--primary-light);
}

/* Stock Toggle Button */
.stock-toggle-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.stock-toggle-btn.in-stock {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.stock-toggle-btn.in-stock:hover {
  background: #bbf7d0;
}

.stock-toggle-btn.out-of-stock {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.stock-toggle-btn.out-of-stock:hover {
  background: #fecaca;
}

/* Action delete btn */
.btn-delete-prod {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-delete-prod:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* ==========================================================================
   ORDERS MANAGEMENT TAB
   ========================================================================== */
.orders-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-head-bar h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.orders-head-bar p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.orders-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.order-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.order-card.pending {
  border-left: 5px solid var(--warning);
}

.order-card.packed {
  border-left: 5px solid #0284c7;
}

.order-card.delivered {
  border-left: 5px solid var(--success);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.order-id {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.order-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.order-cust-info {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.order-cust-info strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.order-items-preview {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  max-height: 140px;
  overflow-y: auto;
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.order-item-line:last-child {
  border-bottom: none;
}

.order-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.order-total-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.order-status-select {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  outline: none;
}

/* Empty order view */
.empty-orders-view {
  grid-column: 1/-1;
  text-align: center;
  padding: 3.5rem 1rem;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   ADD PRODUCT FORM
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 720px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.variants-section {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.variants-section label {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.variants-input-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variant-input-row {
  display: flex;
  gap: 0.75rem;
}

.variant-input-row input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-light);
}

/* Toast message */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ANIMATIONS & ENTRANCE EFFECTS
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-10deg) scale(0.8); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes countUp {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Metric cards animated entrance */
.metrics-grid .metric-card {
  animation: fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.metrics-grid .metric-card:nth-child(1) { animation-delay: 0.05s; }
.metrics-grid .metric-card:nth-child(2) { animation-delay: 0.12s; }
.metrics-grid .metric-card:nth-child(3) { animation-delay: 0.19s; }
.metrics-grid .metric-card:nth-child(4) { animation-delay: 0.26s; }

.metric-val {
  animation: countUp 0.4s ease both;
}

/* Tab content animation */
.tab-content.active {
  animation: fadeInScale 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

/* Login card enhanced */
.login-card {
  animation: fadeInScale 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

.login-seal {
  animation: rotateIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

/* Shimmer on login button hover */
.login-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.login-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,61,36,0.35);
}

/* Inventory rows slide in */
#inventoryTableBody tr {
  animation: fadeInUp 0.3s ease both;
}

/* Order cards slide in */
.order-card {
  animation: slideInRight 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

/* Nav tab active indicator animation */
.nav-tab {
  position: relative;
  overflow: hidden;
}
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-tab.active::after {
  width: 100%;
}

/* Topbar pulse on AMA seal */
.seal-small {
  animation: pulseGold 2.5s ease-in-out infinite;
}

/* Enhanced hover glow on metric cards */
.metric-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 12px 32px rgba(10,61,36,0.14);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}

/* Btn primary ripple */
.btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.btn-primary:active {
  transform: scale(0.97);
}

/* Toast entrance improved */
.admin-toast {
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   REAL-TIME NEW ORDER NOTIFICATION BANNER
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4), 0 4px 16px rgba(0,0,0,0.08);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0), 0 8px 24px rgba(220, 38, 38, 0.15);
  }
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
}

.new-order-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 50%, #ffffff 100%);
  border: 1.5px solid #fecdd3;
  border-left: 6px solid #e11d48;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, pulseGlow 2.5s infinite;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.banner-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fee2e2;
  color: #e11d48;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: bellShake 1.8s ease-in-out infinite;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.banner-text strong {
  font-size: 1rem;
  color: #9f1239;
  font-weight: 800;
}

.banner-text span {
  font-size: 0.85rem;
  color: #64748b;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-banner-view {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-banner-view:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-banner-print {
  background: linear-gradient(135deg, #0a3d24 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(10, 61, 36, 0.25);
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-banner-print:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(10, 61, 36, 0.35);
}

.banner-dismiss {
  background: transparent;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.banner-dismiss:hover {
  background: #fee2e2;
}

/* ==========================================================================
   ORDER CARD AUTOMATIC BILLING BUTTONS
   ========================================================================== */

.order-billing-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
}

.btn-auto-print-bill {
  flex: 2;
  background: linear-gradient(135deg, #0a3d24 0%, #166534 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(10, 61, 36, 0.2);
}
.btn-auto-print-bill:hover {
  background: linear-gradient(135deg, #072a19 0%, #14532d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 61, 36, 0.3);
}

.btn-preview-order-bill {
  flex: 1;
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-preview-order-bill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ==========================================================================
   ORDER BILL PREVIEW MODAL
   ========================================================================== */

.order-bill-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeInScale 0.25s ease both;
}

.order-bill-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1.5px solid var(--gold);
}

.order-bill-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}

.btn-modal-print {
  background: linear-gradient(135deg, #0a3d24 0%, #15803d 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(10, 61, 36, 0.25);
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-modal-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 61, 36, 0.35);
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-bill-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  background: #ffffff;
}

/* Print Sheet Styling */
.print-bill-sheet {
  background: #fff;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .new-order-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .banner-actions {
    justify-content: flex-end;
  }
  .order-billing-actions {
    flex-direction: column;
  }
}
