/**
 * Portal Connector Plugin Styles
 */

/* Common Container Styling */
.cpd-portal-container,
.cpd-history-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Headings */
.cpd-portal-container h2,
.cpd-history-container h2 {
    text-align: left;
    font-size: 32px;
    color: #000000;
    background-color: #ededed;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
}

.cpd-portal-container h3,
.cpd-history-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 24px;
    font-weight: bold;
}

.cpd-portal-container h4,
.cpd-history-container h4 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-size: 18px;
}

/* Table Styling */
.cpd-portal-table,
.cpd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
}

.cpd-portal-table th,
.cpd-table th {
    background-color: var(--brand-accent, #f0b800);
    color: black;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.cpd-portal-table th:first-child,
.cpd-table th:first-child {
    border-radius: 12px 0 0 0;
}

.cpd-portal-table th:last-child,
.cpd-table th:last-child {
    border-radius: 0 12px 0 0;
}

.cpd-portal-table tr,
.cpd-table tr {
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.cpd-portal-table tr:hover,
.cpd-table tr:hover {
    background-color: #f9f9f9;
}

.cpd-portal-table td,
.cpd-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Button Styling */
.cpd-portal-button,
.cpd-button {
    background: var(--brand-accent, #f0b800);
    color: black;
    font-size: 16px;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
}

.cpd-portal-button:hover,
.cpd-button:hover {
    background: var(--brand-accent, #dfb758);
    text-decoration: none;
    color: black;
}

/* Filter Section */
.cpd-portal-filter-section,
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.cpd-portal-search,
.search-box {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid var(--brand-accent, #f0b800);
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
}

.cpd-portal-search:focus,
.search-box:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 5px rgba(240, 184, 0, 0.5);
}

.filter-dropdown {
    padding: 10px;
    border: 2px solid var(--brand-accent, #f0b800);
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #ffa500;
}

/* Pagination */
.cpd-portal-pagination,
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cpd-portal-pagination button,
.pagination-button {
    background: var(--brand-accent, #f0b800);
    color: black;
    font-size: 16px;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.cpd-portal-pagination button:hover,
.pagination-button:hover {
    background: var(--brand-accent, #dfb758);
}

.cpd-portal-pagination button.active,
.pagination-button.active {
    background: #ffa500;
    color: white;
}

.cpd-portal-pagination button:disabled,
.pagination-button:disabled {
    background: #eaeaea;
    color: #999;
    cursor: not-allowed;
}

.cpd-portal-pagination .page-info {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

/* CPD Summary */
.cpd-summary {
    display: flex;
    flex-wrap: wrap