@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --font-arabic: 'Tajawal', sans-serif;
  --font-english: 'Outfit', sans-serif;

  /* Color Palette - Elegant Premium Green & Gold */
  --primary: #1b4332;
  --primary-light: #2d6a4f;
  --primary-dark: #081c15;
  
  --secondary: #d4af37; /* Metallic Gold */
  --secondary-light: #f3e5ab;
  --secondary-dark: #aa7c11;

  --accent-red: #e63946;
  --accent-green: #2a9d8f;
  --accent-blue: #457b9d;

  --bg-main: #f4f6f3;
  --bg-card: #ffffff;
  --bg-sidebar: #0f2a1d;
  
  --text-main: #2f3e36;
  --text-muted: #6e7e75;
  --text-on-dark: #e8f5e9;

  --border-color: rgba(27, 67, 50, 0.1);
  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-arabic), var(--font-english), sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  position: relative;
  min-height: 100vh;
  padding: 20px;
}

.login-body::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(45, 106, 79, 0.4) 0%, transparent 60%);
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 36px 28px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border: 3px solid var(--secondary);
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.login-header h2 {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  color: var(--text-main);
  background: #fafbfa;
  transition: var(--transition-fast);
  font-family: inherit;
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
  font-family: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Dashboard Main Layout
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: fixed;
  top: 0; bottom: 0; right: 0;
  z-index: 999;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

.sidebar-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.sidebar-logo-text span {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  font-weight: 500;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  transition: var(--transition-fast);
}

.nav-item.active a, .nav-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active a {
  border-right: 4px solid var(--secondary);
  background: rgba(212, 175, 55, 0.15);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
}

.user-badge-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.user-badge-info span {
  font-size: 11.5px;
  color: var(--secondary);
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-logout:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--accent-red);
}

/* Main Content Area */
.main-content {
  margin-right: 280px;
  flex: 1;
  padding: 30px;
  min-height: 100vh;
  transition: var(--transition-normal);
  max-width: 100%;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.menu-toggle-dash {
  display: none;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

.menu-toggle-dash span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  margin: 4px auto;
  border-radius: 2px;
}

.date-badge {
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  border: 1px solid var(--border-color);
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card-info h3 {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-card-info .kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-english);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-light);
}

.kpi-card:nth-child(2) .kpi-icon {
  background: rgba(212, 175, 55, 0.1);
}

.kpi-card:nth-child(3) .kpi-icon {
  background: rgba(230, 57, 70, 0.08);
}

.kpi-card:nth-child(4) .kpi-icon {
  background: rgba(42, 157, 143, 0.08);
}

/* Dashboard Sections */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panels */
.panel {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 650px;
}

.custom-table th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  font-size: 13.5px;
  background: #fafbfa;
}

