/* Main Container */
.informasi-section {
    position: relative;
    padding-bottom: 4rem;
    background-color: #fff;
    min-height: 100vh;
}

/* Filter Card */
.filter-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d1d5db;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.btn-filter,
.btn-reset {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-filter {
    background-color: #111827;
    color: #fff;
    border: none;
}

.btn-filter:hover {
    background-color: #1f2937;
    color: #fff;
    transform: translateY(-1px);
}

.btn-reset {
    background-color: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-reset:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Modern Table */
.table-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.custom-table thead th {
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.custom-table tbody tr {
    transition: all 0.2s;
}

.custom-table tbody tr:hover {
    background-color: #f9fafb;
}

.custom-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.95rem;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-badge.bg-primary {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}


/* Pagination */
.pagination-wrapper {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #fff;
}

/* =========================================
   Custom Manual Dropdown
   ========================================= */

.position-relative {
    position: relative !important;
}

/* Dropdown list styling */
.dropdown-options {
    display: none;
    /* Initially hidden */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Match parent width */
    max-height: 250px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    margin-top: 4px;
}

.dropdown-item-kelinfo {
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
}

.dropdown-item-kelinfo:last-child {
    border-bottom: none;
}

.dropdown-item-kelinfo:hover {
    background-color: #111827 !important;
    color: #fff !important;
    padding-left: 1.5rem !important;
    /* Slide effect */
    border-left: 3px solid #111827 !important;
    /* Left accent line */
}

/* Scrollbar styling for the dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Custom Action Button similar to Daftar Permohonan */
.btn-action {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background-color: #111827;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-item-kelinfo {
        color: #4b5563 !important;
    }

    .filter-card {
        padding: 1.25rem;
    }

    .table-card {
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table,
    .custom-table tbody,
    .custom-table tr,
    .custom-table td {
        display: block;
        width: 100%;
    }

    .custom-table tr {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1.25rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .custom-table td {
        padding: 0.5rem 0;
        text-align: left;
        border: none;
    }

    .custom-table td:first-child {
        display: none;
        /* Hide No */
    }

    .custom-table td:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f3f4f6;
        display: flex;
        justify-content: flex-end;
    }
}