/* General styling */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Pastikan tinggi minimum adalah 100% dari viewport */
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-image: url('../images/1.jfif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Header styling */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #ffcc00;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.title {
    flex-grow: 1; /* Membuat title mengambil ruang yang tersisa */
    text-align: center;
}

.title h1 {
    font-size: 30px;
    color: #007b5e;
    font-weight: bold;
}


.logo img {
    height: 60px;
    width: auto;
    border-radius: 5px;
}


/* Navigation styling */
nav ul {
    display: flex;
    justify-content: center;
    background-color: #007b5e;
    padding: 10px;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none; /* Awalnya disembunyikan, muncul hanya di layar kecil */
}

/* Sidebar untuk perangkat kecil */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 123, 94, 0.9); /* Warna hijau dengan transparansi */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: none; /* Awalnya sembunyikan sidebar di layar besar */
}


.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #ffcc00;
    color: black;
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}


/* Container styling */
.container {
    
    width: 400px; /* Sesuaikan jika dibutuhkan */
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
/* Heading styling */
h2 {
    text-align: center;
    color: #007b5e;
    margin-bottom: 20px; /* Jarak bawah untuk heading */
}

/* Label styling */
label {
    font-weight: bold;
    color: #333;
}

/* Input styling */
select, input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px; /* Ukuran font untuk input */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Transisi saat fokus */
}

select:focus, input:focus, textarea:focus {
    border-color: #007b5e; /* Warna border saat fokus */
    box-shadow: 0 0 5px rgba(0, 123, 94, 0.5); /* Efek bayangan saat fokus */
}

/* Button styling */
button {
    width: 100%;
    padding: 10px;
    background-color: #007b5e;
    border: none;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transisi saat hover */
}

button:hover {
    background-color: #005f4f;
    transform: translateY(-2px); /* Efek sedikit mengangkat saat hover */
}
/* Styling footer */
footer {
    background-color: #007b5e;
    color: white;
    text-align: left;
    padding: 10px 0;
    width: 100%;
}
footer p {
    font-size: 14px;
    margin: 0;
}

/* Notifikasi Styling */
.notification {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Awalnya tidak terlihat */
    text-align: center;
}

/* Notifikasi styling */
.notification {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Awalnya tidak terlihat */
    text-align: center;
}

.notification.success {
    background-color: rgba(212, 237, 218, 0.8);
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; /* Ditampilkan ketika ada pesan sukses */
}

.notification.error {
    background-color: rgba(248, 215, 218, 0.8);
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block; /* Ditampilkan ketika ada pesan error */
}

@media (min-width: 769px) {
    .title {
        text-align: center; /* Geser ke kiri pada layar besar */
        margin-right: 200px; /* Beri margin hanya di layar besar */
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Mengubah lebar container menjadi 90% untuk layar kecil */
        margin: 50px auto; /* Mengurangi margin atas */
        padding: 20px; /* Mengurangi padding */
        box-shadow: none; /* Menghilangkan bayangan untuk tampilan yang lebih sederhana */
        
    }

        .navbar {
            display: none; /* Navbar hilang di perangkat kecil */
        }
        .sidebar {
            display: block; /* Sidebar muncul di layar kecil */
            width: 0; /* Sidebar tertutup pada awalnya */
        }
        
        .logo img {
            height: 30px; /* Mengatur tinggi logo untuk perangkat kecil */
            width: auto; /* Membiarkan lebar otomatis untuk mempertahankan proporsi */
        }
    
        .title {
            flex-grow: 1; /* Membuat title mengambil ruang yang tersisa */
            text-align: center;
        }
        
        .title h1 {
            font-size: 18px; /* Mengurangi ukuran font judul di layar kecil */
            color: #007b5e;
            font-weight: bold;
        }
        
        .menu-toggle {
            display: block; /* Tombol menu muncul di perangkat kecil */
        }

    h2 {
        font-size: 20px; /* Ukuran font lebih kecil untuk judul */
        color: #007b5e; /* Warna judul */
        margin-bottom: 20px; /* Jarak bawah untuk judul */
        text-align: center; /* Pusatkan judul */
    }

    select, input, textarea {
        font-size: 14px; /* Ukuran font lebih kecil untuk input */
    }

    button {
        font-size: 14px; /* Ukuran font lebih kecil untuk tombol */
    }

    footer {
        background-color: #007b5e; /* Warna footer */
        color: white; /* Warna teks footer */
        text-align: left; /* Rata kiri untuk teks footer */
        padding: 10px 0; /* Padding atas dan bawah untuk footer */
        width: 100%; /* Lebar footer 100% */
        margin-top: auto; /* Mengisi ruang kosong di atas footer */
    }
    
    footer p {
        font-size: 14px; /* Ukuran font untuk teks footer */
        margin: 0; /* Menghilangkan margin untuk footer */
        text-align: center; /* Pusatkan teks footer */
    }
}


