@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

/* ===== RESET & GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #fff, #ffeaea);
  color: #000;
}

/* ===== HEADER ===== */
header {
  background-color: #c0392b;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  z-index: 10;
}

.logo-image img {
  width: 100px;
  height: 50px;
}

.logo {
  font-weight: bold;
  font-size: 24px;
}

.logo span {
  color: white;
}

/* ===== NAVIGATION ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li {
  position: relative;
  display: inline-block;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  display: block;
  white-space: nowrap;
}

nav ul li a:hover {
  color: #ffb3b3;
}

.nav-user-info {
    color: white;
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
    padding: 5px 0;
}

.nav-logout-btn {
    background-color: #e74c3c;
    color: white !important;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-logout-btn:hover {
    background-color: #c0392b;
}

#admin-dashboard-nav-link a {
    background-color: #27ae60;
    padding: 8px 15px;
    border-radius: 5px;
}

#admin-dashboard-nav-link a:hover {
    background-color: #229a53;
}

#nav-donor-link.hidden {
    display: none;
}


/* --- Dropdown Styles for Navbar --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 5px;
    top: calc(100% + 15px);
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95em;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #e0e0e0;
    color: #c0392b;
}

.dropdown-content.show {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 50px;
}

.hero-text {
  max-width: 50%;
}

.greeting {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.4;
}

.highlight {
  color: #c0392b;
}

.description {
  font-size: 16px;
  margin-bottom: 25px;
  font-weight: 600;
}

.buttons {
  display: flex;
  gap: 20px;
}

.register {
  background-color: #c0392b;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8mm;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.register:hover {
  background-color: #a93226;
}

.login {
  background-color: white;
  color: #000;
  padding: 12px 25px;
  border: 1.5px solid #000;
  border-radius: 8mm;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.login:hover {
  background-color: #000;
  color: white;
}

/* ===== ABOUT US PAGE ===== */
.about-container {
  max-width: 1000px;
  margin: 80px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-container h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #c0392b;
  margin-bottom: 20px;
}

.about-container p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  color: #333;
}

@media (max-width: 768px) {
  .about-container {
    padding: 20px;
    margin: 40px 20px;
  }

  .about-container h1 {
    font-size: 28px;
  }

  .about-container p {
    font-size: 16px;
  }
}

/* ===== DONOR SECTION =====*/
.donor-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #c0392b;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.hospital-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.hospital-card {
  background: #fff;
  border-left: 5px solid #c0392b;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.hospital-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.hospital-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
  color: #2c3e50;
}

.hospital-card .address {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== STOK DARAH BAR (untuk donor.html & detail-rumahsakit.html) ===== */
.stok-title {
  font-weight: bold;
  color: #e63946;
  font-size: 1.1em;
  margin-bottom: 12px;
}

.blood-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blood-type {
  width: 30px;
  font-weight: bold;
  color: #000;
}

.bar {
  flex: 1;
  height: 14px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background-color: #e63946;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.blood-count {
  width: 80px;
  font-weight: bold;
  color: #000;
  text-align: right;
}

/* ===== BUTTON LANJUT ===== */
.hospital-card .register {
  display: inline-block;
  margin-top: 20px;
  background-color: #c0392b;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8mm;
  transition: background-color 0.3s ease;
}

.hospital-card .register:hover {
  background-color: #a93226;
}

/* ===== ANIMASI MASUK ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== DETAIL RUMAH SAKIT (ini adalah gaya untuk elemen di detail-rumahsakit.html) ===== */
.detail-container {
    max-width: 600px;
    margin: 80px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .detail-container h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 30px;
  }

  .detail-container p {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
  }

  .detail-container p b {
    font-weight: 700;
  }

  .stok-section {
    margin-top: 30px;
  }

  .stok-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 20px;
  }

  .stok-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
  }

  .stok-label {
    width: 30px;
  }

  .progress-container {
    flex: 1;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
    margin: 0 10px;
  }

  .progress-bar {
    height: 100%;
    background-color: #e74c3c;
    transition: width 0.5s ease-in-out;
  }

  .stok-count {
    min-width: 60px;
    text-align: right;
  }

  .detail-container .register {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background-color: #c0392b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8mm;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .detail-container .register:hover {
    background-color: #922b21;
  }

