/* Umum */
body {
    font-family: 'Arial', sans-serif;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
   max-width: 900px;
    margin: 50px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


/* Header */
header {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9); /* Background color with slight transparency */
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header img {
    max-width: 150px;
}

header h2 {
    color: #333;
    margin-top: 10px;
}

/* Tombol Admin */
.admin-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.admin-button:hover {
    background-color: #45a049;
}

/* Tombol logout */
.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FF0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logout-button:hover {
    background-color: #FF0000;
}


/* Formulir */
form {
    margin-top: 20px;
}

form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

form input:focus, form select:focus {
    border-color: #4CAF50;
}

form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    border-radius: 5px;
}

form button:hover {
    background-color: #45a049;
}

/* Tabel (Halaman Admin) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

td a {
    color: #4CAF50;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* Responsif */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 20px auto;
        padding: 10px;
    }

    form label, form input, form select, form button {
        font-size: 14px;
    }

    table th, table td {
        padding: 10px;
    }
}
/* Notifikasi */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification p {
    margin: 0;
}

.notification button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.notification button:hover {
    background-color: #45a049;
}

.pagination-container {
    text-align: right;
    margin-top: 20px;
}

.pagination {
    display: inline-block;
}

.btn-nav {
    margin: 0 5px;
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 4px;
    font-size: 14px;
}

.btn-nav.active {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-nav:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
