@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #555;
    background-color: #d1cfcf;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.navbar {
    width: 100%;
    background-color: #ff6904;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 50px;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* Container utama */
.container-booking {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1000px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

/* Bagian gambar */
.image-section {
    flex-shrink: 0;
    width: 50%;
    height: 100%;
    background: url('your-image.jpg') no-repeat center center/cover;
    position: relative;
}

.image-section {
    flex-shrink: 0;
    width: 50%;
    height: auto;
    position: relative;
    overflow: hidden; /* Mencegah gambar terpotong aneh */
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Menjaga proporsi tanpa merusak aspek rasio */
    display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ff5a00;
  color: white;
  padding: 10px;
  z-index: 10;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .image-section {
        width: 100%;
        height: 250px; /* Sesuaikan tinggi agar tidak terlalu besar */
    }
}

/* Bagian Booking */
.booking-container {
    width: 50%;
    padding: 40px;
    background-color: white;
    color: #ff5a00;
}

/* H2 Heading */
.booking-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #F5821F;
}

/* Langkah-langkah Booking */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Agar tidak kepanjangan di layar kecil */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid white;
    gap: 10px;
}

.step {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1; /* Agar rata di semua layar */
    min-width: 80px; /* Batasi ukuran minimum */
    color: black;
}

.step img {
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}


/* Warna jelas untuk langkah aktif */
.step.active img {
    opacity: 1;
    filter: brightness(1.2) contrast(1.2);
}

.step.active span {
    font-weight: bold; /* Membuat teks lebih tebal */
    color: black; /* Bisa ubah sesuai desain */
}

/* Form Input */
form {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: black;
}

input, textarea, select {
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
    outline: 2px solid #a4a4a4 !important;
}

/* Hapus outline khusus untuk radio */
input[type="radio"] {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Tanggal lahir dalam satu baris */
.birthdate-group {
    display: flex;
    gap: 10px;
}

/* Tombol Next */
.btn-next {
    background-color: #ff5a00;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
}

.btn-next:hover {
    background-color: #ff8c00;
}

/* Slot Informasi */
.slot-text {
    font-size: 14px;
    color: yellow;
    font-weight: normal;
    margin-left: 10px;
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .image-section, .booking-container {
        width: 100%;
        height: auto;
    }

    .steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step {
        flex: 1 1 40%; /* Agar tetap rata */
        min-width: 100px;
    }

    .booking-container {
        padding: 30px;
    }

    .booking-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        width: 95%;
        margin-top: 10px;
    }

    .image-section {
        width: 100%;
        height: 200px; /* Biar tidak terlalu besar */
    }

    .booking-container {
        width: 100%;
        padding: 20px;
    }

    .booking-container h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        flex: none;
        min-width: unset;
    }

    .birthdate-group {
        flex-direction: column;
    }

    .btn-next {
        padding: 12px;
        font-size: 16px;
    }

    .overlay {
    display: none;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container {
        width: 100%;
        margin-top: 5px;
    }

    .image-section {
        height: 150px;
    }

    .booking-container {
        padding: 15px;
    }

    .booking-container h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .step img {
        width: 35px;
        height: 35px;
    }

    input, textarea, select {
        padding: 8px;
    }

    .btn-next {
        font-size: 14px;
        padding: 10px;
    }
}

/* Container Ringkasan */
.summary-container {
    background-color: white;
    color: #F5821F;
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Ringkasan Pesanan */
.summary-content {
    background-color: white;
    color: black;
    margin: 20px 0;
    text-align: left;
}

table {
    width: 100%;
}

td {
    padding: 10px;
    border-bottom: 1px solid #555;
}

td:first-child {
    font-weight: bold;
}

/* Jenis Pembayaran */
.payment-option {
    display: flex;
    gap: 10px;
}

.payment-option span {
    padding: 5px 10px;
    border-radius: 5px;
    background: white;
    color: black;
}

.payment-option .active {
    background: yellow;
}

/* Tombol */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

/* H2 Heading */
.booking-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

/* DASHBOARD */
/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;  /* Buat sidebar penuh sepanjang layar */
    background: #218c74;
    color: white;
    padding: 20px;
    position: fixed; /* Tetap di posisi kiri */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 60%;
    margin-left: 250px; /* Beri jarak agar tidak tertutup sidebar */
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.logo span {
    color: #F5821F;
}

.menu {
    list-style: none;
}

.menu li {
    margin: 15px 0;
}

.menu a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    width: 70%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.control-panel {
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.control-panel:hover {
    background: #218838;
}

/* Content Section */
.content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
}

/* Booking Details */
.booking-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.info, .user-info {
    flex: 1;
}

p {
    margin-bottom: 10px;
}

.status {
    font-weight: bold;
}

.status.new {
    color: red;
}

.sub-status {
    font-size: 14px;
    color: gray;
}

/* Actions */
.actions {
    margin-top: 20px;
}

.validate {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.validate:hover {
    background: #218838;
}

.back {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.back:hover {
    background: #c82333;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}

button {
    margin-top: 10px;
    padding: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 600px;
    text-align: center;
}


header {
    display: flex;
    justify-content: space-between; /* Pisahkan teks dan tombol */
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.add-trip {
    background: #45a049;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.add-trip:hover {
    background: #45a049;
}

.edit-trip {
    width: 70px;
    height: 35px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

.edit-trip:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Menambahkan bayangan saat hover */
}

.delete-trip:hover {
    background-color: red;
}


/* SUMMARY STYLE / RINGKASAN PEMESANAN CSS */
/* RESPONSIVE */
@media (max-width: 768px) {
    .steps {
      flex-direction: column;
      align-items: stretch;
    }
  
    .buttons {
      flex-direction: column;
    }
  
    .step {
      flex-direction: row;
      justify-content: flex-start;
      gap: 1rem;
    }
  
    .step img {
      max-width: 40px;
    }
  }
  
  @media (max-width: 480px) {
    .summary-container {
      padding: 1rem;
    }
  
    .summary-content td {
      display: block;
      width: 100%;
      border-bottom: none;
      padding: 0.5rem 0;
    }
  
    .summary-content tr {
      border-bottom: 1px solid #ccc;
      display: block;
      margin-bottom: 1rem;
    }
  
    .payment-option {
      flex-direction: column;
    }
  
    .payment-option button {
      width: 100%;
    }
  
    .btn-next {
      width: 100%;
    }
  }

  .alert-danger {
    color: red;
}