/* Term Limit Pledge Directory Styles */

.tlp-directory-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters */
.tlp-directory-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tlp-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.tlp-filter-group {
    flex: 1;
    min-width: 150px;
}

.tlp-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.tlp-filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.tlp-filter-submit {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tlp-filter-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.tlp-filter-btn:hover {
    background: #2c5282;
}

.tlp-clear-filters {
    color: #666;
    font-size: 14px;
}

/* Stats */
.tlp-directory-stats {
    background: #e8f4f8;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #1a365d;
}

.tlp-directory-stats p {
    margin: 0;
    font-size: 16px;
}

/* Table */
.tlp-pledge-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.tlp-pledge-table thead {
    background: #1a365d;
    color: #fff;
}

.tlp-pledge-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.tlp-pledge-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tlp-pledge-table tbody tr:hover {
    background: #f9f9f9;
}

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

.tlp-col-name {
    font-weight: 600;
    color: #1a365d;
}

.tlp-col-office {
    color: #555;
}

.tlp-col-state {
    color: #555;
}

.tlp-col-party {
    color: #777;
    font-size: 14px;
}

/* Pagination */
.tlp-directory-pagination {
    margin-top: 30px;
    text-align: center;
}

.tlp-directory-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.tlp-directory-pagination .page-numbers.current {
    background: #1a365d;
    border-color: #1a365d;
    color: #fff;
}

.tlp-directory-pagination .page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

/* Empty state */
.tlp-directory-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tlp-directory-empty p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 16px;
}

.tlp-directory-empty a {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .tlp-filter-form {
        flex-direction: column;
    }

    .tlp-filter-group {
        width: 100%;
    }

    .tlp-pledge-table {
        font-size: 14px;
    }

    .tlp-pledge-table th,
    .tlp-pledge-table td {
        padding: 10px;
    }

    .tlp-col-party {
        display: none;
    }
}

@media (max-width: 480px) {
    .tlp-pledge-table thead {
        display: none;
    }

    .tlp-pledge-table tbody tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
        padding: 15px;
    }

    .tlp-pledge-table td {
        display: block;
        border: none;
        padding: 5px 0;
    }

    .tlp-pledge-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
    }

    .tlp-col-name {
        font-size: 16px;
        margin-bottom: 5px;
    }
}
