
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #fff3e0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: orange;
  padding: 10px 20px;
  position: relative;
  flex-wrap: nowrap; 
  text-align: left; 
}

header img {
  height: 70px;
  width: auto;
}

.header-text {
  text-align: center;
  flex: 1;
}

header h1 {
  margin: 0;
  font-size: 34px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header h6 {
  margin: 0;
  font-size: 15px;
  color: white;
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  header img {
    max-width: 60px;
    height: auto;
  }

  .header-text {
    width: 100%;
    margin: 5px 0;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text h6 {
    font-size: 0.9rem;
  }
}

.welcome-title {
  text-align: center;
  margin-top: 30px;
  font-size: 20px;
  color: #333;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.button-group button {
  background-color: #f57c00;
  color: white;
  border-radius: 100px;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 16px;
  width: 200px;
  border: none;
  transition: all 250ms;
  box-shadow: rgba(0, 0, 0, 0.2) 0 -25px 18px -14px inset,
              rgba(0, 0, 0, 0.15) 0 1px 2px,
              rgba(0, 0, 0, 0.15) 0 2px 4px,
              rgba(0, 0, 0, 0.15) 0 4px 8px,
              rgba(0, 0, 0, 0.15) 0 8px 16px,
              rgba(0, 0, 0, 0.15) 0 16px 32px;
}

.button-group button:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: rgba(0,0,0,0.35) 0 -25px 18px -14px inset,
              rgba(0,0,0,0.25) 0 1px 2px,
              rgba(0,0,0,0.25) 0 2px 4px,
              rgba(0,0,0,0.25) 0 4px 8px,
              rgba(0,0,0,0.25) 0 8px 16px,
              rgba(0,0,0,0.25) 0 16px 32px;
}

.zigzag-road {
  position: relative;
  width: 100%;
  height: 55px;
  background: repeating-linear-gradient(
    -45deg, #636262 0px, #636262 20px,
    #444 20px, #444 40px
  );
  display: flex;
  overflow: hidden;
}

.road-mark {
  position: relative;
  top: 50%;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    to right, yellow 0, yellow 40px,
    transparent 40px, transparent 80px
  );
  transform: translateY(-50%);
}

.footer-logo {
  position: absolute;
  right: 20px;
  height: 70px;
  width: auto;
}




.add-driver-container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.add-driver-form .form-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

button[type="submit"] {
  background: #f57c00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: #ff9800;
}

.driver-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
}

.driver-table th,
.driver-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.driver-table th {
  background: #f4f4f4;
}


.profile-main {
  padding: 40px 20px;
  background: #f9f9f9;
  min-height: 80vh;
}

.driver-profile {
  display: flex;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  gap: 30px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

.driver-profile img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid black;
}

.profile-info {
  flex: 1;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 16px;
}

.info-table th {
  background: #f57c00;
  color: white;
  width: 30%;
}

.info-table td {
  background: #fff8f0;
}

.back-btn {
  display: inline-block;
  background: #f57c00;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #fb8c00;
}


@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 8px 12px;
    text-align: center;
  }

  .logo-left, .logo-right {
    height: 50px;
  }

  header h1 {
    font-size: 20px;
  }

  header h6 {
    font-size: 12px;
  }

  .welcome-title {
    font-size: 18px;
    padding: 0 10px;
  }

  .button-group button {
    width: 150px;
    font-size: 14px;
  }

  .footer-logo {
    height: 50px;
    right: 10px;
  }

  .driver-profile {
    flex-direction: column;
    text-align: center;
  }

  .driver-profile img {
    width: 200px;
    height: 200px;
  }

  .driver-table,
  .info-table,
  .time-log-table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }

  .login-container {
    width: 90%;
    margin: 40px auto;
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input,
  .form-row select {
    width: 100%;
  }

  .add-driver-container {
    padding: 15px;
  }

  button[type="submit"] {
    width: 100%;
  }
}

.time-in-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  width: 100%;
  max-width: 600px;
}


.time-in-form input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.time-in-form button {
  padding: 10px 20px;
  background-color: #f57c00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.time-in-form button:hover {
  background-color: #e66a00;
}


@media (max-width: 768px) {
  .time-in-form {
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
  }

  .time-in-form input,
  .time-in-form button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {

  header {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  header img {
    max-width: 60px;
    height: auto;
  }

  .header-text {
    width: 100%;
    margin: 5px 0;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text h6 {
    font-size: 0.9rem;
  }



  .time-in-form {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    gap: 10px;
  }

  .time-in-form input,
  .time-in-form button {
    width: 100%;
  }


  .footer-logo {
    height: 50px;
    right: 10px;
  }


  .driver-profile {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .driver-profile img {
    max-width: 200px;
    height: auto;
  }


  .driver-table,
  .info-table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }
}

.add-driver-container {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  max-width: 1000px;
}

.add-driver-form .form-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.picture-upload {
  flex: 1;
  text-align: center;
}

.picture-upload label {
  display: block;
  padding: 20px;
  border: 2px dashed #ff6600;
  border-radius: 8px;
  cursor: pointer;
  color: #ff6600;
  font-weight: bold;
}

.picture-upload input[type="file"] {
  display: none;
}

.form-details {
  flex: 2;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-row button {
  background: #ff6600;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.form-row button:hover {
  background: #e65500;
}

.driver-list-title {
  margin-top: 40px;
  font-size: 1.4rem;
  color: #333;
  text-align: center;
}

.driver-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.driver-table th,
.driver-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.driver-table th {
  background: #ff6600;
  color: white;
}

.driver-table img {
  border-radius: 50%;
  object-fit: cover;
}

.view-profile-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #ff6600;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: 0.3s;
}

.view-profile-btn:hover {
  background: #e65500;
}
 .login-container {
    max-width: 400px;
    width: 90%;        
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .login-container h2 {
    margin-bottom: 20px;
    color: #e65500;
  }

  .login-container form input {
    width: 100%;         
    padding: 12px 15px;   
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
  }

  .login-container form input::placeholder {
    color: #999;
    font-size: 16px;
  }

  .login-container form button {
    width: 100%;         
    padding: 12px;
    background: #e65500;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
  }

  .login-container form button:hover {
    background: #d95300;
  }

  .error-message {
    color: red;
    margin-top: 10px;
  }


  @media screen and (max-width: 480px) {
    .login-container {
      padding: 20px;
      margin: 30px auto;
    }

    .login-container h2 {
      font-size: 20px;
    }

    .login-container form input,
    .login-container form button {
      padding: 10px 12px;
      font-size: 14px;
    }
  }
  