/* khusus homepage */
body.homepage {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* biar navbar, hero, features, footer tersusun */
    min-height: 100vh;      /* minimal setinggi layar, tapi bisa lebih */
    overflow-x: hidden;     /* horizontal jangan bisa scroll */
    overflow-y: auto;       /* aktifkan scroll vertical */
}

/* background blur hanya untuk homepage */
body.homepage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/img/logo.png") no-repeat center center/cover;
  filter: blur(8px);
  z-index: -1;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(29, 53, 87, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Hero section */
.hero {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* biar ga ketutup navbar */
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
}

.hero p {
  font-size: 18px;
  margin-top: 10px;
}

.hero .btn {
  margin-top: 20px;
  background: green;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background: rgba(255, 255, 255, 0);
}

.feature {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.feature h4 {
  font-weight: bold;
  margin-bottom: 10px;
}

main {
  flex: 1;
}

footer {
  text-align: center;
  padding: 15px;
  background: rgba(29, 78, 216, 0.9);
  /* biru transparan */
  color: white;
  width: 100%;
}

/* Footer selalu di bawah */
.footer {
  margin-top: auto;
}

body.login-page {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* background gambar blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/img/logo.png") no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1;
}

.login-container {
    background: #1e3a5f;
    border-radius: 8px;
    width: 500px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.login-header {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.login-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* bisa atur 0.2 - 0.5 sesuai gelapnya */
    z-index: 1;
}

.login-header .overlay-text {
    position: absolute;
    top: 50%; /* tengah vertikal */
    left: 50%; /* tengah horizontal */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.login-header .overlay-text h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.login-header .overlay-text p {
    margin: 5px 0 0;
    font-size: 18px;
}

.login-form {
    padding: 20px;
    background: #0f1c2e;
}

.login-form input {
    width: 95%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    background: #f1f1f1;
    font-size: 14px;
}

.login-form .btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1d3557;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.login-form .btn:hover {
    background: #27496d;
}

.register-text {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: white;
}

.register-text a {
    color: #00c3ff;
    font-weight: bold;
    text-decoration: none;
}

/* ================= REGISTER PAGE ================= */
body.register-page {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* Background blur */
body.register-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/img/logo.png") no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1;
}

.register-container {
    background: #1e3a5f;
    border-radius: 8px;
    width: 420px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.register-header {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.register-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.register-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.register-header .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.register-header .overlay-text h1 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}

.register-header .overlay-text p {
    margin: 5px 0 0;
    font-size: 14px;
}

.register-form {
    padding: 20px;
    background: #0f1c2e;
}

.register-form input {
    width: 95%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    background: #f1f1f1;
    font-size: 14px;
}

.register-form .btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1d3557;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.register-form .btn:hover {
    background: #27496d;
}

.login-text {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: white;
}

.login-text a {
    color: #00c3ff;
    font-weight: bold;
    text-decoration: none;
}

body.dashboard-page {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("../assets/img/logo.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* layar penuh */
}

/* Container utama */
.dashboard-container {
  display: flex;
  flex: 1;
  width: 90%;       /* ambil 90% dari lebar layar */
  max-width: 1400px; /* tetap kasih batas maksimal biar gak terlalu melebar */
  min-height: 600px; /* atau 80vh biar setinggi 80% layar */
  margin: 40px auto;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
}


/* Sidebar kiri */
.sidebar {
  width: 250px;
  background: #1d4ed8; /* biru tua */
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar h3 {
  margin-bottom: 20px;
}

.sidebar .menu-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background: #2563eb; /* biru */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-weight: bold;
}

.sidebar .menu-btn:hover {
  background: #1e40af;
}

/* Konten kanan */
.content {
  flex: 1;
  padding: 20px;
}

.content h2 {
  margin-top: 0;
  color: #1d4ed8;
}

.role-box {
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #2563eb;
  border-radius: 6px;
  background: white;
}

.role-box strong {
  color: #1e40af;
}

.info-clinic {
  margin-bottom: 150px; /* kasih jarak ke footer */
}

/* Booking Page Style */
body {
  background-color: #f8f9fa;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  }

.card {
  border-radius: 15px;
}

/* Kotak tanggal */
.date-box {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.date-box.active {
  background-color: #dc3545;
  color: #fff;
}

.date-box.available {
  background-color: #0d6efd;
  color: #fff;
}

.date-box.disabled {
  background-color: #adb5bd;
  color: #fff;
  cursor: not-allowed;
}

.date-box:hover:not(.disabled) {
  transform: scale(1.05);
}

/* Header biru */
.header {
  background-color: rgba(29, 78, 216, 0.9);
  padding: 20px;
  border-radius: 0 0 20px 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

/* Card pilihan poli */
.card-option {
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  transition: 0.3s;
  border: 2px solid transparent;
}
.card-option:hover {
  transform: scale(1.05);
  border-color: #0d6efd;
}
.card-option.active {
  border-color: #198754;
  background-color: #e9f7ef;
}

/* Tombol pilih */
.btn-choose {
  width: 100%;
  border-radius: 10px;
  font-weight: bold;
}

.date-box {
    position: relative;
    width: 100px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}
.date-box span {
    display: block;
}
.date-box .day {
    font-size: 24px;
    font-weight: bold;
}
.date-box .quota {
    position: absolute;
    top: 5px;
    right: 8px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
}
.date-box.available {
    background: #60a5fa; /* biru muda */
    color: #fff;
}
.date-box.full {
    background: #7c3aed; /* ungu */
    color: #fff;
}
.date-box.holiday {
    background: #ef4444; /* merah */
    color: #fff;
}
.date-box.selected {
    background: #16a34a !important; /* hijau */
    color: #fff;
}

/* hover efek */
.date-box:hover {
    transform: scale(1.05);
}

/* legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .date-box {
        width: 90px;
        height: 90px;
        font-size: 12px;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-left: 20px;
    }
}

.register-form input,
.register-form select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
}

.register-form button,
.btn-lanjutkan {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  font-weight: bold;
  transition: background 0.3s ease;
}

.register-form button {
  background-color: #28a745;
  color: white;
}

.register-form button:hover {
  background-color: #218838;
}

.btn-lanjutkan {
  display: inline-block;
  /* Cukup inline-block karena sudah diatur oleh flex wrapper */
  padding: 12px 30px;
  text-align: center;
  border-radius: 5px;
  background-color: #0d6efd;
  /* Warna biru standar bootstrap */
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-lanjutkan:hover {
  background-color: #138496;
  border-radius: 5px;
  
}

    /* ✅ PERBAIKAN: Style untuk wrapper dan tombol */
.lanjutkan-wrapper {
  display: flex;
  justify-content: center;
      /* Membuat item di dalamnya menjadi di tengah */
  margin-top: 15px;
}

.alert-success {
  padding: 20px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  font-size: 15px;
  margin-bottom: 20px;
}

.alert-danger h5 {
  margin: 0 0 8px 0;
  font-weight: bold;
}

.alert-danger ul {
  margin: 0;
  padding-left: 20px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

main {
  flex: 1;
}

.struk-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 25px;
  border: 2px dashed #333;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.clinic-title {
  font-weight: bold;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.queue-number-text {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 0;
}

.queue-number-value {
  font-size: 50px;
  font-weight: bold;
  color: #198754;
  line-height: 1;
}

.barcode {
  margin: 30px 0;
}

/* Style baru untuk tabel detail */
.struk-table {
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

.struk-table td {
  padding: 4px 0;
  
}

.struk-table td:first-child {
  width: 120px;
  /* Atur lebar kolom label */
  font-weight: bold;
}

.struk-table td:nth-child(2) {
  width: 10px;
  font-weight: bold;
}

 body {
   font-family: sans-serif;
   margin: 0;
   padding: 0;
   background-color: #f4f4f4;
 }

 .email-container {
   max-width: 600px;
   margin: 20px auto;
   background-color: #ffffff;
   border-radius: 8px;
   overflow: hidden;
   border: 1px solid #dddddd;
 }

 .email-header {
   position: relative;
   text-align: center;
   color: white;
 }

 .email-header img {
   width: 100%;
   height: auto;
   display: block;
 }

 .overlay-text {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background-color: rgba(0, 0, 0, 0.5);
   padding: 10px 20px;
   border-radius: 5px;
   width: 80%;
 }

 .overlay-text h1 {
   margin: 0;
   font-size: 24px;
 }

 .email-body {
   padding: 25px;
   text-align: center;
 }

 .email-body h2 {
   color: #333333;
 }

 .patient-id {
   font-size: 28px;
   font-weight: bold;
   color: #198754;
   background-color: #f0f0f0;
   padding: 15px;
   border-radius: 5px;
   margin: 20px 0;
   display: inline-block;
 }

 .email-footer {
   padding: 20px;
   text-align: center;
   font-size: 12px;
   color: #777777;
   background-color: #f9f9f9;
 }

 .alert-success {
   padding: 20px;
   background-color: #d4edda;
   border: 1px solid #c3e6cb;
   color: #155724;
   margin-bottom: 15px;
   border-radius: 5px;
   text-align: center;
 }

 .alert-danger {
   padding: 10px;
   background-color: #f8d7da;
   border-color: #f5c6cb;
   color: #721c24;
   margin-bottom: 15px;
   border-radius: 5px;
 }

 .btn-lanjutkan {
   display: block;
   width: 100%;
   text-align: center;
   padding: 10px;
   margin-top: 12px;
   border-radius: 5px;
   background-color: #007bff;
   color: white;
   font-size: 16px;
   text-decoration: none;
 }

 .btn-lanjutkan:hover {
   background-color: #0056b3;
 }

     body {
       background-color: #f8f9fa;
     }
  
     .card {
       border-radius: 15px;
     }
  
     .card-title {
       font-weight: bold;
     }
  
     /* Booking Info */
     .booking-section {
       background: linear-gradient(180deg, #f5faff, #e3f2fd);
       border-radius: 20px;
       padding: 25px;
     }
  
     .booking-card {
       background: #ffffff;
       border-radius: 20px;
       padding: 25px;
       margin-bottom: 25px;
       box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
       transition: all 0.3s ease;
     }
  
     .booking-card:hover {
       transform: translateY(-3px);
       box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
     }
  
     .booking-card h6 {
       font-weight: 700;
       margin-bottom: 20px;
     }
  
     /* Border Gradient */
     .border-primary {
       border-left: 5px solid;
       border-image: linear-gradient(to bottom, #007bff, #80d0ff) 1;
     }
  
     .border-success {
       border-left: 5px solid;
       border-image: linear-gradient(to bottom, #00c851, #b2f5bb) 1;
     }
  
     /* Step Flow Layout */
     .step-flow {
       display: flex;
       justify-content: center;
       align-items: center;
       flex-wrap: wrap;
       gap: 12px;
     }
  
     .step {
       background: #eaf3ff;
       border-radius: 20px;
       padding: 8px 18px;
       font-size: 14px;
       display: flex;
       align-items: center;
       gap: 8px;
       box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
       transition: 0.3s;
     }
  
     .step span {
       background: #0d6efd;
       color: white;
       border-radius: 50%;
       width: 24px;
       height: 24px;
       display: flex;
       justify-content: center;
       align-items: center;
       font-size: 12px;
     }
  
     .arrow {
       color: #0d6efd;
       font-weight: bold;
     }
  
     /* Responsive Mobile */
     @media (max-width: 768px) {
       .step-flow {
         flex-direction: column;
         align-items: center;
         gap: 10px;
       }
  
       .step {
         width: 100%;
         max-width: 260px;
         justify-content: center;
       }
  
       .arrow {
         display: none;
       }
     }

     