/* ---------------------- */
/* UNI GREEN NATURE THEME */
/* ---------------------- */

:root {
  --primary-color: #2d5016;
  --secondary-color: #8B4513;
  --accent-red: #8B0000;
  --accent-gold: #DAA520;
  --background-dark: #1a1a1a;
  --background-light: #f4f1e8;
  --text-dark: #f1f1f1;
  --text-light: #fff;
  --text-muted: #ccc;
  --border-color: #444;
  --shadow-color: rgba(255, 255, 255, 0.1);
  --forest-green: #2d5016;
  --earth-brown: #8B4513;
}

/* ---------------------- */
/* RESET & BODY */
/* ---------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  background-color: var(--background-light);
  color: #222;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}



/* ---------------------- */
/* FALLING LEAVES */
/* ---------------------- */
.falling-leaves {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
pointer-events: none;
z-index: 9999;
}
.leaf {
position: absolute;
font-size: 20px;
opacity: 0.7;
animation: fall linear infinite;
}
.leaf:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.leaf:nth-child(2) { left: 30%; animation-duration: 10s; animation-delay: 2s; }
.leaf:nth-child(3) { left: 50%; animation-duration: 12s; animation-delay: 4s; }
.leaf:nth-child(4) { left: 70%; animation-duration: 9s; animation-delay: 6s; }
.leaf:nth-child(5) { left: 90%; animation-duration: 11s; animation-delay: 1s; }

@keyframes fall {
0% { transform: translateY(-100px) rotateZ(0deg); opacity: 0; }
10%, 90% { opacity: 0.7; }
100% { transform: translateY(calc(100vh + 100px)) rotateZ(360deg); opacity: 0; }
}

/* ---------------------- */
/* HEADER */
/* ---------------------- */
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 2px 4px var(--shadow-color);
  border-bottom: 3px solid var(--accent-gold);
}
.left-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo-and-name {
  display: flex;
  align-items: center;
}
.website-name {
  font-size: 1rem;
  font-weight: bold;
  margin-right: 20px;
  color: var(--accent-gold);
}
.custom-navbar {
  color: white;
}
.w3-bar-item:hover, .w3-dropdown-content a:hover {
  background-color: #c1771c !important; /* Hover oranye */
  color: white !important;
}

/* Custom gradient background for buttons */
.custom-gradient-bg {
  background-image: linear-gradient(to right, #4CAF50, #8BC34A);
  color: white;
}

/* Hover effect for buttons */
.custom-gradient-bg:hover {
  opacity: 0.9;
}

/* ---------------------- */
/* FOOTER */
/* ---------------------- */
footer {
  padding: 20px 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  border-top: 3px solid var(--accent-gold);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-left, .footer-right {
  flex: 1;
}
.footer-center {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Gaya untuk setiap baris form */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center; /* Meratakan label dan input secara vertikal */
}

/* Gaya untuk label */
.form-label {
    flex: 0 0 150px; /* Lebar tetap untuk label */
    font-weight: bold;
    color: #444;
}

/* Gaya untuk input field */
.form-input {
    flex: 1; /* Input mengisi sisa ruang */
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Efek saat input dihover atau difokuskan */
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(45, 80, 22, 0.2);
}

/* Gaya dasar tombol */
.save-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

/* Efek saat tombol dihover */
.save-button:hover {
    background-color: #3b6620; /* Warna lebih gelap */
    transform: translateY(-2px);
}

/* Tambahkan ini ke w3.css untuk membuat tombol sejajar */
.button-container {
    padding-left: 150px; /* Sesuaikan dengan lebar label */
}