:root {
  --background: #fafafa;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --primary: #ff5100;
  --primary-foreground: #ffffff;
  --primary-hover: #ff7733;
  --primary-dark: #cc4100;
  --secondary: #1a1a1a;
  --secondary-foreground: #ffffff;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --text-secondary: #6b7280;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #e5e7eb;
  --sidebar: #1a1a1a;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #ff5100;
  --sidebar-accent: #2d2d2d;
  --sidebar-border: #2d2d2d;
  --charcoal: #1a1a1a;
  --dark-gray: #2d2d2d;
  --medium-gray: #6b7280;
  --light-gray: #9ca3af;
  --pale-gray: #f3f4f6;
}

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

/* Added html and body height reset to eliminate bottom gap */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-layout {
  min-height: 100vh;
  /* Added height 100vh to ensure full viewport coverage */
  height: 100vh;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: var(--primary);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left-line {
  display: flex;
  align-items: center;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-foreground);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.logo-icon-line {
  width: 100%;
  height: 50px;
  color: var(--primary-foreground);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.btn-ghost {
  background: transparent;
  color: var(--primary-foreground);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-primary:hover {
  background-color: var(--dark-gray);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/*.btn-with-badge {*/
/*  position: relative;*/
/*}*/

/*.notification-badge {*/
/*  position: absolute;*/
/*  top: -4px;*/
/*  right: -4px;*/
/*  background-color: var(--secondary);*/
/*  color: var(--secondary-foreground);*/
/*  font-size: 10px;*/
/*  border-radius: 50%;*/
/*  width: 18px;*/
/*  height: 18px;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  font-weight: 600;*/
/*}*/

/* Cart Button with Badge */
.btn-with-badge {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 10px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 1;
}

/* Remove all list markers - works for all browsers */
ul, ol {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0;
  margin: 0;
}

li {
  list-style: none !important;
  list-style-type: none !important;
}

li::marker {
  content: none !important;
  display: none !important;
}

li::before {
  content: none !important;
  display: none !important;
}

/* Specific fix for Safari */
li::-webkit-details-marker {
  display: none;
}

/* Cart dropdown specific styles */
#cart ul {
  list-style: none !important;
  list-style-type: none !important;
}

#cart li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Responsive - Keep badge visible on all screen sizes */
@media screen and (max-width: 768px) {
  .notification-badge {
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    z-index: 10;
  }
  
  .btn-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .notification-badge {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }
}




/* Main Container */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  background-color: var(--charcoal);
  border-right: 1px solid var(--sidebar-border);
  transition: all 0.3s ease;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  position: relative;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.sidebar.expanded {
  width: 256px;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-nav {
  padding: 16px 8px 16px 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-item {
  margin-bottom: 4px;
}

.menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  position: relative;
}

.menu-button:hover {
  background-color: var(--dark-gray);
}

.sidebar.collapsed .menu-button {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .chevron-icon {
  display: none;
}

.menu-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.menu-button,
.submenu-item {
    text-decoration: none !important;
}

.sidebar a {
    text-decoration: none;
}

.menu-button:hover,
.submenu-item:hover,
.sidebar a:hover {
    text-decoration: none;
    color: var(--primary-hover);
}

.menu-text {
  flex: 1;
  white-space: nowrap;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.chevron-icon.rotated {
  transform: rotate(90deg);
}

.submenu {
  margin-left: 32px;
  margin-top: 4px;
  display: none;
  overflow: hidden;
}

.submenu.expanded {
  display: block;
}

.sidebar.collapsed .submenu {
  display: none !important;
}

.submenu-item {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  margin-bottom: 2px;
  display: block;
}

.submenu-item:hover {
  color: var(--sidebar-foreground);
  background-color: var(--dark-gray);
}

/* <CHANGE> Add 3rd level submenu (sub-submenu) styles */
.sub-submenu {
  margin-left: 20px;
  margin-top: 4px;
  display: none;
  overflow: hidden;
}

.sub-submenu.expanded {
  display: block;
}

.sidebar.collapsed .sub-submenu {
  display: none !important;
}

.sub-submenu-item {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  margin-bottom: 2px;
  display: block;
  text-decoration: none;
}

.sub-submenu-item:hover {
  color: var(--sidebar-foreground);
  background-color: var(--dark-gray);
}

.sub-submenu-item.active {
  background-color: var(--dark-gray);
  color: var(--primary);
}

/* submenu items that have children */
.submenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--charcoal);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Firefox scrollbar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #8b8b8b var(--charcoal);
}
.submenu-item[data-has-children="true"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

.submenu-item[data-has-children="true"]:hover {
  color: var(--sidebar-foreground) !important;
  background-color: var(--dark-gray);
}

.submenu-item[data-has-children="true"]:visited {
  color: rgba(255, 255, 255, 0.7) !important;
}

.submenu-item[data-has-children="true"].active {
  background-color: transparent;
  color: var(--primary) !important;
}

.submenu-item:not([data-has-children="true"]).active {
  background-color: var(--dark-gray);
  color: var(--primary);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--background);
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.content-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.card-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-info p {
  font-size: 28px;
  font-weight: bold;
  color: var(--foreground);
}

.card-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.card-icon.primary {
  color: var(--primary);
}

.card-icon.destructive {
  color: var(--destructive);
}

/* Activity Feed */
.activity-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: var(--muted);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.primary {
  background-color: var(--primary);
}

.activity-dot.destructive {
  background-color: var(--destructive);
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 4px;
  line-height: 1.4;
}

.activity-content span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar.expanded {
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    z-index: 45;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .main-content {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .logo-text {
    display: none;
  }

  /*.header-right .btn span {*/
  /*  display: none;*/
  /*}*/

  .header-right {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .dashboard-card {
    padding: 16px;
  }

  .card-info p {
    font-size: 24px;
  }

  .content-title {
    font-size: 24px;
  }
}

/* Utility classes */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md-inline {
    display: inline;
  }
}

@media (max-width: 767px) {
  .md-inline {
    display: none;
  }
}
.site-footer {
  /*position: absolute;*/
  margin: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--secondary); /* #1a1a1a - dark color */
  color: var(--secondary-foreground); /* white text */
  padding: 12px 0;
  border-top: 1px solid var(--dark-gray);
  z-index: 1000;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--light-gray);
  margin: 0;
  text-align: center;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary); /* orange hover effect */
}

/* Add padding to body to prevent content overlap */
body {
  padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .footer-right {
    gap: 16px;
  }
}


/* Adding styles for detailed product card with left/right layout and usage statistics */
.product-card-detailed {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 1fr auto;
  gap: 16px;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  /*height: 340px;*/
  overflow: hidden;
}

.product-card-detailed:hover {
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.15);
  border-color: #ff5100;
}

/* Left Side: Product Image and Name Only */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-row: 1;
}

.product-image-wrapper {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.product-image-detailed {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name-detailed {
  font-size: 16px; /* Increased from 14px */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

/* Right Side: Product Details Above Table + Usage Statistics */
.product-usage-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  grid-row: 1;
}

/* New compact meta section above table */
.product-meta-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px; /* Increased from 10px */
}

.meta-row-full {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.meta-label {
  font-weight: 600;
  color: #6b7280;
  min-width: 42px;
}

.meta-value {
  color: #1a1a1a;
  font-family: "Courier New", monospace;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px; /* Increased from 9px */
  border: 1px solid #e5e7eb;
}

.meta-value-text {
  color: #374151;
  font-size: 10px; /* Increased from 9px */
  line-height: 1.4;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  width: 100%;
  border: 1px solid #e5e7eb;
}

.usage-title {
  font-size: 13px; /* Increased from 11px */
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Reduced table height by removing In Stock row */
.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px; /* Increased from 10px */
}

.usage-table thead {
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
}

.usage-table th {
  padding: 6px 4px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 10px; /* Increased from 9px */
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.usage-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.usage-table tbody tr:last-child {
  border-bottom: none;
}

.usage-table tbody tr:hover {
  background: #ffffff;
}

.usage-table td {
  padding: 8px 4px;
}

.period-label {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 11px; /* Increased from 10px */
}

.usage-count {
  font-weight: 700;
  color: #ff5100;
  font-size: 14px; /* Increased from 12px */
}

.usage-percentage {
  font-weight: 600;
  color: #6b7280;
  font-size: 11px; /* Increased from 10px */
}

.usage-trend {
  display: flex;
  align-items: center;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px; /* Increased from 8px */
  font-weight: 600;
  white-space: nowrap;
}

.trend-icon {
  width: 11px; /* Increased from 10px */
  height: 11px;
  flex-shrink: 0;
}

.trend-increasing {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

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

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

/* New stock info section at bottom of table */
.stock-info-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  /*margin-top: 4px;*/
}

.stock-label {
  font-size: 11px; /* Increased from 10px */
  font-weight: 600;
  color: #374151;
}

.stock-badge-bottom {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; /* Increased from 10px */
  font-weight: 700;
  white-space: nowrap;
}

.stock-badge-bottom.stock-available {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

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

/* Bottom: Price + Cart Controls */
.product-cart-section {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* New price and quantity group on the left */
.price-quantity-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Price box moved to bottom with orange styling */
.product-pricing-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff5100 0%, #ff6b2c 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 81, 0, 0.3);
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px; /* Reduced from 10px */
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  border-radius: 6px;
  border: 1px solid #ffd4b8;
}

.price-main {
  font-size: 22px; /* Reduced from 24px */
  font-weight: 800;
  color: #ff5100;
  line-height: 1;
}

.price-vat {
  font-size: 10px; /* Reduced from 11px */
  color: #6b7280;
  font-weight: 500;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2px;
}

.quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Increased from 28px */
  height: 32px;
  border: none;
  background: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.quantity-btn:hover {
  background: #ff5100;
  color: #ffffff;
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn svg {
  width: 16px; /* Increased from 14px */
  height: 16px;
}

.quantity-input {
  width: 50px; /* Increased from 45px */
  height: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px; /* Increased from 13px */
  font-weight: 700;
  color: #1a1a1a;
  outline: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart buttons group on the right */
.cart-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.add-to-cart-btn-detailed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px; /* Increased padding */
  background: linear-gradient(135deg, #ff5100 0%, #ff6b2c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px; /* Increased from 12px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
  white-space: nowrap;
}

.add-to-cart-btn-detailed:hover {
  background: linear-gradient(135deg, #e64900 0%, #ff5100 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 81, 0, 0.4);
}

.add-to-cart-btn-detailed:active {
  transform: translateY(0);
}

.cart-icon {
  width: 16px; /* Increased from 15px */
  height: 16px;
}

.add-to-template-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px; /* Increased padding */
  background: #ffffff;
  color: #ff5100;
  border: 2px solid #ff5100;
  border-radius: 8px;
  font-size: 13px; /* Increased from 12px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-to-template-btn:hover {
  background: #ff5100;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

.add-to-template-btn:active {
  transform: translateY(0);
}

.template-icon {
  width: 16px; /* Increased from 15px */
  height: 16px;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 14px; 
}

.product-name-detailed {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 3px; 
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.meta-label {
  font-weight: 600;
  color: #6b7280;
  min-width: 45px;
}

.meta-value {
  color: #1a1a1a;
  background: #f3f4f6;
  padding: 2px 5px; 
  border-radius: 4px;
  font-size: 10px; 
}
 /* Responsive Design for Mobile */ 
/* Mobile Responsive Styles - Add these to your existing CSS */

/* Tablet and smaller laptops - 1270px breakpoint */
@media screen and (max-width: 1270px) {
    .product-card-detailed {
        flex-direction: column !important;
        padding: 15px !important;
        display: flex !important;
    }
    
    .product-info-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 1 !important;
    }
    
    .product-image-wrapper {
        max-width: 220px !important;
        width: 100% !important;
        margin: 0 auto 15px auto !important;
    }
    
    /*.product-image-detailed {*/
    /*    width: 100% !important;*/
    /*    height: auto !important;*/
    /*}*/
    
    .product-details {
        width: 100% !important;
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-usage-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-top: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px !important;
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-cart-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-top: 20px !important;
        padding: 20px 15px !important;
        order: 3 !important;
    }
    
    .cart-buttons-group {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .quantity-control {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .add-to-cart-btn-detailed,
    .add-to-template-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        justify-content: center !important;
    }
}

/* Mobile phones and tablets - 768px breakpoint */
@media screen and (max-width: 768px) {
    .product-card-detailed {
        flex-direction: column !important;
        padding: 10px !important;
        display: flex !important;
    }
    
    /* Product Info Section - Full width on mobile */
    .product-info-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 1 !important;
    }
    
    /* Center and resize product image */
    .product-image-wrapper {
        max-width: 180px !important;
        width: 100% !important;
        margin: 0 auto 15px auto !important;
    }
    
    /*.product-image-detailed {*/
    /*    width: 100% !important;*/
    /*    height: auto !important;*/
    /*}*/
    
    /* Product details - center align */
    .product-details {
        width: 100% !important;
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-name-detailed {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    /* Product meta - adjust layout */
    .product-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px !important;
    }
    
    .meta-item {
        font-size: 13px !important;
    }
    
    /* Pricing section */
    .product-pricing {
        margin: 12px 0 !important;
    }
    
    .price-main {
        font-size: 24px !important;
    }
    
    .price-vat {
        font-size: 12px !important;
    }
    
    /* Usage Section - Full width on mobile */
    .product-usage-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-top: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px !important;
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-meta-compact {
        margin-bottom: 15px !important;
    }
    
    .meta-row {
        padding: 8px 0 !important;
        font-size: 13px !important;
    }
    
    .usage-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    /* Usage table - make it more compact */
    .usage-table {
        font-size: 12px !important;
        width: 100% !important;
    }
    
    .usage-table th,
    .usage-table td {
        padding: 8px 4px !important;
    }
    
    .trend-badge {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
    
    .trend-icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    .stock-info-bottom {
        margin-top: 12px !important;
        font-size: 13px !important;
    }
    
    /* Cart Section - Full width on mobile */
    .product-cart-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-top: 15px !important;
        padding: 15px 10px !important;
        order: 3 !important;
    }
    
    .cart-buttons-group {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    /* Quantity control - full width */
    .quantity-control {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .quantity-input {
        font-size: 16px !important;
        padding: 8px !important;
    }
    
    .quantity-btn {
        padding: 10px !important;
    }
    
    /* Buttons - full width and stacked */
    .add-to-cart-btn-detailed,
    .add-to-template-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        justify-content: center !important;
    }
    
    .cart-icon,
    .template-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* For very small screens (phones in portrait) */
@media screen and (max-width: 480px) {
    .product-card-detailed {
        padding: 8px !important;
    }
    
    .product-image-wrapper {
        max-width: 150px !important;
    }
    
    .product-name-detailed {
        font-size: 16px !important;
    }
    
    .usage-table {
        font-size: 11px !important;
    }
    
    .usage-table th,
    .usage-table td {
        padding: 6px 2px !important;
    }
    
    .add-to-cart-btn-detailed,
    .add-to-template-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Landscape mode for small devices */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .product-card-detailed {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .product-info-section {
        width: 48% !important;
    }
    
    .product-usage-section {
        width: 48% !important;
        margin-top: 0 !important;
    }
    
    .product-cart-section {
        width: 100% !important;
        margin-top: 15px !important;
    }
}


/*checkout styles*/

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

/* Header */
.checkout-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-gray) 100%);
  color: white;
  padding: 40px 24px;
  border-bottom: 3px solid var(--primary);
}

.header-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumb {
  color: var(--light-gray);
  font-size: 14px;
}

/* Main Content */
.checkout-main {
  padding: 32px 24px;
}

/* Section Headings */
h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

/* Cart Section */
.cart-section {
  background: var(--pale-gray);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
}

.cart-table-wrapper {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead {
  background: white;
  border-bottom: 2px solid var(--primary);
}

.cart-table th {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--foreground);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-table td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.cart-item {
  background: white;
  transition: background-color 0.2s;
}

.cart-item:hover {
  background: #f9fafb;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-info img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--pale-gray);
}

.product-info span {
  font-weight: 500;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
  .cart-section {
    padding: 16px;
  }

  .cart-table-wrapper {
    overflow-x: visible;
  }

  /* Hide table headers on mobile */
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-item {
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
  }

  .cart-table td {
    text-align: left;
    padding: 8px 0;
    border-bottom: none;
    position: relative;
    padding-left: 75%;
  }

  /* Add labels before each cell */
  .cart-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 70%;
    padding-right: 10px;
    font-weight: 600;
    color: var(--foreground);
    text-align: left;
  }

  /* First td (product info) should span full width */
  .cart-table td:first-child {
    padding-left: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
  }

  .cart-table td:first-child:before {
    display: none;
  }

  .product-info {
    flex-direction: row;
    gap: 12px;
  }

  .product-info img {
    width: 80px;
    height: 80px;
  }

  /* Last td (remove button) */
  .cart-table td:last-child {
    padding-left: 0;
    text-align: center;
    padding-top: 12px;
  }

  .cart-table td:last-child:before {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .product-info {
    flex-direction: column;
    align-items: flex-start;
  }

  /*.product-info img {*/
  /*  width: 100%;*/
  /*  height: auto;*/
  /*  max-height: 200px;*/
  }
}
/* Quantity Control */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--pale-gray);
  border-radius: 6px;
  width: fit-content;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
  border-radius: 4px;
}

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

.qty-btn:active {
  background: var(--primary-dark);
}

/*.quantity-control input {*/
/*  width: 100%;*/
/*  height: 32px;*/
/*  border: none;*/
/*  background: transparent;*/
/*  text-align: center;*/
/*  font-weight: 600;*/
/*  font-size: 14px;*/
/*}*/

.price,
.total {
  font-weight: 600;
  color: var(--primary);
}

.remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #fecaca;
}

/* Checkout Row */
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .checkout-row {
    grid-template-columns: 1fr;
  }
}

/* Summary Section */
.summary-section {
  background: var(--pale-gray);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  height: fit-content;
}

.summary-card {
  background: white;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:first-child {
  color: var(--medium-gray);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--foreground);
}

.total-row {
  padding-top: 12px;
  padding-bottom: 0;
  border-top: 2px solid var(--primary);
  border-bottom: none !important;
  font-size: 16px;
}

.total-row span:last-child {
  color: var(--primary);
  font-size: 18px;
}

/* Delivery Section */
.delivery-section {
  background: var(--pale-gray);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--foreground);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

/* Comments Section */
.comments-section {
  background: var(--pale-gray);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.comments-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.comments-section textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
}

/* Button Container */
/* Button Container */
.buttons.button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  align-items: stretch; /* Changed from center to stretch */
  max-width: 500px;
  margin: 0 auto;
}

.buttons.button-container .pull-left,
.buttons.button-container .pull-right {
  float: none !important;
  width: 100%;
  max-width: 100%;
}

.buttons.button-container .Back-btn,
.buttons.button-container .confirm-btn,
.buttons.button-container .confirm-button {
  width: 100%;
  display: block;
  padding: 14px 20px;
  text-align: center;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Back Button Styles */
.Back-btn {
  padding: 14px 32px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.Back-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.Back-btn:active {
  background: var(--secondary);
  transform: translateY(0);
}

/* Confirm Button Styles */
.confirm-btn,
.confirm-button {
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-btn:hover,
.confirm-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.3);
}

.confirm-btn:active,
.confirm-button:active {
  background: var(--primary-dark);
  transform: translateY(0);
}

/* Desktop Layout - Side by side with proper width */
@media (min-width: 768px) {
  .buttons.button-container {
    flex-direction: row;
    justify-content: space-between; /* Space between buttons */
    gap: 20px;
    max-width: 100%; /* Full width container */
    padding: 20px 0;
    align-items: stretch; /* Equal height buttons */
  }
  
  .buttons.button-container .pull-left,
  .buttons.button-container .pull-right {
    width: auto;
    flex: 1; /* Each takes equal space */
    max-width: 48%; /* Limit to roughly half */
  }
  
  .buttons.button-container .Back-btn,
  .buttons.button-container .confirm-btn,
  .buttons.button-container .confirm-button {
    width: 100%; /* Full width of parent container */
    min-width: 0; /* Remove min-width constraint */
    padding: 14px 32px;
  }
}

/* Large Desktop - Limit button width */
@media (min-width: 1200px) {
  .buttons.button-container .pull-left,
  .buttons.button-container .pull-right {
    max-width: 400px; /* Max button width on large screens */
  }
}

/* Tablet - still stacked but wider */
@media (min-width: 640px) and (max-width: 767px) {
  .buttons.button-container {
    max-width: 600px;
  }
}

/* Remove arrows from number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #dc3545;
  background: #dc3545;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 20px;
}

.remove-btn:hover {
  background: #c82333;
  border-color: #bd2130;
}
.quantity-control-mobile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.qty-btn-mobile {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qty-input-mobile {
  width: 50px;
  text-align: center;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  padding: 0;
  -moz-appearance: textfield;
}

.qty-input-mobile::-webkit-outer-spin-button,
.qty-input-mobile::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-btn-mobile {
  width: 32px;
  height: 32px;
  border: 1px solid #dc3545;
  background: #dc3545;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Low Stock Container */
.low-stock-container {
    position: relative;
}

.low-stock-grid {
    position: relative;
    overflow: hidden;
    max-height: 300px; /* Adjust based on your card height - shows roughly 1 row */
    transition: max-height 0.4s ease-in-out;
}

.low-stock-grid.expanded {
    max-height: none;
}

.low-stock-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show More Button */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border, #ddd);
    background: white;
    color: var(--primary, #ff7733);
    border-radius: 8px;
    cursor: pointer;
    margin-top:24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: var(--primary-light, #fff5f0);
    border-color: var(--primary, #ff7733);
}

.show-more-btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .icon {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .low-stock-grid {
        max-height: 400px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .low-stock-grid {
        max-height: 600px; /* Show more items on mobile */
    }
}
/* Inventory Container Styles */
.inventory-container {
    position: relative;
}

.inventory-grid {
    position: relative;
    transition: all 0.4s ease-in-out;
}

/* Hide items after the 6th one */
.inventory-grid:not(.expanded) .inventory-item:nth-child(n+7) {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Show 4 items (2 rows of 2) on tablets */
    .inventory-grid:not(.expanded) .inventory-item:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Show 2 items on mobile */
    .inventory-grid:not(.expanded) .inventory-item:nth-child(n+3) {
        display: none;
    }
}


/*waste*/
/* ========================================
   WASTE MANAGEMENT SYSTEM - COMPLETE CSS
   All classes prefixed with "waste-" to prevent conflicts
   ======================================== */

/* CSS Variables for Waste Module */
:root {
  --waste-primary-orange: #ff5100;
  --waste-orange-dark: #e04800;
  --waste-charcoal: #2d3436;
  --waste-medium-gray: #636e72;
  --waste-light-gray: #b2bec3;
  --waste-pale-gray: #dfe6e9;
  --waste-off-white: #f8f9fa;
  --waste-success-green: #00b894;
}

/* Container */
.waste-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Form */
.waste-form {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 40px;
  animation: wasteSlideUp 0.3s ease-out;
}

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

/* Form Header */
.waste-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.waste-logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.waste-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--waste-charcoal);
  margin-bottom: 8px;
}

.waste-subtitle {
  color: var(--waste-medium-gray);
  font-size: 14px;
}

/* Form Steps */
.waste-form-step {
  animation: wasteFadeIn 0.3s ease-out;
}

.waste-form-step.waste-hidden {
  display: none;
}

@keyframes wasteFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.waste-step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--waste-charcoal);
  margin-bottom: 8px;
}

.waste-step-description {
  color: var(--waste-medium-gray);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Toggle Buttons */
.waste-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.waste-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border: 2px solid var(--waste-pale-gray);
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: var(--waste-medium-gray);
}

.waste-toggle-btn:hover {
  border-color: var(--waste-primary-orange);
  background: rgba(255, 81, 0, 0.05);
}

.waste-toggle-btn.waste-active {
  border-color: var(--waste-primary-orange);
  background: var(--waste-primary-orange);
  color: white;
}

.waste-icon {
  width: 32px;
  height: 32px;
}

.waste-toggle-label {
  display: block;
}

/* Form Sections */
.waste-form-section {
  margin-bottom: 24px;
}

.waste-section-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--waste-charcoal);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Inputs */
.waste-input,
.waste-select,
.waste-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--waste-pale-gray);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  color: var(--waste-charcoal);
  box-sizing: border-box;
}

