/* Variabel Warna */
:root {
  --red: #de685d; /* Soft red for heading, buttons, tabs */
  --yellow: #ffe379;
  --white: #ffffff;
  --black: #333333;
  --cream-soft: #fff5e4;
  --coksu-soft: #f8ead8;
  --radius: 18px;
  --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Global Reset & Body */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  font-family: "Poppins", system-ui, Arial, sans-serif;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--cream-soft) 40%,
    var(--coksu-soft) 100%
  );
  color: var(--black);
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* Container utama */
.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
  animation: fadeIn 0.6s ease;
}

/* ✍️ Heading */
.h1 {
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  color: var(--red);
  margin: 10px 0 18px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 💳 Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 22px;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* 🧭 Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 18px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 900;
  color: var(--red);
  font-size: 22px;
  letter-spacing: 0.5px;
}
.badge {
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(185, 55, 44, 0.25);
}

/* ✨ Tabs Navigation */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
  justify-content: center;
}
.tab {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  border: 2px solid var(--red);
  cursor: pointer;
  font-weight: 700;
  color: var(--red);
  transition: all 0.25s ease;
}
.tab:hover {
  background: var(--yellow);
  color: var(--black);
}
.tab.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(185, 55, 44, 0.25);
}

/* 📝 Label & Input */
.label {
  font-weight: 700;
  margin: 10px 0 6px;
  display: block;
}
.input,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  transition: box-shadow 0.2s ease;
}
.input:focus,
.select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--yellow);
}
.select {
  appearance: none;
}

/* 💥 Buttons */
.btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 📐 Grid & Flex Layouts */
.row {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}
.row.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* 📊 Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  background: var(--red);
  color: #fff;
  padding: 10px;
  text-align: left;
}
.table td {
  border-bottom: 1px solid #eee;
  padding: 10px;
}
.table tr:hover td {
  background: #fff8e8;
}

/* ✨ Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 50;
}
.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.modal .box {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 92%;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  animation: fadeInUp 0.4s ease;
}
.modal .title {
  font-weight: 900;
  color: var(--red);
  margin: 6px 0;
}
.modal .msg {
  color: #444;
  margin: 8px 0 16px;
}

/* 🌀 Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Untuk halaman login saja */
body.login-page .container {
  margin-top: 15vh;
}

/* 🌟 Custom Alert Box */
.alert-box {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.alert-box.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.alert-content {
  background: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease;
}
.alert-content p {
  color: var(--black);
  font-size: 15px;
  margin-bottom: 14px;
}
.alert-content button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.alert-content button:hover {
  background: #a93c30;
}

.remember-me {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.remember-me label {
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
}

/* 🌿 Card Cabang (UNR & RSD) */
.card.cabang {
  background: var(--cream-soft); /* warna pastel solid */
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card.cabang:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* 🌿 Card Cabang Berwarna - align kiri */
.card.cabang-colored {
  background: var(--cream-soft); /* atau var(--coksu-soft) */
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 22px;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left; /* ✨ ini yang bikin align kiri */
}

.card.cabang-colored:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
