* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  color: #333;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #0056b3;
  margin-bottom: 30px;
}

section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  transition: 0.3s;
}

section:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

h2 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

input {
  padding: 10px;
  width: calc(25% - 20px);
  margin: 5px 10px 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #007bff;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 10px;
  margin-right: 10px;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

ul li {
  background-color: #f1f3f5;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  transition: 0.2s;
}

ul li:hover {
  background-color: #e2e6ea;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  position: relative;
  direction: rtl;
  text-align: right;
}

.modal-content .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.driver-card {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  border-left: 5px solid #007bff;
}


/* כפתור הדיווח הראשי */
.main-action {
  background-color: #ff4d4d;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.main-action:hover {
  background-color: #cc3c3e;
}

/* כפתורי המשנה מתחת */
.sub-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.sub-actions button {
  padding: 8px 14px;
  font-size: 14px;
  background-color: #ccc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.sub-actions button:hover {
  background-color: #aaa;
}

/* עיצוב לטופס – כל השדות */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  text-align: right;
  box-sizing: border-box;
}

/* כפתור שליחה בטופס */
.modal-content button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #0056b3;
}


.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  direction: rtl;
  text-align: right;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  direction: rtl;
  text-align: right;
  margin: 0 auto;
  position: relative;
}

/* כפתור אדום עיקרי */
.main-action {
  background-color: #ff4d4d;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 320px;
}

/* מרכוז הכפתור */
.action-container {
  margin-top: 30px;
  text-align: center;
}

/* כפתורים אפורים קטנים */
.sub-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.sub-actions button {
  padding: 8px 14px;
  font-size: 14px;
  background-color: #ccc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sub-actions button:hover {
  background-color: #aaa;
}
