* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url(../img/bg-full.jpg) no-repeat center center fixed;
    background-color: rgba(0, 0, 0, 0);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #869aff, #473efd); */
    font-size: 14px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Kotak utama */
.form-box, .box {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 10px;
    text-align: center;
    max-width: 840px;
    width: 100%;
}

/* Heading */
h2, h3 {
    margin-bottom: 15px;
    text-align: center;
}

p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Label dan Input */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

/* Tombol */
button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

button:hover {
    background: #218838;
}

.delete {
    background: #d9534f;
}

.delete:hover {
    background: #c9302c;
}

/* List Box */
.list-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
}

/* Tabel */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #888;
}

th, td {
    padding: 12px;
    color: rgb(0, 0, 0);
    text-align: left;
}

th {
    background: #a0aeff;
}

/* MODAL (Popup untuk Tambah Nomor) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #bfe5ff;
    padding: 20px;
    width: 350px;
    margin: 10% auto;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .form-box, .box {
        padding: 20px;
        max-width: 95%;
        min-height: auto;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }

    table, th, td {
        font-size: 13px;
        padding: 8px;
    }

    button {
        padding: 8px 12px;
        font-size: 13px;
    }

    input {
        padding: 8px;
        font-size: 13px;
    }

    h2, h3 {
        font-size: 18px;
    }

    .container {
        flex-direction: column;
    }
}
/* Style untuk layar loading */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.776);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

