/* Palet Warna Utama Sengkuclean yang Diterapkan */
:root {
  --color-navy: #1a438a;
  --color-medium-blue: #3a98ff;
  --color-logout: #f44336;
  --color-user-type: #4caf50;
  --color-background: #f5f7fa;
  --color-text-default: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-background);
  min-height: 100vh;
}

.header {
  background: #ffffff;
  color: #333;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-nav .nav-link {
  color: var(--color-navy);
}

.btn-logout {
  background: var(--color-logout);
  color: white !important;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo img {
  height: 45px;
}

.header-logo h2 {
  font-size: 20px;
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
  background: #d32f2f;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 40px;
}

.welcome-section {
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-medium-blue) 100%
  );
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.welcome-section h1 {
  color: #f5f7fa;
  font-size: 32px;
  margin-bottom: 15px;
}

.welcome-section p {
  color: #f5f7fa;
  font-size: 15px;
  margin-bottom: 8px;
}

.user-type {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-user-type) 0%, #45a049 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border-left: 4px solid var(--color-user-type);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
}

.recent-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.recent-section h2 {
  color: var(--color-navy);
  font-size: 24px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--color-background);
}

th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text-default);
}

tbody tr:hover {
  background: #f9f9f9;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e3f2fd;
  color: var(--color-medium-blue);
}

.progress-section {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.progress-section h2 {
  color: var(--color-navy);
  font-size: 26px;
  margin-bottom: 25px;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.progress-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: all 0.3s;
}

.progress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
}

.order-code {
  font-family: "Courier New", monospace;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
}

.progress-bar-container {
  height: 12px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-navy);
  border-radius: 6px;
  transition: width 1s ease;
}

.progress-percentage {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-navy);
  margin: 10px 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: white;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.step.active {
  background: var(--color-navy);
  transform: scale(1.1);
}

.progress-status div:first-child {
  font-weight: 600;
  font-size: 17px;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.progress-status small {
  color: #777;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}

.testimonial-section {
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-left: none !important;
}

.testimonial-title {
  text-align: center;
  color: var(--color-navy);
  font-size: 28px;
  margin-bottom: 25px;
}

.testimonial-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  resize: vertical;
}

.testi-btn {
  padding: 14px;
  background: var(--color-navy);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  transition: 0.3s;
}

.testi-btn:hover {
  background: #0f3166;
}

.star-rating {
  display: inline-flex !important;
  width: auto !important;
  max-width: fit-content !important;
  flex: 0 0 auto !important;
  gap: 14px;
  font-size: 40px;
  cursor: pointer;
  color: #ccc;
  margin-bottom: 10px;
}

.star-rating .star.active {
  color: #ffd700 !important;
}

.star-rating .star:hover {
  color: #856404;
}

/* === WRAPPER FORM === */
#wa-form {
  /* width: 100%;
  max-width: 650px;  */
  margin: 40px auto;
  padding: 25px 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* === INPUT & TEXTAREA === */
#wa-form input,
#wa-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dcdcdc;
  border-radius: 12px;
  font-size: 15px;
  background: #fafafa;
  transition: all 0.25s ease;
}

#wa-form input:focus,
#wa-form textarea:focus {
  border-color: #1d4c9d; /* biru navy seperti tombol Kirim Testimoni */
  box-shadow: 0 0 6px rgba(29, 76, 157, 0.25);
  background: #fff;
  outline: none;
}

/* === WHATSAPP BUTTON === */
.wa-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25d366; /* warna WhatsApp */
  border: none;
  cursor: pointer;
  margin: 10px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.wa-button:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

.wa-button img {
  width: 32px;
  height: 32px;
}

/* === LOADING TEXT === */
#loading {
  text-align: center;
  font-size: 16px;
  color: #1d4c9d;
}

.info-box {
  background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #ffc107;
}

.info-box h3 {
  color: #856404;
  font-size: 18px;
  margin-bottom: 15px;
}

.info-box p {
  color: #856404;
  margin-bottom: 8px;
  font-size: 14px;
}

