/* Custom Styles for BALDMART EXPRESS */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  height: calc(100vh - 56px);
  width: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1000;
  transition: all 0.3s;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding-left: 30px;
}

.sidebar-menu li a i {
  margin-right: 10px;
  width: 20px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  margin-top: 56px;
  padding: 30px;
  min-height: calc(100vh - 56px);
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0 0 !important;
  padding: 20px;
}

.card-body {
  padding: 20px;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.875rem;
}

/* Status Badges */
.badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
}

.status-pending {
  background-color: #ffc107;
  color: #000;
}

.status-shipped {
  background-color: #17a2b8;
  color: #fff;
}

.status-delivered {
  background-color: #28a745;
  color: #fff;
}

.status-confirmed {
  background-color: #28a745;
  color: #fff;
}

/* Modal */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #eee;
  border-radius: 15px 15px 0 0;
}

.modal-footer {
  border-top: 1px solid #eee;
  border-radius: 0 0 15px 15px;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Pagination */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #ddd;
  color: #667eea;
}

.pagination .page-link:hover {
  background-color: #667eea;
  border-color: #667eea;
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: #667eea;
  border-color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    margin-left: -250px;
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar.show {
    margin-left: 0;
  }
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

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

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Chart Container */
#ordersChart,
#stockChart {
  min-height: 300px;
}

/* Search Input */
.form-control[type="search"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 16 16'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