/* /// AMBIL DARAH /// */
.ambil-darah-container {
    max-width: 600px;
    margin: 80px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 16mm;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .ambil-darah-container h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 30px;
  }

  .ambil-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .ambil-form label {
    font-weight: 600;
    color: #333;
  }

  .ambil-form input,
  .ambil-form select,
  .ambil-form textarea {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8mm;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 44px; /* Tinggi minimal untuk input dan select */
  }

.ambil-form textarea {
    resize: vertical;
    min-height: 80px; /* Minimal 3 baris */
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Stylings khusus untuk input type="date" agar terlihat seragam */
.ambil-form input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    padding-right: 15px;
    cursor: pointer;
    z-index: auto;
    position: relative;
    overflow: visible;
}

.ambil-form input[type="date"]::-webkit-calendar-picker-indicator {
    background: none;
    color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

/* Untuk Firefox */
.ambil-form input[type="date"]::-moz-calendar-picker-indicator {
    background: none;
    cursor: pointer;
    z-index: 1;
}


  .ambil-form input:focus,
  .ambil-form select:focus,
  .ambil-form textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
    outline: none;
  }

  .ambil-form button[type="submit"] {
    background-color: #27ae60;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8mm;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    font-size: 18px;
  }

  .ambil-form button[type="submit"]:hover {
    background-color: #229a53;
    transform: translateY(-2px);
  }

/* /// KONFIRMASI AMBIL /// */
.confirmation-container {
    max-width: 800px;
    margin: 80px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .confirmation-container h1 {
    color: #c0392b;
    font-size: 32px;
    margin-bottom: 30px;
  }

  .info {
    text-align: left;
    margin-bottom: 30px;
  }

  .qr-section {
    margin: 30px 0;
  }

  .gmaps-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #c0392b;
    color: white;
    border-radius: 8mm;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
  }

  .gmaps-btn:hover {
    background-color: #a93226;
  }

  .home-button {
    margin-top: 20px;
  }

  .home-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #555;
    color: white;
    border-radius: 8mm;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
  }

  .home-btn:hover {
    background-color: #333;
  }

  /* ===== LOGIN & REGISTER FORM ===== */
.auth-container {
  max-width: 500px;
  margin: 100px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #c0392b;
  margin-bottom: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form label {
  font-weight: 600;
  color: #333;
}

.auth-form input {
  padding: 12px 16px;
  font-size: 16px;
  border: 1.5px solid #ccc;
  border-radius: 8mm;
  transition: border-color 0.3s ease;
}

.auth-form input:focus {
  border-color: #c0392b;
  outline: none;
}

.auth-form button {
  background-color: #c0392b;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8mm;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-form button:hover {
  background-color: #a93226;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ===================================== */
/* ===== AUTHENTICATION FORMS (Login & Register) - WARNA PUTIH ===== */
/* ===================================== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 20px;
}


.auth-container {
    background-color: #ffffff;
    border-radius: 12mm;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.auth-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c0392b;
    border-radius: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8mm;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
    outline: none;
}

.auth-button {
    background-color: #c0392b;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8mm;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 15px;
}

.auth-button:hover {
    background-color: #a93226;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #777;
}

.auth-footer a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsiveness untuk layar kecil */
@media (max-width: 480px) {
    .auth-container {
        padding: 25px;
        margin: 20px;
    }
    .auth-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .auth-form input,
    .auth-button {
        padding: 10px 15px;
        font-size: 16px;
    }
}

/* ===================================== */
/* ===== TOMBOL KEMBALI ===== */
/* ===================================== */

.back-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8mm;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #333;
}

/* ===== POPUP KRITERIA ===== */
.popup-overlay {
    display: flex; /* Menggunakan flexbox untuk centering */
    justify-content: center;
    align-items: center;
    position: fixed; /* Menjadikan pop-up tetap di viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay gelap */
    z-index: 1000; /* Pastikan di atas elemen lain */
    backdrop-filter: blur(5px); /* Efek blur pada latar belakang */
    -webkit-backdrop-filter: blur(5px); /* Dukungan Safari */
}

.popup-content {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    text-align: left;
    transform: scale(0.95); /* Sedikit efek masuk */
    animation: popupFadeIn 0.3s ease-out forwards;
    position: relative; /* Untuk positioning tombol tutup jika ada */
}

.popup-content h2 {
    color: #c0392b;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.popup-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.popup-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.popup-content ul li {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.popup-content ul li::before {
    content: '✓'; /* Tanda centang */
    color: #27ae60; /* Warna hijau */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.popup-buttons button {
    padding: 12px 25px;
    border-radius: 8mm;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none; /* Hilangkan border default */
}

/* Tombol setuju */
.popup-buttons .register { /* Menggunakan kelas register yang sudah ada */
    background-color: #c0392b;
    color: white;
}

.popup-buttons .register:hover {
    background-color: #a93226;
    transform: translateY(-2px);
}

/* Tombol tidak setuju */
.popup-buttons .login { /* Menggunakan kelas login yang sudah ada */
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.popup-buttons .login:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #333;
    transform: translateY(-2px);
}

/* Animasi untuk pop-up */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gaya untuk bagian formulir pendonor */
.pendonor-main-container {
    padding: 60px 20px;
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

.pendonor-main-container h1 {
    font-size: 32px;
    color: #c0392b;
    font-weight: 800;
    margin-bottom: 10px;
}

.pendonor-main-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.ambil-darah-container { /* Kelas yang digunakan untuk formulir */
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 40px; /* Jarak dari teks di atasnya */
    text-align: left; /* Sesuaikan teks di dalam form */
}

.ambil-darah-container h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 30px;
}

.ambil-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Jarak antar elemen form */
}