.custom-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover {
  background-color: #fafbfa;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.status-new { background: #e8f5e9; color: var(--primary-light); }
.status-pending { background: #fff8e1; color: var(--secondary-dark); }
.status-shipping { background: #e3f2fd; color: var(--accent-blue); }
.status-delivered { background: #e0f2f1; color: var(--accent-green); }
.status-returned { background: #ffebee; color: var(--accent-red); }
.status-cancelled { background: #eeeeee; color: #757575; }

/* Action Buttons */
.btn-action {
  background: #fafbfa;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--primary);
  font-family: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.btn-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-action-danger {
  color: var(--accent-red);
}

.btn-action-danger:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-secondary-action {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.btn-secondary-action:hover {
  filter: brightness(1.05);
}

.btn-secondary-action:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Mobile-Optimized Cards View for Orders & Expenses
   ========================================================================== */
.orders-mobile-cards, .expenses-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.order-mobile-card, .expense-mobile-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  padding-bottom: 10px;
}

.order-card-id {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  font-family: var(--font-english);
}

.order-card-date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-english);
}

.order-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.order-card-customer {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.order-card-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  font-family: var(--font-english);
}

.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-mobile-call, .btn-mobile-wa, .btn-mobile-details {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  min-height: 42px;
}

.btn-mobile-call {
  background: #f0f7f4;
  color: var(--primary);
  border: 1px solid rgba(27, 67, 50, 0.2);
}

.btn-mobile-wa {
  background: #e8f8ef;
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-mobile-details {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Mobile Bottom App Navigation Bar
   ========================================================================== */
.mobile-dash-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #ffffff;
  border-top: 1px solid rgba(27, 67, 50, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 900;
  padding: 6px 8px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

.dash-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  gap: 3px;
  flex: 1;
  transition: var(--transition-fast);
}

.dash-bottom-nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.dash-bottom-icon {
  font-size: 19px;
}

/* Floating Quick Add Button */
.dash-bottom-add-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--primary-dark);
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 16px rgba(170, 124, 17, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  margin-top: -24px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.dash-bottom-add-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Modals & Touch-Friendly Forms
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  padding: 26px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.modal-title-bar h3 {
  font-size: 19px;
  color: var(--primary);
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}

.btn-close:hover {
  color: var(--accent-red);
}

/* Product Selection Rows in Add Order Modal */
.product-selection-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fafbfa;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
}

.qty-stepper button {
  width: 36px;
  height: 42px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
}

.qty-stepper input {
  width: 48px;
  text-align: center;
  height: 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-english);
}

/* Grid Form Layout */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-form-full {
  grid-column: 1 / -1;
}

/* Filter controls */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .sidebar {
    right: -300px; /* Fully hidden offscreen */
  }
  .sidebar.open {
    right: 0;
  }
  .main-content {
    margin-right: 0 !important;
    padding: 16px !important;
    padding-bottom: 85px !important; /* Space for bottom nav */
  }
  .menu-toggle-dash {
    display: flex !important;
  }
  .mobile-dash-bottom-nav {
    display: flex !important;
  }
  .date-badge {
    display: none; /* Hide date on small screens to save header space */
  }
}

@media (max-width: 768px) {
  .table-responsive {
    display: none; /* Replace tables with mobile cards */
  }
  .orders-mobile-cards, 
  .expenses-mobile-cards,
  .employees-mobile-cards,
  .monthly-breakdown-mobile-cards {
    display: flex !important;
  }

  .grid-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .grid-form-full {
    grid-column: auto !important;
  }

  /* Bottom sheet modal styling on mobile */
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    padding: 20px 16px !important;
    animation: slideUpModal 0.25s ease-out !important;
    -webkit-overflow-scrolling: touch;
  }

  @keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kpi-card {
    padding: 14px 16px;
  }

  .kpi-card-info .kpi-val {
    font-size: 20px;
  }

  .kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .product-selection-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-selection-row select {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px !important;
    padding-bottom: 85px !important;
  }

  .panel {
    padding: 14px !important;
    border-radius: var(--border-radius-sm) !important;
  }

  .top-header {
    margin-bottom: 16px;
  }

  .page-title h1 {
    font-size: 19px !important;
  }

  .page-title p {
    font-size: 12px !important;
    display: none; /* Hide subtitle on tiny screens to keep header sleek */
  }

  #btnManualRefreshDash span:last-child {
    display: none; /* Only show refresh icon on mobile for maximum clean space */
  }

  #btnManualRefreshDash {
    padding: 8px 12px !important;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .kpi-card {
    padding: 12px 10px;
  }

  .kpi-card-info h3 {
    font-size: 11px;
  }

  .kpi-card-info .kpi-val {
    font-size: 16.5px;
  }

  .kpi-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .form-group {
    width: 100% !important;
    min-width: 100% !important;
  }

  .filter-bar button {
    width: 100% !important;
  }

  .order-card-actions {
    flex-wrap: wrap;
  }

  .btn-mobile-call, .btn-mobile-wa, .btn-mobile-details {
    flex: 1 1 45%;
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   Toast Notification & Copy Shipping Styles
   ========================================================================== */
.dashboard-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1b4332;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 99999999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.dashboard-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.btn-action-copy-shipping {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border: 1px solid rgba(46, 125, 50, 0.35) !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-action-copy-shipping:hover {
  background: #2e7d32 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

.btn-action-copy-shipping.copied {
  background: #15803d !important;
  color: #ffffff !important;
}