.waste-input:focus,
.waste-select:focus,
.waste-textarea:focus {
  outline: none;
  border-color: var(--waste-primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
}

.waste-input::placeholder,
.waste-textarea::placeholder {
  color: var(--waste-light-gray);
}

/* Quantity Inputs */
.waste-quantity-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.waste-input-group {
  display: flex;
  flex-direction: column;
}

.waste-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--waste-medium-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Camera Scanner */
.waste-camera-container {
  position: relative;
  background: var(--waste-charcoal);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 1;
}

.waste-scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waste-scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waste-scanner-frame {
  width: 200px;
  height: 200px;
  border: 2px solid var(--waste-primary-orange);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  animation: wasteScanPulse 2s infinite;
}

@keyframes wasteScanPulse {
  0%,
  100% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 20px var(--waste-primary-orange);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 40px var(--waste-primary-orange);
  }
}

/* Scanned Results */
.waste-scanned-result {
  background: var(--waste-pale-gray);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.waste-scanned-result.waste-hidden {
  display: none;
}

.waste-result-item {
  /*display: flex;*/
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.waste-result-label {
  font-weight: 600;
  color: var(--waste-charcoal);
}

.waste-result-value {
  color: var(--waste-primary-orange);
  font-weight: 600;
}

/* Buttons */
.waste-button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.waste-btn-next,
.waste-btn-primary,
.waste-btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waste-btn-primary,
.waste-btn-next {
  background: var(--waste-primary-orange);
  color: white;
}

.waste-btn-primary:hover,
.waste-btn-next:hover {
  background: var(--waste-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 81, 0, 0.3);
}

.waste-btn-primary:active,
.waste-btn-next:active {
  transform: translateY(0);
}

.waste-btn-primary:disabled,
.waste-btn-next:disabled {
  background: var(--waste-light-gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.waste-btn-secondary {
  background: var(--waste-pale-gray);
  color: var(--waste-charcoal);
  border: 2px solid var(--waste-light-gray);
}

.waste-btn-secondary:hover {
  background: var(--waste-off-white);
  border-color: var(--waste-primary-orange);
  color: var(--waste-primary-orange);
}

.waste-btn-next {
  grid-column: 1 / -1;
}

/* Success Message */
.waste-success-icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 16px;
  animation: wasteScaleIn 0.5s ease-out;
}

@keyframes wasteScaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.waste-success-title {
  color: var(--waste-success-green);
  margin-bottom: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.waste-success-text {
  color: var(--waste-medium-gray);
  margin-bottom: 24px;
  font-size: 14px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 640px) {
  .waste-form {
    padding: 24px;
  }

  .waste-title {
    font-size: 24px;
  }

  .waste-toggle-group {
    grid-template-columns: 1fr;
  }

  .waste-quantity-inputs {
    grid-template-columns: 1fr;
  }

  .waste-button-group {
    grid-template-columns: 1fr;
  }
}

/* Additional utility classes */
.waste-hidden {
  display: none !important;
}

.waste-active {
  /* Used for toggle buttons and other interactive elements */
}

/* ============================================
   Waste Analytics Styles
   ============================================ */

/* Period Selector */
.waste-period-selector {
    display: flex;
    gap: 4px;
    background: var(--muted);
    padding: 4px;
    border-radius: 8px;
}

.waste-period-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waste-period-btn:hover {
    color: var(--foreground);
}

.waste-period-btn.active {
    background: var(--card);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Chart Containers */
.waste-chart-container {
    height: 280px;
    position: relative;
}

.waste-chart-container-pie {
    height: 200px;
    position: relative;
}

.waste-chart-container-trend {
    height: 180px;
    position: relative;
}

/* Chart Legend */
.waste-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.waste-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.waste-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Pie Chart Legend */
.waste-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.waste-pie-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--muted);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.waste-pie-legend-item:hover {
    background: var(--pale-gray);
}

.waste-pie-legend-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.waste-pie-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.waste-pie-legend-label {
    font-size: 13px;
    color: var(--foreground);
    font-weight: 500;
}

.waste-pie-legend-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.waste-pie-legend-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground);
}

.waste-pie-legend-percentage {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--card);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Trend Badge */
.waste-trend-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.waste-trend-badge.increasing {
    background: rgba(239, 68, 68, 0.1);
    color: var(--destructive);
}

.waste-trend-badge.decreasing {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.waste-trend-badge .icon {
    width: 14px;
    height: 14px;
}

/* Recent Waste Record Items */
.waste-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--muted);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.waste-record-item:hover {
    background: var(--pale-gray);
}

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

.waste-record-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.waste-record-icon.expired {
    background: rgba(239, 68, 68, 0.1);
}

.waste-record-icon.damaged {
    background: rgba(245, 158, 11, 0.1);
}

.waste-record-icon.quality {
    background: rgba(59, 130, 246, 0.1);
}

.waste-record-icon.other {
    background: rgba(107, 114, 128, 0.1);
}

.waste-record-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.waste-record-product {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
}

.waste-record-reason {
    font-size: 12px;
    color: var(--text-secondary);
}

.waste-record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.waste-record-weight {
    font-size: 14px;
    font-weight: 600;
    color: var(--destructive);
}

.waste-record-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Spinner */
.waste-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: waste-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes waste-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.waste-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.waste-empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

/* Button small variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Grid 3 columns */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 > *:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 > *:last-child {
        grid-column: span 1;
    }
    
    .waste-chart-container {
        height: 250px;
    }
    
    .waste-period-selector {
        flex-wrap: wrap;
    }
}