:root {
  --primary-color: #e63923;
  --secondary-color: #6cc24a;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Login Page */
.driver-login-page {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.login-logo {
  max-width: 200px;
  height: auto;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem;
}

.btn-primary:hover {
  background-color: #d32f1f;
  border-color: #d32f1f;
}

.input-group-text {
  background-color: var(--bg-light);
  border-right: none;
}

.form-control {
  border-left: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

/* Dashboard */
.driver-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.driver-logo {
  max-height: 40px;
}

.status-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
}

.status-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.status-btn.online {
  background-color: var(--secondary-color);
  color: white;
}

.status-btn.offline {
  background-color: #999;
  color: white;
}

.status-btn:hover {
  transform: scale(1.1);
}

/* Cards */
.order-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.order-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Badges */
.badge-status {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-placed {
  background-color: #ffa726;
  color: white;
}
.badge-accepted {
  background-color: #42a5f5;
  color: white;
}
.badge-preparing {
  background-color: #ab47bc;
  color: white;
}
.badge-ready {
  background-color: #26c6da;
  color: white;
}
.badge-picked_up {
  background-color: #66bb6a;
  color: white;
}
.badge-on_the_way {
  background-color: #5c6bc0;
  color: white;
}
.badge-delivered {
  background-color: var(--secondary-color);
  color: white;
}
.badge-cancelled {
  background-color: #ef5350;
  color: white;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  z-index: 1000;
}

.nav-item {
  flex: 1;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.nav-item span {
  font-size: 0.75rem;
  display: block;
}

/* Map Container */
.map-container {
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

  .order-card {
    padding: 1rem;
  }
}

/* Content Padding for Bottom Nav */
.main-content {
  padding-bottom: 80px;
}
