/* Reset beberapa elemen dasar */
body, h1, h2, form, input, select, table, th, td, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Konsisten menggunakan 'Montserrat' */
}

/* Gaya dasar untuk body */
body {
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('static/wordcloud.png'), linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    text-align: center;
}

/* Gaya untuk kontainer utama */
.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Ubah dari 400px menjadi 600px untuk memberi lebih banyak ruang */
    width: 100%;
    margin: 20px auto;
    text-align: center; /* Membuat semua konten di dalam container rata tengah */
}

/* Gaya untuk form-container */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Gaya untuk judul */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Gaya untuk form */
form {
    display: flex;
    flex-direction: column;
}

/* Gaya untuk input dan select */
input[type="text"], input[type="password"], select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    width: 95%;
}

/* Gaya untuk tabel */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* Gaya untuk tombol submit dan button */
input[type="submit"], button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 95%;
    text-align: center;
}

input[type="submit"]:hover, button:hover {
    background-color: #00f2fe;
    opacity: 0.9;
}

/* Gaya untuk link */
a {
    color: #00f2fe;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* Gaya untuk tombol */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #4facfe; /* Warna tombol */
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #00f2fe; /* Warna tombol saat hover */
}

.button:active {
    background-color: #0077b6; /* Warna tombol saat diklik */
}

/* Gaya untuk tombol edit yang menandakan warning */
.warning {
    color: red;
}

.edit-button {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.edit-button:hover {
    background-color: #FF8C00;
}

/* Gaya untuk tombol tahun */
.year-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.year-buttons form {
    margin: 0;
}

.year-buttons button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    flex-grow: 1;
    max-width: 150px;
}

.year-buttons button:hover {
    background-color: #45a049;
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    input[type="text"], input[type="password"], select {
        font-size: 14px;
        padding: 8px;
    }

    input[type="submit"], button {
        font-size: 14px;
        padding: 10px;
    }
}
