:root {
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-2xl: 1.625rem;
  --color-fg: #18181B;
  --color-fg-muted: #71717A;
  --color-fg-subtle: #A1A1AA;
  --color-border: #E4E4E7;
  --color-border-soft: #EBEBEB;
  --color-bg: #F4F4F5;
  --color-primary: #f37a20;
}
html {
  font-size: 16.5px;
}
body {
  font-size: var(--fs-base);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#ridesTableBody td,
.table tbody td {
  font-size: var(--fs-sm) !important;
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.015em;
  color: var(--color-fg);
}
.table { font-size: var(--fs-sm); }
.table thead th {
  font-size: var(--fs-xs);
  color: var(--color-fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.form-label { font-size: var(--fs-sm); font-weight: 500; color: var(--color-fg); }
.form-control, .form-select { font-size: var(--fs-sm); }
.btn { font-size: var(--fs-sm); }
.dropdown-menu { font-size: var(--fs-sm); }
.password-toggle {
  position: absolute;
  right: 15px;
  top: 32px;
  cursor: pointer;
  color: #9a9a9a;
}
.login-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.sidebar {
  width: 220px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #ffffff;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}
.main-content {
  margin-left: 220px;
  transition: margin 0.3s ease;
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar.active {
    transform: translateX(0);
  }
}
.rotate-icon {
  transition: transform 0.3s ease;
}
.rotate-icon[aria-expanded='true'] {
  transform: rotate(180deg);
}
.navbar {
  background-color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-container {
  position: relative;
  transition: all 0.3s ease;
}
.search-input {
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  border: none;
  background: #f5f7fa;
  border-radius: 20px;
  padding-left: 40px;
}
.search-container.active .search-input {
  width: 250px;
  opacity: 1;
  padding: 8px 15px 8px 40px;
}
.search-icon {
  position: absolute;
  left: 10px;
  z-index: 2;
}
.custom-dropdown {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
}
.custom-dropdown .dropdown-item {
  padding: 8px 20px;
}
@media (min-width: 768px) {
  .ms-lg-230 {
    margin-left: 230px !important;
  }
}
.form-check-output {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-check-output + label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: #1f1f21;
}
.form-check-output + label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 1px solid #969696;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.form-check-output:checked + label::before {
  background-color: #ff7a00;
  border-color: #ff7a00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.293 10.293l-2.146-2.147-1.414 1.414L6.293 13.12l8.147-8.147-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.orange-switch.form-check-input:checked {
  background-color: #76ee59;
  border-color: #76ee59;
}

.table tbody tr:hover {
  background-color: transparent !important;
}
.modal-backdrop.show {
  opacity: 0.6;
  backdrop-filter: blur(3px);
}
.main-content {
  display: flex;
  flex-direction: column;
}
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.table-responsive {
  flex: 1;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f37a20;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.view-details-btn i {
  font-size: 11px;
  line-height: 1;
}
.view-details-btn:focus-visible {
  outline: 2px solid #f37a20;
  outline-offset: 1px;
}
