/* ==========================================================================
   Custom Table Styles
   ========================================================================== */

/* Default Table Style */
.wp-table,
.custom-table {
    width: 100%;
    margin: 0 0 2rem 0;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.wp-table thead,
.custom-table thead {
    background-color: #25416b;
    color: #fff;
}

.wp-table thead th,
.custom-table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #223c64;
}

.wp-table tbody tr,
.custom-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.wp-table tbody tr:hover,
.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.wp-table tbody tr:last-child,
.custom-table tbody tr:last-child {
    border-bottom: none;
}

.wp-table tbody td,
.custom-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: top;
}

.wp-table tbody tr:nth-child(even),
.custom-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.wp-table tbody tr:nth-child(even):hover,
.custom-table tbody tr:nth-child(even):hover {
    background-color: #e9ecef;
}

/* Bordered Table */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered thead th,
.table-bordered tbody td {
    border: 1px solid #dee2e6;
}

/* Borderless Table */
.table-borderless tbody tr {
    border-bottom: none;
}

.table-borderless tbody tr:nth-child(even) {
    background-color: transparent;
}

/* Compact Table */
.table-compact thead th,
.table-compact tbody td {
    padding: 0.5rem 0.75rem;
}

/* Center Aligned Table */
.table-center thead th,
.table-center tbody td {
    text-align: center;
}

/* Success Table Variant */
.table-success thead {
    background-color: #198754;
    color: #fff;
}

.table-success thead th {
    border-bottom-color: #146c43;
}

/* Dark Table Variant */
.table-dark {
    background-color: #212529;
    color: #fff;
}

.table-dark thead {
    background-color: #000;
}

.table-dark tbody tr {
    border-bottom-color: #495057;
}

.table-dark tbody tr:nth-child(even) {
    background-color: #2c3034;
}

.table-dark tbody tr:hover {
    background-color: #373b3f;
}

/* Responsive Table Wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
}

/* Responsive Table */
@media (max-width: 768px) {
    .wp-table,
    .custom-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .wp-table thead th,
    .wp-table tbody td,
    .custom-table thead th,
    .custom-table tbody td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}
