/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Authentication Container */
#auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Full width */
  max-width: 100%; /* Prevent overflow */
  height: 100vh;
  padding: 20px;
  background-color: #ffffff;
  box-sizing: border-box; /* Include padding in the width calculation */
}

#auth-container h1 {
  font-size: 6vw;
  margin-bottom: 20px;
}

#auth-container input[type="password"] {
  width: 80%;
  max-width: 100%; /* Prevent overflow */
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 4vw;
  box-sizing: border-box; /* Include padding in the width calculation */
}

#auth-container button {
  width: 50%;
  max-width: 100%; /* Prevent overflow */
  padding: 10px;
  font-size: 5vw;
  background-color: var(--main-color-b);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#auth-container button:hover {
  background-color: var(--main-color);
}

/* Driver Selection */
#driverSelection {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in the width calculation */
}

#driverDropdown,
#datePicker {
  width: 90%;
  max-width: 100%; /* Prevent overflow */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 4vw;
  box-sizing: border-box; /* Include padding in the width calculation */
}

#driverSelection button {
  width: 100%;
  max-width: 100%; /* Prevent overflow */
  padding: 10px;
  font-size: 5vw;
  background-color: var(--main-color-b);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#driverSelection button:hover {
  width: 100%;
  background-color: var(--main-color);
}

/* Data Container */
#data {
  padding: 20px;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in the width calculation */
}

#selectAllContainer {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 4vw;
  cursor: pointer;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in the width calculation */
}

#selectAll {
  margin-right: 10px;
  transform: scale(1.5);
}

/* Routes Container (Cards) */
.route-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in the width calculation */
}

.route-card input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 10px;
}

.route-info {
  flex: 1;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in the width calculation */
}

.route-info h2 {
  font-size: 5vw;
  margin-bottom: 5px;
}

.route-info p {
  font-size: 4vw;
  margin: 5px 0;
}

.phone-link {
/*  color: var(--main-color-b);*/
/*  text-decoration: none;*/
}

.phone-link:hover {
  text-decoration: underline;
}

/* Load Route Button */
#data button {
  width: 100%;
  padding: 10px;
  font-size: 5vw;
  background-color: var(--main-color-b);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

#data button:hover {
  background-color: var(--main-color-b);
}

/* Map Container */
#map {
  height: 400px; /* Adjusted height for mobile */
  width: 100%;
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* Include padding in the width calculation */
}


.modal {
  display: none; /* Скрываем по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
}

.route-info {
  margin-bottom: 10px;
}

.finish-btn {
  padding: 10px;
  background-color: var(--main-color-b);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

.modal-content input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.send-btn {
  font-size: 5vw;
  padding: 10px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}