.ambil-form label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 5px;
    display: block; /* Agar label di atas input */
}

.ambil-form input,
.ambil-form select,
.ambil-form textarea {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8mm;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Lebar penuh */
    min-height: 44px; /* Tinggi minimal untuk input dan select */
}

.ambil-form textarea {
    resize: vertical;
    min-height: 80px; /* Minimal 3 baris */
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Stylings khusus untuk input type="date" agar terlihat seragam */
.ambil-form input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    padding-right: 15px;
    cursor: pointer;
    z-index: auto;
    position: relative;
    overflow: visible;
}

.ambil-form input[type="date"]::-webkit-calendar-picker-indicator {
    background: none;
    color: transparent; /* Sembunyikan ikon bawaan jika ingin pakai custom */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

/* Untuk Firefox */
.ambil-form input[type="date"]::-moz-calendar-picker-indicator {
    background: none;
    cursor: pointer;
    z-index: 1;
}


.ambil-form input:focus,
.ambil-form select:focus,
.ambil-form textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
    outline: none;
}

.ambil-form button[type="submit"] {
    background-color: #27ae60;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8mm;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    font-size: 18px;
}

.ambil-form button[type="submit"]:hover {
    background-color: #229a53;
    transform: translateY(-2px);
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .popup-content {
        padding: 25px;
    }

    .popup-content h2 {
        font-size: 22px;
    }

    .popup-content p, .popup-content ul li {
        font-size: 14px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .popup-buttons button {
        width: 100%;
        font-size: 15px;
    }

    .ambil-darah-container {
        padding: 25px;
        margin: 40px 20px;
    }

    .ambil-darah-container h2 {
        font-size: 24px;
    }

    .ambil-form input,
    .ambil-form select,
    .ambil-form textarea,
    .ambil-form button[type="submit"] {
        font-size: 15px;
        padding: 10px 12px;
    }
}

.ambil-form label .info-text {
    font-weight: 400;
    font-size: 0.9em;
    color: #777;
    margin-left: 8px;
}

/* Styling khusus untuk dashboard admin */
.admin-dashboard-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.admin-dashboard-container h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 30px;
}
.admin-dashboard-container section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fdfdfd;
}
.admin-dashboard-container section h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 10px;
    font-size: 24px;
}
.admin-dashboard-container form {
    margin-bottom: 20px;
}
.admin-dashboard-container form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
.admin-dashboard-container form input[type="text"],
.admin-dashboard-container form input[type="number"],
.admin-dashboard-container form select,
.admin-dashboard-container form input[type="date"], /* Tambah ini untuk form admin */
.admin-dashboard-container form textarea /* Tambah ini untuk form admin */
{
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 44px; /* Tinggi minimal untuk input dan select di form admin */
}
/* Pastikan textarea admin form juga punya tinggi minimal */
.admin-dashboard-container form textarea {
    min-height: 80px;
    resize: vertical;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Untuk input type="date" di form admin juga */
.admin-dashboard-container form input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    padding-right: 15px;
    cursor: pointer;
    z-index: auto;
    position: relative;
    overflow: visible;
}
.admin-dashboard-container form input[type="date"]::-webkit-calendar-picker-indicator {
    background: none;
    color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}
.admin-dashboard-container form input[type="date"]::-moz-calendar-picker-indicator {
    background: none;
    cursor: pointer;
    z-index: 1;
}

