/* === GLOBAL === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

.container {
    max-width: 960px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

h2 {
    text-align: center;
    color: #2f5f66;
    margin-bottom: 30px;
}

/* === LOGO === */
.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo-container img {
    max-width: 220px;
    height: auto;
}

/* === TOMBOL KEMBALI === */
.btn-back {
    background-color: #2f5f66;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background-color: #1c3d42;
}

/* === TOMBOL KEMBALI KHUSUS DESKTOP === */
.btn-back.btn-desktop {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

/* === TOMBOL KEMBALI KHUSUS MOBILE === */
.btn-back.btn-mobile {
    display: none;
    text-align: center;
    margin: 10px auto 20px auto;
    width: fit-content;
    font-size: 16px;
    padding: 12px 20px;
}

/* === FORM FILTER === */
.input-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #2f5f66;
}

.form-group input,
.sub-group input {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.full-width {
    grid-column: span 4;
    margin-top: 10px;
}

/* === FILTER GRUP TANGGAL === */
.grouped-label {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    margin-top: 20px; 
}

.label-group {
    flex: 1;
}

.main-label {
    display: block;
    font-weight: bold;
    color: #2f5f66;
    margin-bottom: 6px;
    font-size: 14px;
}

.sub-row {
    display: flex;
    gap: 20px;
}

.sub-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sub-label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

/* === TOMBOL CARI === */
.btn-submit {
    padding: 10px 16px;
    background-color: #2f5f66;
    color: white;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

/* === TABEL === */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #2f5f66;
    color: white;
}

/* === TEXT CENTER === */
.center-text {
    text-align: center;
    font-size: 15px;
    color: #333;
    padding: 20px 0;
}

/* === RESPONSIVE UNTUK MOBILE <768px === */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .input-form {
        gap: 16px;
    }

    .form-group label,
    .main-label,
    .sub-label {
        font-size: 16px;
    }

    .form-group input,
    .sub-group input {
        font-size: 18px;
        padding: 14px;
    }

    .btn-submit {
        font-size: 18px;
        padding: 14px;
    }

    /* Sembunyikan tombol desktop */
    .btn-back.btn-desktop {
        display: none;
    }

    /* Tampilkan tombol mobile */
    .btn-back.btn-mobile {
        display: block;
    }

    .grouped-label {
        flex-direction: column;
    }

    .sub-row {
        flex-direction: column;
        gap: 10px;
    }

    .table-container {
        overflow-x: hidden;
    }

    table {
        font-size: 14px;
    }

    thead {
        display: none;
    }

    tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    td {
        display: block;
        text-align: left;
        padding: 12px;
        border: none;
        border-bottom: 1px solid #eee;
        word-break: break-word;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #2f5f66;
        margin-bottom: 5px;
    }
}
