/* Mengimpor Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap');

/* Reset margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Kontainer login */
.login-container {
    background-color: #fff;
    padding: 40px;
    width: 90%; /* Lebar kontainer 90% untuk perangkat kecil */
    max-width: 400px; /* Maksimal lebar 400px */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Styling logo */
.logo img {
    width: 100px;
    margin-bottom: 20px;
}

/* Styling judul */
.login-container h1 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

/* Styling grup input */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #adadad;
    outline: none;
    background: transparent;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #adadad;
    pointer-events: none;
    transition: 0.5s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0;
    color: #5c7cfa;
    font-size: 12px;
}

/* Styling tombol */
.login-container button {
    width: 100%;
    padding: 15px;
    background-color: #5c7cfa;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #3b5bdb;
}

/* Styling pesan error */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 20px;
}


.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background-color: #fff; /* Warna latar belakang kotak login */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333; /* Warna teks judul */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #000; /* Warna border saat fokus */
    outline: none; /* Menghilangkan outline */
}

button {
    background-color: #000; /* Warna tombol */
    color: white; /* Warna teks tombol */
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #0056b3; /* Warna tombol saat hover */
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

/* Media Queries untuk Responsif */
@media (max-width: 600px) {
    .login-container {
        padding: 20px; /* Mengurangi padding pada perangkat kecil */
    }
    
    .login-container h1 {
        font-size: 20px; /* Mengurangi ukuran font pada perangkat kecil */
    }
    
    .login-container button {
        font-size: 16px; /* Mengurangi ukuran font tombol pada perangkat kecil */
    }
}
/* Mengimpor Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap');

/* Reset margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4; /* Warna latar belakang untuk halaman utama */
}

/* Kontainer utama */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 50px;
}

/* Styling untuk halaman login */
body.login {
    background-color: #000; /* Latar belakang hitam untuk halaman login */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Kontainer login */
.login-container {
    background-color: #fff;
    padding: 40px;
    width: 90%; /* Lebar kontainer 90% untuk perangkat kecil */
    max-width: 400px; /* Maksimal lebar 400px */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Styling logo */
.logo img {
    width: 100px;
    margin-bottom: 20px;
}

/* Styling judul */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Styling grup input */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #adadad;
    outline: none;
    background: transparent;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #adadad;
    pointer-events: none;
    transition: 0.5s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0;
    color: #5c7cfa;
    font-size: 12px;
}

/* Tombol */
.btn, .btn-edit, .btn-delete {
    display: inline-block;
    background-color: #5c7cfa;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s;
}

.btn:hover, .btn-edit:hover, .btn-delete:hover {
    background-color: #3b5bdb;
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
}

.header .button-group button {
    background-color: #000; /* Warna tombol */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.header .button-group button:hover {
    background-color: #0056b3; /* Warna tombol saat hover */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.table th {
    background-color: #f2f2f2;
}

.table-header {
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1; /* Warna latar belakang saat hover pada row */
}

/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start; /* Rata kiri untuk header pada mobile */
    }

    .header h1 {
        font-size: 20px; /* Ukuran font lebih kecil di mobile */
    }

    table {
        font-size: 14px; /* Ukuran font tabel lebih kecil di mobile */
    }

    th, td {
        padding: 8px; /* Padding lebih kecil di mobile */
    }
