/* WSB Wallet Styles */

.wsb-wallet-dashboard {
    max-width: 900px;
    margin: 20px auto;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.balance-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.balance-actions .btn-outline {
    border-color: #fff;
    color: #fff;
}

.balance-actions .btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}

/* Tables */
.wsb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wsb-table th,
.wsb-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.wsb-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.txn-credit {
    color: #28a745;
    font-weight: 500;
}

.txn-debit {
    color: #c73e3a;
    font-weight: 500;
}

/* Badges */
.badge-active { background: #d4edda; color: #155724; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; }
.badge-grace { background: #fff3cd; color: #856404; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; }
.badge-delinquent { background: #f8d7da; color: #721c24; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; }

/* Payment methods radio cards */
.wsb-payment-methods {
    display: flex;
    gap: 10px;
}

.wsb-radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    transition: border-color 0.2s;
}

.wsb-radio-card:has(input:checked) {
    border-color: #c73e3a;
    background: #fff5f5;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
}

.radio-card-content strong {
    font-size: 0.95rem;
}

.radio-card-content small {
    color: #666;
    font-size: 0.8rem;
}

/* Quick amount buttons */
.wsb-quick-amount:hover {
    background: #c73e3a !important;
    color: #fff !important;
    border-color: #c73e3a !important;
}

/* =========================================================================
 * Statement Page
 * ====================================================================== */

.wsb-statement-page {
    max-width: 900px;
    margin: 20px auto;
}

/* Header */
.wsb-stmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wsb-stmt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wsb-stmt-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    transition: all 0.2s;
    text-decoration: none;
}

.wsb-stmt-back:hover {
    background: #f0f0f0;
    color: #333;
}

.wsb-stmt-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.wsb-stmt-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 2px 0 0;
}

.wsb-stmt-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #c73e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wsb-stmt-pdf-btn:hover {
    background: #a83330;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 62, 58, 0.3);
}

/* Filter Card */
.wsb-stmt-filter-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.wsb-stmt-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wsb-stmt-filter-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.wsb-stmt-field {
    flex: 1;
}

.wsb-stmt-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.wsb-stmt-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wsb-stmt-field input[type="date"]:focus {
    outline: none;
    border-color: #c73e3a;
    background: #fff;
}

.wsb-stmt-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 42px;
}

.wsb-stmt-view-btn:hover {
    background: #333;
}

.wsb-stmt-quick-ranges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wsb-stmt-range {
    padding: 5px 14px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.wsb-stmt-range:hover {
    background: #fff;
    border-color: #c73e3a;
    color: #c73e3a;
}

/* Summary Cards */
.wsb-stmt-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.wsb-stmt-summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wsb-stmt-summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wsb-stmt-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.wsb-stmt-summary-credit .wsb-stmt-summary-value {
    color: #2e7d32;
}

.wsb-stmt-summary-debit .wsb-stmt-summary-value {
    color: #c73e3a;
}

.wsb-stmt-summary-balance {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-color: transparent;
}

.wsb-stmt-summary-balance .wsb-stmt-summary-label {
    color: rgba(255, 255, 255, 0.5);
}

.wsb-stmt-summary-balance .wsb-stmt-summary-value {
    color: #fff;
}

/* Table Card */
.wsb-stmt-table-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.wsb-stmt-table-card .wsb-table {
    margin-bottom: 0;
}

.wsb-stmt-table-card .wsb-table th {
    background: #fafafa;
    border-bottom: 2px solid #eee;
    padding: 12px 16px;
}

.wsb-stmt-table-card .wsb-table td {
    padding: 12px 16px;
}

.wsb-stmt-table-card .wsb-table tbody tr:hover {
    background: #fafafa;
}

.wsb-stmt-table-card .wsb-table tbody tr:last-child td {
    border-bottom: none;
}

.wsb-stmt-date {
    color: #888;
    font-size: 0.88rem;
    white-space: nowrap;
}

.wsb-stmt-desc {
    font-weight: 500;
    color: #333;
}

.wsb-stmt-balance {
    color: #555;
    font-weight: 500;
}

/* Empty State */
.wsb-stmt-empty {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.wsb-stmt-empty p {
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    margin: 16px 0 4px;
}

.wsb-stmt-empty span {
    color: #999;
    font-size: 0.88rem;
}

/* =========================================================================
 * Responsive
 * ====================================================================== */

@media (max-width: 768px) {
    .balance-amount {
        font-size: 2rem;
    }

    .balance-actions {
        flex-direction: column;
        align-items: center;
    }

    .wsb-payment-methods {
        flex-direction: column;
    }

    .wsb-table {
        font-size: 0.85rem;
    }

    /* Statement responsive */
    .wsb-stmt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wsb-stmt-pdf-btn {
        width: 100%;
        justify-content: center;
    }

    .wsb-stmt-filter-fields {
        flex-direction: column;
    }

    .wsb-stmt-view-btn {
        width: 100%;
        justify-content: center;
    }

    .wsb-stmt-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .wsb-stmt-table-card {
        overflow-x: auto;
    }
}
