/* Smart TablePress Frontend Styles */
.stp-table-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stp-table-top-bar {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.stp-table-search-bar {
    display: flex;
    align-items: center;
}

.stp-search-input {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    width: 240px;
    transition: all 0.2s ease;
}

.stp-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.stp-reset-filters-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stp-reset-filters-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.stp-table-responsive {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.stp-frontend-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 14px;
    text-align: left;
}

.stp-frontend-table th, .stp-frontend-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.stp-frontend-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
}

.stp-frontend-table th.stp-sortable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.stp-frontend-table th.stp-sortable:hover {
    background: #f1f5f9;
}

.stp-th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stp-sort-icon {
    font-size: 12px;
    color: #94a3b8;
}

/* Column Filter Styles */
.stp-filter-row th {
    background: #f1f5f9;
    padding: 8px 10px;
    border-top: 1px solid #e2e8f0;
}

.stp-filter-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stp-col-op {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.stp-col-input {
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.stp-col-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.stp-zebra tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.stp-frontend-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Pagination */
.stp-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.stp-page-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stp-page-buttons button {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.stp-page-buttons button:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.stp-page-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stp-current-page {
    font-weight: bold;
    color: #2563eb;
    padding: 0 4px;
}
