/* style.css untuk app4 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}
.topbar {
    background: #2c5cf7;
    color: #fff;
    padding: 16px 24px;
}
.back-link {
    color: #dbe4ff;
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
.topbar h1 { margin-top: 6px; font-size: 20px; }

.tabs {
    background: #fff;
    display: flex;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid #e2e5ec;
    overflow-x: auto;
}
.tab-link {
    display: inline-block;
    padding: 14px 18px;
    text-decoration: none;
    color: #667;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.tab-link:hover {
    color: #2c5cf7;
}
.tab-link.active {
    color: #2c5cf7;
    border-bottom-color: #2c5cf7;
}

.placeholder-box {
    background: #fff;
    padding: 40px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    color: #888;
}
.placeholder-box code {
    display: inline-block;
    margin-top: 8px;
    background: #eef1fb;
    color: #2c5cf7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.content {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px 40px;
}

.info-text {
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.info-text code {
    background: #eef1fb;
    color: #2c5cf7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.form-box {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

textarea,
input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d9e2;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
textarea:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #2c5cf7;
}

small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}
.radio-option input {
    cursor: pointer;
}

button#btnCek {
    margin-top: 8px;
    padding: 12px 24px;
    background: #2c5cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
button#btnCek:hover { background: #1a3fc4; }
button#btnCek:disabled {
    background: #9aa8e0;
    cursor: not-allowed;
}

.result-title {
    margin-bottom: 12px;
    font-size: 18px;
}

.table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.result-table th,
.result-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
    white-space: nowrap;
}
.result-table th {
    background: #f8f9fc;
    font-weight: 600;
}
.result-table td:nth-child(3),
.result-table td:nth-child(5) {
    white-space: normal;
    min-width: 200px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-berhasil {
    background: #e5f6e8;
    color: #1e8449;
}
.badge-tidak-ditemukan {
    background: #fdf3e2;
    color: #b9770e;
}
.badge-error {
    background: #fdecea;
    color: #c0392b;
}
.badge-gagal {
    background: #fdecea;
    color: #c0392b;
}
/* Update / Tambahan untuk Dukungan Dropdown pada .tabs */
.tabs {
    background: #fff;
    display: flex;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid #e2e5ec;
    overflow-x: visible; /* Diubah dari auto ke visible agar dropdown tidak terpotong */
}

/* Wrapper Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Menggunakan dasar gaya .tab-link milikmu */
.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    text-decoration: none;
    color: #667;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s ease, border-color .15s ease;
}
.tab-link:hover {
    color: #2c5cf7;
}
.tab-link.active {
    color: #2c5cf7;
    border-bottom-color: #2c5cf7;
}

/* Arrow indicator */
.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Isi Dropdown */
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 230px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    border: 1px solid #e2e5ec;
    border-top: none;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* Menu di dalam Dropdown */
.dropdown-item {
    display: block;
    padding: 12px 18px;
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover {
    background-color: #eef1fb;
    color: #2c5cf7;
}
.dropdown-item.active {
    background-color: #eef1fb;
    color: #2c5cf7;
    font-weight: 700;
}