* {
  font-family: 'Cairo', sans-serif;
}

body {
  background: #f0f2f5;
  margin: 0;
  padding: 0;
}

/* ====== LOGIN ====== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: center;
}

.login-logo {
  width: 70px;
  height: 70px;
  background: #1a73e8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: #fff;
}

.login-card h2 {
  color: #1a73e8;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-card .form-label {
  text-align: right;
  display: block;
  font-weight: 600;
}

.login-card .form-control {
  border-radius: 10px;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  transition: border-color 0.2s;
}

.login-card .form-control:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.login-card .btn-primary {
  background: #1a73e8;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}

.login-card .btn-primary:hover {
  background: #0d47a1;
}

/* ====== SIDEBAR ====== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: #1a1f36;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s;
}

.sidebar-header {
  padding: 24px 20px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
  color: #4dabf7;
  font-size: 28px;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav li {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #8b92a5;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border-radius: 0;
  margin: 2px 12px;
  border-radius: 10px;
}

.sidebar-nav li:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.sidebar-nav li.active {
  background: #1a73e8;
  color: #fff;
}

.sidebar-nav li i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====== MAIN CONTENT ====== */
.main-content {
  margin-right: 260px;
  min-height: 100vh;
}

.topbar {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar h4 {
  margin: 0;
  font-weight: 700;
  color: #1a1f36;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-weight: 600;
}

.topbar-user i {
  font-size: 24px;
  color: #1a73e8;
}

.page-container {
  padding: 24px;
}

/* ====== STAT CARDS ====== */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.stat-blue .stat-icon { background: #e8f0fe; color: #1a73e8; }
.stat-green .stat-icon { background: #e6f4ea; color: #34a853; }
.stat-purple .stat-icon { background: #f3e8fd; color: #9334e6; }
.stat-orange .stat-icon { background: #fef0e6; color: #e8710a; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #1a1f36;
}

.stat-label {
  font-size: 13px;
  color: #8b92a5;
  font-weight: 600;
}

/* ====== CARDS ====== */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
  border-radius: 16px 16px 0 0 !important;
}

.card-header h5 {
  font-weight: 700;
  color: #1a1f36;
}

.card-body {
  padding: 24px;
}

/* ====== TABLE ====== */
.table {
  margin: 0;
}

.table th {
  background: #f8f9fa;
  font-weight: 700;
  font-size: 13px;
  color: #8b92a5;
  border: none;
  padding: 12px 16px;
}

.table td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 14px;
  border-color: #f0f0f0;
}

/* ====== BADGES ====== */
.badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-completed { background: #e6f4ea; color: #137333; }
.badge-cancelled { background: #fce8e6; color: #c5221f; }
.badge-in_progress { background: #fff3e0; color: #e65100; }
.badge-searching { background: #e8f0fe; color: #1a73e8; }
.badge-offered { background: #fff3e0; color: #e65100; }
.badge-accepted { background: #e8f0fe; color: #1a73e8; }
.badge-no_driver { background: #fce8e6; color: #c5221f; }
.badge-online { background: #e6f4ea; color: #137333; }
.badge-offline { background: #f0f0f0; color: #666; }

/* ====== PRICING CALCULATOR ====== */
.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #555;
}

.calc-row.total {
  font-weight: 800;
  font-size: 18px;
  color: #1a1f36;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-right: 0;
  }
}
