/**
 * Plugin Name: Community Savings Engine Styles
 * Description: Modern responsive styling for tables, cards, and community workspaces.
 */

.community-savings-directory,
.community-group-box,
.community-schedule-box,
.community-bank-form-box,
.community-wallet-box,
.community-dashboard-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 30px;
}

.community-savings-directory h3,
.community-group-box h3,
.community-schedule-box h3,
.community-bank-form-box h3,
.community-wallet-box h3,
.community-dashboard-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.community-savings-directory p,
.community-group-box p,
.community-schedule-box p,
.community-bank-form-box p,
.community-wallet-box p,
.community-dashboard-box p {
    color: #475569;
    font-size: 14px;
    margin-bottom: 20px;
}

.community-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.community-table-wrapper table.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    background: transparent;
}

.community-table-wrapper table.wp-list-table th,
.community-table-wrapper table.wp-list-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.community-table-wrapper table.wp-list-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.community-table-wrapper table.wp-list-table tr:last-child td {
    border-bottom: none;
}

.community-badge-verified {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    border-radius: 9999px;
}

.community-badge-pending {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #854d0e;
    background: #fef9c3;
    border-radius: 9999px;
}

.community-bank-form-box form label,
.community-auth-box form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.community-bank-form-box form input[type="text"],
.community-bank-form-box form input[type="number"],
.community-bank-form-box form select,
.community-auth-box form input[type="text"],
.community-auth-box form input[type="email"],
.community-auth-box form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
}

.community-bank-form-box form input:focus,
.community-bank-form-box form select:focus,
.community-auth-box form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.community-bank-form-box form button,
.community-auth-box form button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.community-bank-form-box form button:hover,
.community-auth-box form button:hover {
    background: #1d4ed8;
}

/* Responsive Table-to-Card Reflow for Mobile */
@media screen and (max-width: 1024px) {
    .community-table-wrapper table.wp-list-table thead {
        display: none;
    }
    .community-table-wrapper table.wp-list-table,
    .community-table-wrapper table.wp-list-table tbody,
    .community-table-wrapper table.wp-list-table tr,
    .community-table-wrapper table.wp-list-table td {
        display: block;
        width: 100%;
    }
    .community-table-wrapper table.wp-list-table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
        padding: 10px;
    }
    .community-table-wrapper table.wp-list-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .community-table-wrapper table.wp-list-table td:last-child {
        border-bottom: none !important;
    }
    .community-table-wrapper table.wp-list-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        text-align: left;
        margin-right: 15px;
    }
}