* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  height: 100vh;
  overflow: hidden;
}

.dashboard {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo h1 {
  display: none;
}

.sidebar.collapsed .menu-text {
  display: none;
}

.sidebar.collapsed .menu li {
  padding: 0 8px;
}

.logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  color: #1a1a1a;
}

.toggle-menu {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.toggle-menu:hover {
  color: #0066ff;
}

.menu {
  list-style: none;
  padding: 20px 0;
}

.menu li {
  padding: 0 20px;
}

.menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu a span {
  margin-right: 12px;
  font-size: 18px;
}

.menu li.active a {
  background: #f0f7ff;
  color: #0066ff;
}

.menu a:hover {
  background: #fff7e6;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  margin-bottom: 16px; /* Ajuste para el panel flotante */
}

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #0066ff;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.user-profile {
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  cursor: pointer;
}

.content {
  position: relative; /* Permite posicionar el contenedor flotante sobre el mapa */
  height: 100%;
}

.drivers-panel {
  position: absolute; /* Hace que el contenedor sea flotante */
  top: 16px;
  left: 16px;
  width: 320px; /* Ajusta el ancho del panel */
  max-height: calc(100% - 32px); /* Limita la altura del panel */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 16px;
  z-index: 10; /* Asegura que esté sobre el mapa */
}

.drivers-panel.hidden {
  width: 0;
  border-right: none;
}

.drivers-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.driver-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.driver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.driver-info {
  display: flex;
  gap: 16px;
  flex: 1;
}

.driver-avatar {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  object-fit: cover;
}

.driver-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.driver-details h3 {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.car-info, .contact-info, .location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 13px;
}

.rating {
  margin-top: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stars {
  color: #ffd700;
}

.rating-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-number {
  font-weight: 600;
  color: #1a1a1a;
}

.total-rides {
  color: #666;
}

.status-badge {
  background: #e6ffe6;
  color: #008000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
}

.more-options {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 8px;
  top: 12px;
  transition: background-color 0.2s ease;
}

.more-options:hover {
  background: #f5f5f5;
  border-radius: 4px;
}

.more-options-menu {
  position: absolute;
  top: 40px;
  right: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

.more-options-menu.show {
  display: block;
}

.more-options-menu ul {
  list-style: none;
  padding: 8px 0;
}

.more-options-menu li {
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.more-options-menu li:hover {
  background-color: #f5f5f5;
}