.admin-dashboard-container button {
    background-color: #c0392b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
.admin-dashboard-container button:hover {
    background-color: #a93226;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}
.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #333;
}
.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.admin-table tr:hover {
    background-color: #f1f1f1;
}
.admin-table .action-buttons button {
    padding: 5px 10px;
    font-size: 0.85em;
    margin-bottom: 5px;
    display: inline-block;
}
.admin-table .action-buttons button.delete {
    background-color: #e74c3c;
}
.admin-table .action-buttons button.delete:hover {
    background-color: #c0392b;
}

/* Tambahan styling untuk stok darah */
.blood-stock-table {
    margin-top: 15px;
    font-size: 0.9em;
}
.blood-stock-table th, .blood-stock-table td {
    padding: 5px;
}
.stock-form {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.stock-form label {
    margin-bottom: 0;
    flex-basis: auto;
}
.stock-form select, .stock-form input[type="number"] {
    flex-grow: 1;
    max-width: 150px;
    margin-right: 0;
}
.stock-form button {
    margin-left: auto;
}
.loading-message-dashboard, .no-records-message, .error-message {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #555;
}
.error-message {
    color: red;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .popup-content {
        padding: 25px;
    }

    .popup-content h2 {
        font-size: 22px;
    }

    .popup-content p, .popup-content ul li {
        font-size: 14px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .popup-buttons button {
        width: 100%;
        font-size: 15px;
    }

    .ambil-darah-container {
        padding: 25px;
        margin: 40px 20px;
    }

    .ambil-darah-container h2 {
        font-size: 24px;
    }

    .ambil-form input,
    .ambil-form select,
    .ambil-form textarea,
    .ambil-form button[type="submit"] {
        font-size: 15px;
        padding: 10px 12px;
    }
    /* Responsive untuk form di admin dashboard */
    .admin-dashboard-container form input[type="text"],
    .admin-dashboard-container form input[type="number"],
    .admin-dashboard-container form select,
    .admin-dashboard-container form input[type="date"],
    .admin-dashboard-container form textarea {
        width: 100%;
    }
}

/* Admin Dashboard Table Responsive Specifics */
@media (max-width: 768px) {
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
        display: block;
    }

    .admin-table thead {
        float: left;
    }

    .admin-table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }

    .admin-table th, .admin-table td {
        white-space: normal;
        text-align: left;
        padding: 8px 10px;
    }

    .admin-table th {
        border-bottom: 0;
        font-size: 0.9em;
        text-align: left;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 10px;
        display: inline-block;
        vertical-align: top;
        border: 1px solid #ddd;
    }

    .admin-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .admin-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }
    .admin-table thead {
        display: none;
    }
    .admin-table td.action-buttons {
        text-align: center;
        padding-left: 10px;
    }
    .admin-table td.action-buttons::before {
        display: none;
    }
}

/* ===== CONTACT US PAGE ===== */
.contact-container {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-container h1 {
  font-size: 36px;
  font-weight: 800;
  color: #c0392b;
  margin-bottom: 20px;
}

.contact-container p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.info-item {
  flex: 1;
  min-width: 250px;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.info-item h3 {
  color: #2c3e50;
  font-size: 22px;
  margin-bottom: 15px;
}

.info-item p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 5px;
}

.info-item a {
  color: #c0392b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #a93226;
  text-decoration: underline;
}

.info-item .small-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* Responsive untuk halaman Kontak */
@media (max-width: 768px) {
  .contact-container {
    padding: 20px;
    margin: 40px 20px;
  }

  .contact-container h1 {
    font-size: 28px;
  }

  .contact-container p {
    font-size: 16px;
  }

  .contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .info-item {
    min-width: unset;
    width: 100%;
    padding: 20px;
  }

  .info-item h3 {
    font-size: 20px;
  }

  .info-item p {
    font-size: 15px;
  }
}


/* ===== PERBAIKAN TABEL ADMIN YANG BERANTAKAN ===== */

/* Membatasi lebar kolom panjang agar tidak melebar/tinggi */
.admin-table td:nth-child(9),  /* Kolom Email */
.admin-table td:nth-child(10), /* Kolom Alamat */
.admin-table td:nth-child(12)  /* Kolom Rumah Sakit */
{
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Membuat semua kolom dapat membungkus teks panjang */
.admin-table td {
  white-space: normal;
  word-break: break-word;
  font-size: 0.85em; /* Ukuran teks sedikit lebih kecil */
  line-height: 1.3em; /* Lebih hemat ruang */
}
