/* Modern Data Table Styles */
.pct-table-wrapper {
    font-family: 'Jost';
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border: 1px solid #e1e8ed;
}

/* Controls Header */
.pct-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pct-limit label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.pct-per-page {
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 6px 10px;
    color: #2d3748;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.pct-per-page:hover {
    border-color: #a0aec0;
}

.pct-search label {
    font-size: 0;
    /* Hide text label, use placeholder */
}

.pct-search-input {
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    padding: 8px 15px;
    width: 250px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 35px !important;
}

.pct-search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* Table Container */
.pct-table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #2d3748;
}

.pct-table th {
    background: #f7fafc;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.pct-table th:hover {
    background: #edf2f7;
    color: #2b6cb0;
}

.pct-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

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

.pct-table tbody tr:hover {
    background-color: #ebf8ff;
}

/* Filter Icon */
.pct-filter-icon {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}

.pct-filter-icon:hover,
.pct-filter-popover {
    color: #4299e1;
}

/* Sort Icons */
.pct-table th.asc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #4a5568;
    margin-left: 5px;
    vertical-align: middle;
}

.pct-table th.desc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #4a5568;
    margin-left: 5px;
    vertical-align: middle;
}

/* Pagination Footer */
.pct-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    color: #718096;
    font-size: 14px;
}

.pct-info {
    font-weight: 500;
}

.pct-pagination {
    display: flex;
    gap: 5px;
}

.pct-pagination button {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.pct-pagination button:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.pct-pagination button.active {
    background: #4299e1;
    color: #fff;
    border-color: #4299e1;
}

.pct-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
}

/* Popover Modernization */
.pct-filter-popover {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    min-width: 260px;
    max-width: 300px;
}

.pct-filter-search input {
    margin-bottom: 10px;
    border-radius: 4px;
}

.pct-filter-list {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto !important;
    padding: 8px;
    background: #fcfcfc;
}

.pct-filter-list label {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.pct-filter-list input[type="checkbox"] {
    margin-right: 8px;
}

.pct-filter-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.pct-filter-actions button {
    flex: 1;
    padding: 6px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.pct-filter-actions button.apply {
    background: #4299e1;
    color: #fff;
}

.pct-filter-actions button.apply:hover {
    background: #3182ce;
}

.pct-filter-actions button.clear {
    background: #e2e8f0;
    color: #4a5568;
}

.pct-filter-actions button.clear:hover {
    background: #cbd5e0;
}