:root {
    /* Palet Warna Hijau Lembut */
    --hijau-terang: #e6f4ea;
    --hijau-medium: #a8d5ba;
    --hijau-sedang: #4a7c59;
    --hijau-gelap: #375a4a;
    --putih: #ffffff;
    --abu-abu: #333333;
}

body {
    font-family: 'Tahoma', 'Calibri';
    font-size: 14px;
    background: linear-gradient(to right, var(--hijau-terang), var(--putih));
    color: var(--abu-abu);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h2 {
    text-align: center;
    margin-bottom: 13px;
    font-size: 18px;
    color: var(--hijau-gelap);
}

form {
    background: var(--putih);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 350px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--hijau-gelap);
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--hijau-medium);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f0f9f4;
    color: var(--abu-abu);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 13px;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--hijau-sedang);
    outline: none;
    box-shadow: 0 0 5px rgba(128, 185, 156, 0.4);
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--hijau-sedang);
    border: none;
    border-radius: 4px;
    color: var(--putih);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px;
}

input[type="submit"]:hover {
    background: var(--hijau-gelap);
    transform: translateY(-1px);
}

a {
    color: var(--hijau-sedang);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--hijau-gelap);
}

/* Gaya untuk tabel */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 13px;
}

table th, table td {
    padding: 10px;
    border: 1px solid var(--hijau-medium);
    text-align: left;
    color: var(--abu-abu);
}

table th {
    background-color: var(--hijau-sedang);
    color: var(--putih);
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: var(--hijau-terang);
}

table tr:hover {
    background-color: var(--hijau-medium);
}

/* Gaya untuk tombol di tabel */
.button-edit,
.button-delete {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: var(--putih);
    font-size: 12px;
}

.button-edit {
    background-color: var(--hijau-sedang);
}

.button-edit:hover {
    background-color: var(--hijau-gelap);
}

.button-delete {
    background-color: #d9534f;
}

.button-delete:hover {
    background-color: #c9302c;
}

.logo {
    width: 60px;
    height: auto;
    margin-bottom: 5px;
    border-radius: 50%;
    border: 2px solid var(--putih);
}

/* Responsivitas */
@media (max-width: 768px) {
    form {
        padding: 15px;
        max-width: 90%;
    }

    table th, table td {
        font-size: 12px;
        padding: 6px;
    }
}