.note {
  font-style: italic;
  font-size: 13px;
  margin-top: 10px;
  color: #856404;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 25px 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .progress-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .header-logo {
    width: 100%;
    justify-content: center;
  }

  .header-logo h2 {
    font-size: 18px;
  }

  .header-logo img {
    height: 35px;
  }

  .header-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  .btn-logout {
    padding: 8px 20px;
    font-size: 14px;
  }

  .container {
    padding: 20px 15px;
  }

  .welcome-section {
    padding: 20px;
  }

  .welcome-section h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .welcome-section p {
    font-size: 14px;
  }

  .user-type {
    font-size: 12px;
    padding: 6px 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .recent-section {
    padding: 20px 15px;
  }

  .recent-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  /* Tabel responsif - scroll horizontal */
  .recent-section > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 13px;
    min-width: 600px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 12px;
  }

  th {
    font-size: 11px;
  }

  .status-badge {
    padding: 4px 10px;
    font-size: 11px;
  }

  .progress-section {
    padding: 20px 15px;
    margin: 30px 0;
  }

  .progress-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .progress-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .progress-card {
    padding: 20px;
  }

  .progress-header {
    font-size: 16px;
    flex-direction: column;
    gap: 8px;
  }

  .order-code {
    align-self: flex-start;
  }

  .progress-steps {
    margin: 15px 0;
  }

  .step {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .progress-percentage {
    font-size: 16px;
  }

  .testimonial-section {
    padding: 20px 15px;
  }

  .testimonial-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .star-rating {
    font-size: 35px;
    gap: 10px;
  }

  .testimonial-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .testi-btn {
    font-size: 15px;
    padding: 12px;
  }

  .contact-form {
    padding: 20px 15px;
    margin-top: 30px;
  }

  .contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px 14px;
  }

  .info-box {
    padding: 15px;
  }

  .info-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .info-box p {
    font-size: 13px;
  }

  .note {
    font-size: 12px;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  .header-logo h2 {
    font-size: 16px;
  }

  .header-logo img {
    height: 30px;
  }

  .header-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .btn-logout {
    padding: 6px 15px;
    font-size: 13px;
  }

  .container {
    padding: 15px 10px;
  }

  .welcome-section {
    padding: 15px;
    border-radius: 12px;
  }

  .welcome-section h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .welcome-section p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .user-type {
    font-size: 11px;
    padding: 5px 12px;
  }

  .stat-card {
    padding: 15px;
    border-radius: 12px;
  }

  .stat-card h3 {
    font-size: 12px;
  }

  .stat-number {
    font-size: 24px;
  }

  .recent-section {
    padding: 15px 10px;
    border-radius: 12px;
  }

  .recent-section h2 {
    font-size: 18px;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .progress-section {
    padding: 15px 10px;
    border-radius: 12px;
  }

  .progress-section h2 {
    font-size: 18px;
  }

  .progress-card {
    padding: 15px;
    border-radius: 12px;
  }

  .progress-header {
    font-size: 14px;
  }

  .order-code {
    font-size: 11px;
    padding: 3px 8px;
  }

  .step {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .progress-percentage {
    font-size: 14px;
  }

  .progress-status small {
    font-size: 12px;
  }

  .testimonial-section {
    padding: 15px 10px;
    border-radius: 12px;
  }

  .testimonial-title {
    font-size: 20px;
  }

  .star-rating {
    font-size: 30px;
    gap: 8px;
  }

  .testimonial-form textarea {
    font-size: 13px;
  }

  .testi-btn {
    font-size: 14px;
  }

  .contact-form {
    padding: 15px 10px;
    border-radius: 15px;
  }

  .contact-form h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
    padding: 10px 12px;
  }

  .wa-button img {
    width: 30px;
    height: 30px;
  }

  .info-box {
    padding: 12px;
    border-radius: 12px;
  }

  .info-box h3 {
    font-size: 15px;
  }

  .info-box p {
    font-size: 12px;
  }

  .note {
    font-size: 11px;
  }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
  .welcome-section h1 {
    font-size: 18px;
  }

  .stat-number {
    font-size: 20px;
  }

  .progress-steps {
    gap: 5px;
  }

  .step {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .star-rating {
    font-size: 28px;
    gap: 6px;
  }
}

/* Landscape Mode untuk Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .header {
    padding: 10px 15px;
  }

  .container {
    padding: 15px;
  }

  .welcome-section {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
