/* base.css - Global CSS Reset and Light Mode Enforcement */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9fbfd;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

html {
  color-scheme: light;
}

/* Ensure text is always visible regardless of background */
.text-visibility-enforced {
  color: #1a1a1a !important;
}

.text-muted.text-visibility-enforced {
  color: #666666 !important;
}

/* Dashboard card safety wrapper */
.dashboard-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.5rem;
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dashboard-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #5F259F;
}

.dashboard-card .count {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333333;
}

.dashboard-card .label {
  font-size: 1rem;
  color: #666666;
  margin-top: auto;
}

/* Table visibility enforcement */
.table {
  color: #333333 !important;
  background-color: #ffffff;
  border-color: #e0e0e0;
}

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

.table td {
  color: #333333;
}

/* Form control safety */
.form-control {
  background-color: #ffffff;
  color: #333333;
  border-color: #ced4da;
}

.form-control:focus {
  color: #333333;
  background-color: #ffffff;
  border-color: #5F259F;
  box-shadow: 0 0 0 0.25rem rgba(95, 37, 159, 0.25);
}

/* Status badge safety */
.status-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

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

.status-badge.accepted {
  background-color: #17a2b8;
  color: #ffffff;
}

.status-badge.en-route {
  background-color: #007bff;
  color: #ffffff;
}

.status-badge.picked {
  background-color: #6f42c1;
  color: #ffffff;
}

.status-badge.awaiting-confirmation {
  background-color: #fd7e14;
  color: #212529;
}

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