body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6fa;
  overflow-x: hidden; /* prevent horizontal scroll */
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Make it Fixed */
.sidebar {
  width: 220px;
  background: #111827;
  color: white;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* Main Content - Reduced top padding */
.main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-top: 20px; /* Reduced from 80px to 20px */
  margin-left: 260px;
  width: calc(100% - 260px);
}

.logo {
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 1px solid #374151;
}

.section {
  font-size: 11px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #9ca3af;
  letter-spacing: 1px;
  font-weight: 600;
}

/* First section (MAIN MENU) - Add top margin to separate from logo */
.section:first-of-type {
  margin-top: 0;
}

.sidebar button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  background: none;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 14px;
}

.sidebar button:hover {
  background: #1f2937;
}

.sidebar .active {
  background: #2563eb;
}

/* Profile Card in Sidebar - Push to bottom */
.profile-card {
  margin-top: auto;
  margin-bottom: 20px;
  padding: 15px;
  background: #1f2937;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #374151;
}

.profile-card p {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #9ca3af;
}

.profile-card button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  width: 100%;
  transition: background 0.2s;
}

.profile-card button:hover {
  background: #1d4ed8;
}

/* Menu container to handle scrolling */
.menu-container {
  flex: 1;
}

/* Topbar - Reduced margin */
.topbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 0; /* Added to remove top margin */
}

.search {
  padding: 8px;
  width: 200px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
}

/* Fixed Admin Logo */
.fixed-admin {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.fixed-admin:hover {
  background: #f0f0f0;
  transform: scale(1.02);
}

.fixed-admin img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.fixed-admin span {
  font-weight: 500;
  color: #333;
}

/* Logout Button */
.logout-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
}

/* Welcome Text - Reduced top margin */
.welcome {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.card {
  padding: 25px 20px !important;
  border-radius: 12px !important;
  color: white !important;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
  color: white !important;
}

.card h2 {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: white !important;
}

.green {
  background: #10b981 !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-left: 4px solid #fff;
}

.teal {
  background: #06b6d4 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  border-left: 4px solid #fff;
}

.pink {
  background: #ec4899 !important;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
  border-left: 4px solid #fff;
}

.purple {
  background: #8b5cf6 !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  border-left: 4px solid #fff;
}

/* Graph Section */
.graph-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 20px;
}

