/* Operator Portal Styles */

body {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Login Screen */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.login-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid #eee;
  padding: 1rem 1.25rem;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
  border-radius: 0.75rem;
}

.card.bg-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

.card.bg-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
}

.card.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.card.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

/* Table */
.table th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom-width: 1px;
}

.table td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.4em 0.65em;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
}

.btn-group-sm > .btn {
  border-radius: 0.375rem;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 1rem;
}

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

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

/* Toast */
.toast {
  border-radius: 0.75rem;
}

/* Form */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Status indicators */
.status-boarded {
  color: #198754;
}

.status-pending {
  color: #ffc107;
}

.status-nobus {
  color: #dc3545;
}

/* Row errors in bulk upload */
.row-error {
  background-color: #fff3cd !important;
}

.row-valid {
  background-color: #d1e7dd !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table {
    font-size: 0.875rem;
  }

  .btn-group-sm > .btn {
    padding: 0.2rem 0.4rem;
  }
}

/* Navbar customization */
.navbar-brand {
  font-weight: 600;
}

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

/* Sticky table header */
.table-responsive {
  max-height: 600px;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}
