/* Pharmacy Management System - Main Styles */

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

/* Expiry warning styles */
.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.expiry-warning {
  margin-left: 5px;
  cursor: help;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

.header h1 i {
  margin-right: 0.5rem;
  color: #ffd700;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Form Container */
.form-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-container h2 {
  color: #667eea;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.form-container h2 i {
  margin-right: 0.5rem;
  color: #764ba2;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background-color: #fafbfc;
}

.form-section h3 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.form-section h3 i {
  margin-right: 0.5rem;
  color: #764ba2;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="number"] {
  text-align: right;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e1e5e9;
}

/* Messages */
.success-message,
.error-message {
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Sales Page Styles */
.sales-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.sales-container h2 {
  color: #667eea;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.sales-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.customer-section,
.medicine-section {
  grid-column: 1 / -1;
}

.cart-section {
  grid-column: 1 / -1;
}

/* Customer Form */
.customer-form {
  background-color: #fafbfc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

/* Search Container */
.search-container {
  background-color: #fafbfc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  margin-bottom: 1rem;
}

.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
}

.search-filters {
  display: flex;
  gap: 1rem;
}

.search-filters select {
  padding: 0.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  background-color: white;
}

/* Medicine Results */
.medicine-results {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background-color: white;
}

.medicine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
  transition: background-color 0.3s ease;
}

.medicine-item:hover {
  background-color: #f8f9fa;
}

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

.medicine-info h4 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.medicine-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.medicine-stock {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.stock-quantity {
  color: #28a745;
}

.unit-price {
  color: #667eea;
}

.medicine-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e1e5e9;
  background-color: white;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background-color: #f8f9fa;
}

.quantity-input {
  width: 60px;
  text-align: center;
  padding: 0.25rem;
  border: 1px solid #e1e5e9;
  border-radius: 3px;
}

/* Cart Styles */
.cart-items {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background-color: white;
  margin-bottom: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

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

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

.cart-item-info h4 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.cart-item-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-quantity-btn {
  width: 25px;
  height: 25px;
  border: 1px solid #e1e5e9;
  background-color: white;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cart-quantity-btn:hover {
  background-color: #f8f9fa;
}

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
}

.cart-unit-price {
  color: #666;
}

.cart-total-price {
  font-weight: 600;
  color: #667eea;
}

/* Cart Summary */
.cart-summary {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  align-items: center;
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.1rem;
  color: #667eea;
  border-top: 2px solid #e1e5e9;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.summary-row input {
  width: 100px;
  text-align: right;
  padding: 0.25rem;
  border: 1px solid #e1e5e9;
  border-radius: 3px;
}

/* Payment Section */
.payment-section {
  margin-bottom: 1rem;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Footer */
.footer {
  background-color: #222;
  color: #f1f1f1;
  padding: 20px;
  text-align: center;
}
.footer a {
  color: #ffcc00;
  text-decoration: none;
}
.footer a:hover {
  color: #00ffcc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: flex !important;
    font-size: 1.8rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    min-width: 50px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .mobile-menu-toggle i {
    color: white !important;
  }

  .nav {
    display: none !important;
  }

  .nav.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .nav.mobile-nav.active {
    display: flex !important;
  }

  .nav.mobile-nav .nav-link {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.1rem;
  }

  .nav.mobile-nav .nav-link:last-child {
    border-bottom: none;
  }

  .header-actions {
    gap: 0.5rem;
    align-items: center;
  }

  .user-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-info span {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .sales-layout {
    grid-template-columns: 1fr;
  }

  .medicine-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .medicine-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .form-actions {
    flex-direction: column;
  }

  .cart-actions {
    flex-direction: column;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #667eea;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Dashboard Styles */
.dashboard {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.dashboard h2 {
  color: #667eea;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

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

.card-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.card-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.card-number {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.quick-actions {
  margin-bottom: 2rem;
}

.quick-actions h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.action-btn i {
  font-size: 2rem;
  color: #667eea;
}

.action-btn span {
  font-weight: 600;
}

.recent-activity h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.activity-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e5e9;
}

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

.activity-item i {
  font-size: 1.2rem;
  width: 20px;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-text {
  font-weight: 500;
}

.activity-time {
  font-size: 0.9rem;
  color: #666;
}

/* Inventory Styles */
.inventory-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.inventory-container h2 {
  color: #667eea;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.inventory-filters {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e1e5e9;
}

.inventory-filters h3 {
  color: #667eea;
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inventory-filters h3 i {
  color: #764ba2;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 150px;
  flex: 1;
  position: relative;
}

.filter-item:first-child {
  flex: 2;
  min-width: 250px;
}

.filter-item label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.filter-item input,
.filter-item select {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  width: 100%;
  box-sizing: border-box;
  color: #333;
  font-weight: 500;
}

.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #f8f9ff;
}

.filter-item input:hover,
.filter-item select:hover {
  border-color: #c1c8d1;
  background: #f8f9fa;
}

/* Active filter styling */
.filter-item select.filter-active {
  border-color: #28a745;
  background: #f8fff9;
  color: #155724;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.filter-item input.filter-active {
  border-color: #28a745;
  background: #f8fff9;
  color: #155724;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.filter-item label.filter-label-active {
  color: #28a745;
  font-weight: 700;
}

.filter-item select option {
  padding: 0.5rem;
  background: white;
  color: #333;
}

.filter-item select option:checked {
  background: #667eea;
  color: white;
  font-weight: 600;
}

/* Filter indicator */
.filter-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filter-item:has(.filter-active)::after {
  background: #28a745;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #28a745;
}

/* Custom months input styling */
#customMonthsContainer {
  transition: all 0.3s ease;
}

#customMonths {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  font-weight: 500;
}

#customMonths:focus {
  background: white;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-item .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex: 0 0 auto;
  white-space: nowrap;
}

.filter-item .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card i {
  font-size: 2rem;
  color: #667eea;
}

.stat-card h4 {
  margin: 0 0 0.25rem 0;
  color: #555;
  font-size: 0.9rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.inventory-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.inventory-table th {
  background: #667eea;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.inventory-table td {
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
}

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

.medicine-type {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.medicine-type.dg {
  background-color: #d4edda;
  color: #155724;
}

.medicine-type.pr {
  background-color: #f8d7da;
  color: #721c24;
}

.status {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-good {
  background-color: #d4edda;
  color: #155724;
}

.status-low-stock {
  background-color: #fff3cd;
  color: #856404;
}

.status-expiring {
  background-color: #f8d7da;
  color: #721c24;
}

.status-expired {
  background-color: #dc3545;
  color: white;
  font-weight: bold;
}

/* Expired Medicine Styles for Sales Form */
.expired-medicine {
  background-color: #ffe6e6;
  border: 2px solid #dc3545;
  opacity: 0.8;
}

.expired-medicine .medicine-name {
  color: #dc3545;
  font-weight: bold;
}

.expired-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 8px;
}

.expired-medicine .add-to-cart.disabled {
  background-color: #6c757d;
  color: white;
  cursor: not-allowed;
  opacity: 0.6;
}

.expired-medicine .quantity-input,
.expired-medicine .quantity-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Expiring Soon Medicine Styles */
.expiring-soon-medicine {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-left: 6px solid #ffc107;
}

.expiring-soon-medicine .medicine-name {
  color: #856404;
  font-weight: bold;
}

.expiring-soon-medicine .expiry-date {
  color: #856404;
  font-weight: bold;
}

.expiring-soon-medicine .add-to-cart {
  background-color: #ffc107;
  color: #212529;
  font-weight: bold;
}

.expiring-soon-medicine .add-to-cart:hover {
  background-color: #e0a800;
}

.status-out-of-stock {
  background-color: #f5c6cb;
  color: #721c24;
}

.btn-sm {
  padding: 0.5rem;
  font-size: 0.9rem;
  margin: 0 0.25rem;
}

.loading-row,
.no-data {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

.inventory-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  color: #666;
  font-size: 0.95rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-controls .btn {
  min-width: auto;
  padding: 0.5rem 1rem;
}

.pagination-controls .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-page-info {
  padding: 0 1rem;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls {
    justify-content: center;
  }

  .pagination-info {
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 20px 0;
}

.modal-content {
  background-color: white;
  margin: 20px auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: #667eea;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

.close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e1e5e9;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-shrink: 0;
  background-color: #f8f9fa;
  border-radius: 0 0 10px 10px;
}

.medicine-details {
  display: grid;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

/* Responsive Design for Dashboard and Inventory */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .inventory-filters {
    padding: 1rem;
  }

  .filter-row {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-item {
    flex-direction: column;
    align-items: stretch;
    min-width: 100%;
    flex: none;
    gap: 0.5rem;
  }

  .filter-item:first-child {
    min-width: 100%;
    flex: none;
  }

  .filter-item label {
    margin-bottom: 0.25rem;
  }

  #customMonthsContainer {
    margin-top: 0.5rem;
  }

  .inventory-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .inventory-table {
    font-size: 0.9rem;
  }

  .inventory-table th,
  .inventory-table td {
    padding: 0.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }

  .modal-body {
    max-height: calc(100vh - 150px);
    padding: 1rem;
  }

  .inventory-actions {
    flex-direction: column;
  }
}

/* Sales Page Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e5e9;
}

.page-actions {
  display: flex;
  gap: 1rem;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
}

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

.summary-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.summary-card:nth-child(1) .summary-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.summary-card:nth-child(2) .summary-icon {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.summary-card:nth-child(3) .summary-icon {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.summary-card:nth-child(4) .summary-icon {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.summary-content h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.summary-content p {
  color: #666;
  font-size: 0.9rem;
}

.filters-section {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #667eea;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
}

.payment-method {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-method.cash {
  background: #d4edda;
  color: #155724;
}

.payment-method.card {
  background: #cce5ff;
  color: #004085;
}

.payment-method.insurance {
  background: #fff3cd;
  color: #856404;
}

.payment-method.unknown {
  background: #f8d7da;
  color: #721c24;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-data-message {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.no-data-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

/* Sale Details Modal Styles */
.sale-details {
  max-width: 600px;
}

.sale-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e5e9;
}

.sale-header h4 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.sale-date {
  color: #666;
  font-size: 0.9rem;
}

.sale-info {
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-row .label {
  font-weight: 600;
  color: #333;
}

.info-row .value {
  color: #666;
}

.sale-items {
  margin-bottom: 2rem;
}

.sale-items h5 {
  margin-bottom: 1rem;
  color: #333;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

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

.items-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.sale-totals {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.total-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #333;
  margin-top: 0.5rem;
}

/* Sales Page Responsive */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .page-actions {
    justify-content: center;
  }

  .table-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .search-input {
    min-width: auto;
    width: 100%;
  }

  .pagination {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filters-section {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
  }
}

/* Login Page Styles */
.login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

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

.login-header h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-header h1 i {
  color: #667eea;
  margin-right: 0.5rem;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

.login-form {
  margin-bottom: 1.5rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.login-form label i {
  margin-right: 0.5rem;
  color: #667eea;
  width: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
}

.form-options {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}

.login-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  color: #c33;
  margin-bottom: 1rem;
}

.error-message i {
  margin-right: 0.5rem;
}

.login-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

.login-footer p {
  color: #666;
  font-size: 0.9rem;
}

.login-footer i {
  margin-right: 0.5rem;
  color: #667eea;
}

.login-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.info-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.info-card h3 i {
  margin-right: 0.5rem;
  color: #ffd700;
}

.info-card p {
  line-height: 1.6;
  opacity: 0.9;
}

.demo-info {
  margin-top: 2rem;
}

.demo-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e1e5e9;
}

.demo-card h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.demo-card h4 i {
  color: #667eea;
  margin-right: 0.5rem;
}

.demo-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-role {
  font-size: 0.9rem;
  color: #666;
  padding: 0.5rem;
  background: white;
  border-radius: 5px;
  border: 1px solid #e1e5e9;
}

/* Login Page Responsive */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .login-card {
    padding: 2rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .demo-credentials {
    flex-direction: column;
  }
}

/* Improved Table Alignment */
.data-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
  vertical-align: middle;
}

.data-table th {
  font-weight: 600;
  background: #f8f9fa;
  border-bottom: 2px solid #e1e5e9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
  background: #f0f0f0;
}

/* Sales table specific improvements */
#salesTable th:nth-child(1) {
  width: 20%;
} /* Date */
#salesTable th:nth-child(2) {
  width: 25%;
} /* Customer */
#salesTable th:nth-child(3) {
  width: 15%;
} /* Items */
#salesTable th:nth-child(4) {
  width: 15%;
} /* Total Amount */
#salesTable th:nth-child(5) {
  width: 15%;
} /* Payment Method */
#salesTable th:nth-child(6) {
  width: 10%;
} /* Actions */

#salesTable td:nth-child(4) {
  text-align: right;
  font-weight: 600;
  color: #28a745;
}

#salesTable td:nth-child(5) {
  text-align: center;
}

#salesTable td:nth-child(6) {
  text-align: center;
}

/* Dashboard Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle.active i:before {
  content: "\f00d"; /* FontAwesome times icon */
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-weight: 500;
}

.user-info i {
  color: #667eea;
}

.user-info span {
  display: inline;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-actions {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.quick-actions h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.action-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.action-btn span {
  font-weight: 600;
}

.recent-activity,
.recent-sales,
.top-medicines {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.recent-activity h3,
.recent-sales h3,
.top-medicines h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.activity-list,
.sales-list,
.medicine-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item,
.sale-item,
.medicine-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.activity-icon {
  margin-right: 1rem;
  color: #667eea;
  font-size: 1.2rem;
}

.activity-content p {
  margin: 0;
  font-weight: 500;
  color: #333;
}

.activity-time {
  font-size: 0.9rem;
  color: #666;
}

.sale-info,
.medicine-info {
  flex: 1;
}

.sale-info h4,
.medicine-info h4 {
  margin: 0 0 0.25rem 0;
  color: #333;
}

.sale-info p,
.medicine-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.sale-amount,
.medicine-stock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 1rem;
}

.amount {
  font-weight: 600;
  color: #28a745;
  font-size: 1.1rem;
}

.stock-count {
  font-weight: 600;
  color: #333;
}

.stock-price {
  color: #666;
  font-size: 0.9rem;
}

.sale-actions {
  margin-left: auto;
}

.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.chart-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

.view-all {
  text-align: center;
  margin-top: 1rem;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.no-data i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-data p {
  margin: 0;
  font-size: 1.1rem;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-section {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .sale-item,
  .medicine-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .sale-amount,
  .medicine-stock {
    align-items: flex-start;
    margin-right: 0;
    margin-top: 0.5rem;
  }
}

/* Mode selector styles */
.mode-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
}

.mode-option {
  flex: 1;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.mode-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.mode-option.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.mode-option i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.mode-option span {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.mode-option small {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Medicine search section */
.medicine-search-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.search-result-details {
  font-size: 0.9rem;
  color: #666;
}

.search-result-stock {
  color: #28a745;
  font-weight: 500;
}

/* Simplified form styles */
.form-simplified .form-group {
  display: none;
}

.form-simplified .form-group.required {
  display: block;
}

.form-simplified .form-group.stock-related {
  display: block;
}

/* User Management Styles */
.role-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.admin {
  background: #e3f2fd;
  color: #1976d2;
}

.role-badge.sales {
  background: #f3e5f5;
  color: #7b1fa2;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

/* Additional Modal Improvements */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure permissions container doesn't overflow */
.permissions-container {
  max-height: 300px;
  overflow-y: auto;
}

.permissions-container::-webkit-scrollbar {
  width: 4px;
}

.permissions-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.permissions-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.form-actions .btn {
  min-width: 100px;
}
