/* ==========================================================================
   TABLES & DATATABLE COMPONENTS STYLE (Premium Pink Theme - SAKIP JEMBER)
   ========================================================================== */

/* 1. TABLE CONTAINER & WRAPPER */
.table-container {
    background: var(--card-color);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #dcdde1;
    margin-bottom: 30px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-color);
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.table-scroll-container {
    min-width: 100%;
    width: max-content;
}

/* 2. STUNTING / SAKIP GENERAL TABLE */
.stunting-table {
    width: 100%;
    border-collapse: collapse;
}

.stunting-table thead {
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.stunting-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    background-color: var(--light-color);
    font-size: 14px;
}

.stunting-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-color);
    white-space: normal;
    line-height: 1.5;
    font-size: 14px;
}

.stunting-table tbody tr {
    transition: var(--transition);
}

.stunting-table tbody tr:hover {
    background-color: var(--light-color);
}

.stunting-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border-color);
}

/* 3. TABLE ACTION BUTTONS */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background-color: rgba(255, 193, 7, 0.08);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-edit:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.25);
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-delete:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
}

/* 4. TABLE PAGINATION CONTROLS */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.entries-info {
    color: var(--text-muted);
    font-size: 14px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 5px;
    border-radius: 10px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--light-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.page-item.active .page-link,
.page-link.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    z-index: 3;
}

.page-item.disabled .page-link,
.page-link.disabled {
    color: #6c757d !important;
    pointer-events: none !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    opacity: 0.5;
}

.page-link i {
    font-size: 12px;
}
