/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body */
body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    background: white;
    padding: 15px 30px;
    border-bottom: 3px solid rgb(0, 134, 20);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);

}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-header {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: rgb(0, 134, 20);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    display: inline-block; /* penting supaya transform bekerja */
}

.nav-link:hover {
    color: rgb(156, 156, 156);
    transform: translateY(-4px);
    text-decoration: underline;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 80px; /* Sesuaikan ukuran */
    height: 80px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    padding-left: 10px;
    border-left: 2px solid rgb(0, 134, 20); /* Garis vertikal */
    padding-inline: 10px;
    font-family: 'Impact', fantasy;
    font-style: italic;
    color: rgb(0, 134, 20);
    letter-spacing: 2px;
}

/* Konten utama */
.main-content {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.info-item {
    width: 250px;
    border: 1px solid #ddd;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-gambar {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Form Login & Regis */
.kotak-login {
    background: linear-gradient(to bottom, rgb(0, 134, 20), rgba(43, 255, 0, 0.463));
    padding: 30px;
    max-width: 400px;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
}

.form-button-login {
    background-color: white;
    color: rgb(0, 134, 20);
    border: 2px solid rgb(0, 134, 20);
}

.form-button-login:hover {
    background-color: #f9f9f9;
}


.form-login {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 134, 20);
    border: 1px solid white;
}

.daftar-link {
    text-align: center;
    margin-top: 15px;
}

.daftar-link a {
    color: rgb(0, 134, 20);
    text-decoration: none;
    font-weight: bold;
}

.daftar-link a:hover {
    text-decoration: underline;
    color: rgb(0, 134, 20);
    font-weight: bold;
}

/*====profil=====*/
.profil {
    display: flex;
    align-items: center;
    margin-left: auto; 
}

.profil-img-link {
    display: inline-block; 
}

/* Menyesuaikan posisi gambar ke atas */
.profil-img {
    width: 40px;  
    height: 40px; 
    border-radius: 50%;
    margin-top: -40px; 
    vertical-align: middle; 
}

/*========================*/
.toggle-password {
    margin-top: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    color: rgb(0, 134, 20);
    text-align: right;
}

/* Dashboard content */
.dashboard-content {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.dashboard-content h2 {
    color: rgb(0, 134, 20);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #dcdcdc;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #555;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-header {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .main-content {
        padding: 20px 10px;
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        width: 90%;
    }

    .form-container {
        width: 90%;
    }

    .dashboard-content {
        width: 90%;
    }
}
/*===================*/

.informasi-konten {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}
/*======================*/

.form-informasi {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: bold;
    display: block;
}

.form-input, .form-select, .form-textarea, .form-file {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-button {
    padding: 10px 20px;
    background-color: rgb(0, 134, 20);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.form-button:hover {
    background-color: rgb(0, 86, 13);
}

.informasi-list {
    margin-top: 40px;
    width: 80%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.informasi-item {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fff;
}

.informasi-judul {
    margin-top: 0;
}

.informasi-actions {
    margin-top: 10px;
}

.action-button {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
}

.action-button.edit {
    background-color: #ffc107;
    color: black;
}

.action-button.delete {
    background-color: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .form-informasi {
        padding: 15px;
    }
}

/*=======index=======*/
.info-home-judul {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.info-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.informasi-item,
.info-home-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.informasi-item:hover,
.info-home-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.628);
}


.info-home-title {
    margin-top: 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.info-home-deskripsi {
    margin-bottom: 10px;
    text-align: justify;
}

.info-home-konten {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    object-fit: cover;
    border-radius: 4px;
}

.info-home-teks {
    text-align: justify;
}
/*========profil==========*/
.profil-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.profil-container img {
    display: block;
    margin: 0 auto 20px;
}
.profil-container p {
    font-size: 16px;
    margin: 8px 0;
}

@keyframes swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* Elemen pembungkus hanya mengayun */
.logo-dashboard-wrapper {
    display: flex;
    justify-content: center;
    animation: swing 2.5s ease-in-out infinite;
}

/* Gambar bisa membesar halus saat hover */
.logo-dashboard {
    max-width: 150px;
    height: auto;
    transition: transform 0.4s ease; /* halus saat membesar */
}

/* Saat hover: hanya gambar yg membesar */
.logo-dashboard:hover {
    transform: scale(1.2);
}
