/* =========================
   DESIGN SYSTEM
========================= */

:root {
  --primary: #198754;
  --primary-dark: #146c43;
  --accent: #20c997;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --radius: 18px;
}

/* =========================
   GLOBAL
========================= */

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.section-title {
  font-weight: 700;
  font-size: 30px;
  color: var(--primary);
}

.section-subtitle {
  color: #6c757d;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(25, 135, 84, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-link {
  transition: 0.3s;
}

.nav-link:hover {
  color: #d1f7e0 !important;
  transform: translateY(-2px);
}

/* =========================
   HEADER
========================= */


.top-header {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-left {
  flex: 0 0 auto;
}

.header-logo {
  height: 60px;      /* atur tinggi stabil */
  width: auto;
  max-width: 100%;
}

.header-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #495057;
  text-align: right;
}

.header-right span {
  white-space: nowrap;
}

.header-right i {
  color: var(--primary);
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-right {
    justify-content: center;
    text-align: center;
  }
}
/* =========================
   CAROUSEL
========================= */

.carousel-item img {
  height: 450px;
  object-fit: cover;
  filter: brightness(85%);
}

.carousel-caption h2 {
  font-weight: 700;
}

/* =========================
   CARD
========================= */

.card {
  border-radius: var(--radius);
  border: none;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* =========================
   BUTTON
========================= */

.btn-success {
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-success:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================
   FORM
========================= */

.form-control {
  border-radius: 50px;
  padding-left: 20px;
}

.input-group-text {
  border-radius: 50px;
}

/* =========================
   ICON BOX
========================= */

.icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
}

.icon-box:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================
   SOCIAL LINKS
========================= */

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  margin: 0 8px;
  transition: 0.3s ease;
  font-size: 18px;
}

.social-links a:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================
   GALLERY
========================= */

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-card img {
  transition: 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card::after {
  content: "Lihat Foto";
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(25,135,84,0.85);
  color: white;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transition: 0.3s;
}

.gallery-card:hover::after {
  opacity: 1;
}

/* =========================
   LOGIN PAGE
========================= */

.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg,#198754,#20c997);
}

.login-card {
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.login-card .card-body {
  padding: 40px;
}

.login-logo {
  width: 90px;
  margin-bottom: 15px;
}

/* =========================
   TABLE
========================= */

.table {
  border-radius: var(--radius);
  overflow: hidden;
}

.table thead {
  background: var(--primary);
  color: white;
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }
}