.graph-card {
  flex: 1 1 400px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.graph-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

/* Scrollable charts and tables */
.scroll-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.scroll-container > div {
  min-width: 400px;
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Table */
.table-card {
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

td {
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 180px;
  }
  
  .main {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding-top: 20px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card h2 {
    font-size: 28px;
  }
  
  .fixed-admin {
    padding: 5px 10px;
    top: 10px;
    right: 10px;
  }
  
  .fixed-admin span {
    font-size: 12px;
  }
  
  .logout-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}.order-from-seller-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.order-header {
  text-align: center;
  margin-bottom: 30px;
}

.order-header h1 {
  color: #0F4454;
  margin-bottom: 10px;
}

.order-header p {
  color: #718096;
}

.success-message {
  background: #48bb78;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.order-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.seller-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.seller-section h3 {
  margin-bottom: 15px;
  color: #2d3748;
}

.seller-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-card {
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.seller-card:hover {
  border-color: #0ea5e9;
  transform: translateX(5px);
}

.seller-card.selected {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.seller-info h4 {
  margin: 0 0 5px 0;
  color: #2d3748;
}

.seller-info p {
  margin: 5px 0;
  color: #718096;
  font-size: 14px;
}

.rating {
  color: #fbbf24;
  font-size: 14px;
}

.selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0ea5e9;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.notes-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notes-section h3 {
  margin-bottom: 15px;
  color: #2d3748;
}

.notes-section textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.medicines-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.medicines-section h3 {
  margin-bottom: 15px;
  color: #2d3748;
}

.medicines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-height: 600px;
  overflow-y: auto;
}

.medicine-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.medicine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.medicine-info h4 {
  margin: 0 0 5px 0;
  color: #2d3748;
}

.manufacturer {
  color: #718096;
  font-size: 12px;
  margin: 5px 0;
}

.price {
  color: #0ea5e9;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

.stock {
  color: #48bb78;
  font-size: 12px;
  margin: 5px 0;
}

.add-to-cart-btn {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #0284c7;
  transform: scale(1.05);
}

.cart-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.cart-section h3 {
  margin-bottom: 15px;
  color: #2d3748;
}

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

.cart-table th,
.cart-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cart-table th {
  background: #f7fafd;
  font-weight: 600;
  color: #2d3748;
}

.quantity-input {
  width: 60px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
}

.remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.total-label {
  text-align: right;
  font-weight: bold;
  font-size: 18px;
}

.total-amount {
  font-size: 18px;
  font-weight: bold;
  color: #0ea5e9;
}

.place-order-btn {
  background: #48bb78;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.place-order-btn:hover {
  background: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

@media (max-width: 768px) {
  .order-content {
    grid-template-columns: 1fr;
  }
  
  .medicines-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-table {
    font-size: 12px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 8px;
  }
}/* Analytics Dashboard Styles */
.analytics-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  background: #f8fafc;
  min-height: 100vh;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.analytics-header h1 {
  margin: 0;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 700;
}

.time-range-selector {
  display: flex;
  gap: 10px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}

.time-range-selector button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
}

.time-range-selector button.active {
  background: white;
  color: #0ea5e9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-range-selector button:hover {
  background: white;
  color: #0ea5e9;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.stat-info h3 {
  margin: 0 0 8px 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  display: inline-block;
}

.stat-change.positive {
  background: #dcfce7;
  color: #166534;
}

.stat-change.negative {
  background: #fef2f2;
  color: #dc2626;
}

/* Chart Cards */
.chart-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.chart-card h3 {
  margin: 0 0 20px 0;
  color: #1e293b;
  font-size: 1.3rem;
  font-weight: 600;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Products List */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

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

.product-rank {
  background: #0ea5e9;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-name {
  font-weight: 600;
  color: #1e293b;
}

.product-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.product-sales {
  font-weight: 700;
  color: #0ea5e9;
  font-size: 1rem;
}

.product-quantity {
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }

  .analytics-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .analytics-container {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #64748b;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error States */
.error {
  background: #fef2f2;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  margin: 20px 0;
}.alerts-container {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.alerts-header h1 {
  color: #0F4454;
  margin: 0;
}

.unread-badge {
  color: #ef4444;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.mark-all-btn {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mark-all-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.alerts-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.alerts-filters button {
  padding: 8px 20px;
  border: none;
  background: #f7fafd;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.alerts-filters button:hover {
  background: #e2e8f0;
}

.alerts-filters button.active {
  background: #0ea5e9;
  color: white;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.alert-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.alert-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-card.unread {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
}

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

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

.alert-header h3 {
  margin: 0;
  font-size: 16px;
  color: #2d3748;
}

.alert-time {
  font-size: 12px;
  color: #718096;
}

.alert-message {
  margin: 0 0 8px 0;
  color: #4a5568;
  font-size: 14px;
}

.alert-details {
  display: flex;
  gap: 15px;
  margin-top: 8px;
  font-size: 12px;
  color: #718096;
}

.delete-alert {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #cbd5e0;
  transition: color 0.3s ease;
}

.delete-alert:hover {
  color: #ef4444;
}

.no-alerts {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 12px;
}

.no-alerts span {
  font-size: 50px;
  display: block;
  margin-bottom: 20px;
}

.no-alerts p {
  color: #718096;
  font-size: 16px;
}

@media (max-width: 768px) {
  .alert-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .alert-details {
    flex-direction: column;
    gap: 5px;
  }
}.ai-insights-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.ai-header {
  text-align: center;
  margin-bottom: 40px;
}

.ai-header h1 {
  color: #0F4454;
  margin-bottom: 10px;
}

.ai-header p {
  color: #718096;
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0ea5e9;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.predictions-section,
.insights-section,
.recommendations-section,
.ai-chat-section {
  margin-bottom: 40px;
}

.predictions-section h2,
.insights-section h2,
.recommendations-section h2,
.ai-chat-section h2 {
  color: #2d3748;
  margin-bottom: 20px;
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.prediction-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.prediction-card:hover {
  transform: translateY(-5px);
}

.prediction-card h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.prediction-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.prediction-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.9;
}

.trend.up {
  color: #c6f6d5;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.insight-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.insight-category {
  display: inline-block;
  padding: 4px 12px;
  background: #e2e8f0;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.insight-card h3 {
  margin: 0 0 10px 0;
  color: #2d3748;
}

.insight-card p {
  color: #4a5568;
  margin-bottom: 15px;
}

.insight-impact {
  font-size: 12px;
  font-weight: bold;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recommendation-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.recommendation-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.recommendation-header h3 {
  margin: 0;
  color: #2d3748;
}

.priority-high {
  background: #ef4444;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.priority-medium {
  background: #f59e0b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.priority-low {
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.recommendation-action {
  color: #4a5568;
  margin-bottom: 10px;
}

.recommendation-roi {
  color: #10b981;
  font-weight: bold;
  margin-bottom: 15px;
}

.apply-recommendation {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease; .restock-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.restock-header {
  text-align: center;
  margin-bottom: 30px;
}

.restock-header h1 {
  color: #0F4454;
  margin-bottom: 10px;
}

.restock-header p {
  color: #718096;
}

.success-message {
  background: #48bb78;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.restock-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.low-stock-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.low-stock-section h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.items-table-container {
  overflow-x: auto;
}

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

.items-table th,
.items-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.items-table th {
  background: #f7fafd;
  font-weight: 600;
  color: #2d3748;
}

.items-table tr.selected {
  background: #f0f9ff;
}

.medicine-name {
  font-weight: 500;
}

.low-stock {
  color: #ef4444;
  font-weight: bold;
}

.shortage {
  color: #f59e0b;
  font-weight: bold;
}

.quantity-input {
  width: 80px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
}

.quantity-input:disabled {
  background: #f7fafd;
  cursor: not-allowed;
}

.total-cost {
  color: #0ea5e9;
  font-weight: bold;
}

.order-summary-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.order-summary-section h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.supplier-selection {
  margin-bottom: 20px;
}

.supplier-selection label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}

.supplier-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

.order-items {
  margin: 20px 0;
  padding: 15px;
  background: #f7fafd;
  border-radius: 8px;
}

.order-items h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0 0 0;
  margin-top: 10px;
  border-top: 2px solid #e2e8f0;
  font-size: 18px;
  color: #0ea5e9;
}

.place-order-btn {
  width: 100%;
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.place-order-btn:hover:not(:disabled) {
  background: #0284c7;
  transform: translateY(-2px);
}

.place-order-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

@media (max-width: 968px) {
  .restock-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .items-table {
    font-size: 12px;
  }
  
  .items-table th,
  .items-table td {
    padding: 8px;
  }
  
  .quantity-input {
    width: 60px;
  }
}.bulk-discount-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.discount-header {
  text-align: center;
  margin-bottom: 30px;
}

.discount-header h1 {
  color: #0F4454;
  margin-bottom: 10px;
}

.discount-header p {
  color: #718096;
}

.success-message {
  background: #48bb78;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.discount-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.discount-form-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.discount-form-section h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.discount-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

.discount-input:focus {
  outline: none;
  border-color: #0ea5e9;
}

.apply-discount-btn {
  width: 100%;
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.apply-discount-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.medicines-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.medicines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.medicines-header h2 {
  margin: 0;
  color: #2d3748;
}

.select-all-btn {
  background: #e2e8f0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-all-btn:hover {
  background: #cbd5e0;
}

.medicines-list {
  overflow-x: auto;
}

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

.medicines-table th,
.medicines-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.medicines-table th {
  background: #f7fafd;
  font-weight: 600;
  color: #2d3748;
}

.medicines-table tr.selected {
  background: #f0f9ff;
}

.medicine-name {
  font-weight: 500;
}

.discount-badge {
  background: #f59e0b;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.discounted-price {
  display: flex;
  gap: 10px;
  align-items: center;
}

.old-price {
  text-decoration: line-through;
  color: #ef4444;
  font-size: 12px;
}

.new-price {
  color: #48bb78;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 968px) {
  .discount-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .medicines-table {
    font-size: 12px;
  }
  
  .medicines-table th,
  .medicines-table td {
    padding: 8px;
  }
}.emergency-order-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.emergency-header {
  text-align: center;
  margin-bottom: 30px;
}

.emergency-header h1 {
  color: #ef4444;
  margin-bottom: 10px;
  font-size: 32px;
}

.emergency-header p {
  color: #718096;
}

.success-message {
  background: #48bb78;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.emergency-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.medicines-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.medicines-section h2 {
  margin-bottom: 15px;
  color: #2d3748;
}

.search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.medicines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.medicine-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.medicine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.medicine-info h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #2d3748;
}

.category {
  color: #718096;
  font-size: 11px;
  margin: 5px 0;
}

.price {
  color: #0ea5e9;
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0;
}

.stock {
  color: #48bb78;
  font-size: 11px;
}

.add-btn {
  width: 100%;
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: #dc2626;
}

.order-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.order-section h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.urgency-section {
  margin-bottom: 20px;
}

.urgency-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #2d3748;
}

.urgency-buttons {
  display: flex;
  gap: 10px;
}

.urgency-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.urgency-btn.active.high {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.urgency-btn.active.medium {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}

.urgency-btn.active.low {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.empty-cart {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.item-info h4 {
  margin: 0;
  font-size: 14px;
}

.item-info p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #718096;
}

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

.quantity-input {
  width: 60px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
}

.remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.item-total {
  font-weight: bold;
  color: #0ea5e9;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: #f7fafd;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 18px;
}

.instructions-section {
  margin: 20px 0;
}

.instructions-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.instructions-section textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.place-order-btn {
  width: 100%;
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.place-order-btn:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-2px);
}

.place-order-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

@media (max-width: 968px) {
  .emergency-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .urgency-buttons {
    flex-direction: column;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .item-controls {
    justify-content: center;
  }
}.generate-report-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.report-header {
  text-align: center;
  margin-bottom: 30px;
}

.report-header h1 {
  color: #0F4454;
  margin-bottom: 10px;
}

.report-header p {
  color: #718096;
}

.success-message {
  background: #48bb78;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

.report-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}

.report-form {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.report-form h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}

.report-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.date-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

.format-buttons {
  display: flex;
  gap: 10px;
}

.format-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.format-btn.active {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.format-btn:hover {
  background: #e2e8f0;
}

.generate-btn {
  width: 100%;
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.generate-btn:hover:not(:disabled) {
  background: #0284c7;
  transform: translateY(-2px);
}

.generate-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

.report-preview {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.report-preview h2 {
  margin-bottom: 20px;
  color: #2d3748;
}

.preview-content {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.preview-content h3 {
  margin: 0 0 10px 0;
  color: #0F4454;
  font-size: 20px;
}

.preview-date {
  color: #718096;
  font-size: 12px;
  margin-bottom: 20px;
}

.preview-table {
  overflow-x: auto;
  margin: 20px 0;
}

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

.preview-table th,
.preview-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.preview-table th {
  background: #f7fafd;
  font-weight: 600;
  color: #2d3748;
}

.preview-stats {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.stat span {
  color: #718096;
}

.stat strong {
  color: #2d3748;
}

@media (max-width: 968px) {
  .report-content {
    grid-template-columns: 1fr;
  }
  
  .date-range {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .format-buttons {
    flex-direction: column;
  }
  
  .preview-table {
    font-size: 12px;
  }
  
  .preview-table th,
  .preview-table td {
    padding: 6px;
  }
}:root {
  --primary: #0F4454;
  --accent: #519FAD;
  --soft: #CAB5A7;
  --bg: #FCF8F5;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
}

/* NAVBAR */
nav {
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

/* CONTAINER */
.container {
  padding: 20px;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: white;
  padding: 40px;
  border-radius: 20px;
}

/* SEARCH */
.search {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-top: 20px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
  margin-top: 20px;
}

/* CARD */
.card {
  background: white;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

/* ALERT */
.alert {
  background: #ffdede;
  padding: 5px;
  border-radius: 5px;
  margin-top: 5px;
}