* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-image: url('assets/batik_bg.webp');
    background-repeat: repeat;
    background-color: #f0f0f0; /* Fallback color if image fails to load */
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9); /* Slightly more transparent for background visibility */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #28a745, #218838);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 24px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="number"]:focus,
select:focus {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    background: linear-gradient(90deg, #28a745, #34c759);
    transition: background 0.3s, transform 0.1s;
}

button:hover {
    background: linear-gradient(90deg, #218838, #2eb54a);
    transform: translateY(-1px);
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #28a745;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f1f3f5;
}

tr:hover {
    background: #e9ecef;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    table, th, td {
        font-size: 14px;
    }
}


/* Fix tabel biar bisa scroll horizontal di HP */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

/* Optional: biar tabel lebih nyaman dibaca di HP */
table {
    min-width: 600px; /* paksa tabel lebar, tapi bisa discroll */
    font-size: 14px;
}