/* ================================
   🎨 DATATABLES THEME - BLUE CORPORATE STYLE
   ================================ */

.dataTables_wrapper {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.08);
}

/* === Table === */
table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.925rem;
    color: #333;
}

table.dataTable thead th {
    background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 10px;
    border: none;
}

table.dataTable tbody td {
    padding: 10px;
    border-color: #e9ecef;
    vertical-align: middle;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #f8faff;
}

table.dataTable tbody tr:hover {
    background-color: #e9f2ff !important;
    transition: background-color 0.25s ease-in-out;
}

/* === Search and Length Controls === */
.dataTables_length label,
.dataTables_filter label {
    font-weight: 500;
    color: #495057;
}

.dataTables_length select {
    border-radius: 6px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    width: 180px;
    transition: all 0.2s;
}

.dataTables_filter input:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

/* === Pagination === */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
    text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    margin: 0 2px;
    color: #0d6efd !important;
    background-color: #eaf1ff;
    font-weight: 500;
    transition: 0.2s ease-in-out;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* === Info Text === */
.dataTables_info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {

    .dataTables_length,
    .dataTables_filter {
        float: none !important;
        text-align: left !important;
        margin-bottom: 10px;
    }
}


/* Modern Table */
.table-modern thead th {
    background: #e8f0fe !important;
    /* Biru muda */
    color: #1e3a8a !important;
    /* Biru gelap */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border: none !important;
    padding: 12px 14px;
}

.table-modern tbody tr {
    transition: background 0.15s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc !important;
    /* Soft light hover */
}

.table-modern td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #374151;
    border-color: #f1f5f9;
}

/* Card shadow improvement */
.card {
    border-radius: 12px !important;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 12px 12px 0 0 !important;
}

/* ====== SIDEBAR MEDICAL BLUE THEME ====== */

#sidebar .sidebar-header {
    color: #dbe9ff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-top: 20px;
    padding: 10px 20px 5px;
    opacity: .85;
}

/* Sidebar link base */
#sidebar .sidebar-item a.sidebar-link {
    color: #e8f0ff !important;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
}

/* Hover Effect */
#sidebar .sidebar-item a.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

/* Feather Icon styling */
#sidebar .sidebar-item i[data-feather] {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    margin-right: 10px;
    color: #cfe2ff;
}
