/* style.css - Tema Hijau-Putih Premium, Modern & Fully Responsive */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-dark: #123e25;
  --primary: #2d8a4b;
  --primary-light: #52b775;
  --accent: #7ed957;
  --bg-gradient: linear-gradient(135deg, #f0f7f2 0%, #ffffff 100%);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 40px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.header .brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.header .lead {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.9;
}

/* Containers & Cards */
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Section */
.hero {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.hero .left {
  flex: 1;
}

.hero .left h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero .left p {
  color: var(--text-muted);
  margin: 12px 0 24px;
  font-size: 16px;
}

.hero .right {
  flex-shrink: 0;
}

.hero .right img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

.hero .right img:hover {
  transform: scale(1.03) rotate(1deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(45, 138, 75, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(45, 138, 75, 0.3);
  opacity: 0.95;
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(45, 138, 75, 0.1);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

input[type="text"], 
input[type="date"], 
input[type="number"], 
input[type="file"], 
input[type="password"], 
select, 
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--white);
  font-size: 15px;
  transition: var(--transition);
  color: var(--text-dark);
}

input:focus, 
select:focus, 
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(45, 138, 75, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Tables and Admin Layout */
.table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  padding: 14px 16px;
  font-size: 14px;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: rgba(45, 138, 75, 0.03);
}

/* Badges / Status Labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-on {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-off {
  background-color: #fee2e2;
  color: #991b1b;
}

.result-yes {
  color: #166534;
  background-color: #d1fae5;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
}

.result-no {
  color: #991b1b;
  background-color: #fee2e2;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
}

.notice {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px;
  margin: 15px 0;
  font-size: 14px;
}

.notice.warning {
  background: #fffbeb;
  border-left-color: #d97706;
  color: #92400e;
}

/* Lists */
ol, ul {
  padding-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .hero .right {
    order: -1;
    margin-bottom: 10px;
  }
  
  .hero .right img {
    max-width: 180px;
  }
  
  .hero .left h1 {
    font-size: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }

  .card {
    padding: 20px;
  }
}
