/**
 * Public-facing styles for Baorun Affiliate.
 */

.bad-affiliate-dashboard {
    max-width: 100%;
}

.bad-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.bad-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.bad-tabs li {
    margin: 0;
}

.bad-tabs li a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.bad-tabs li a:hover,
.bad-tabs li.active a {
    color: #333;
    border-bottom-color: #007cba;
}

/* Stats Grid */
.bad-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.bad-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.bad-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.bad-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.bad-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.bad-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    color: #666;
}

.bad-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bad-table tr:hover td {
    background: #fafafa;
}

/* Badges */
.bad-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.bad-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.bad-badge-confirmed {
    background: #d4edda;
    color: #155724;
}

.bad-badge-reversed {
    background: #f8d7da;
    color: #721c24;
}

.bad-badge-paid {
    background: #cce5ff;
    color: #004085;
}

.bad-badge-active {
    background: #d4edda;
    color: #155724;
}

.bad-badge-suspended {
    background: #f8d7da;
    color: #721c24;
}

.bad-badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.bad-badge-processing {
    background: #fff3cd;
    color: #856404;
}

.bad-badge-approved {
    background: #cce5ff;
    color: #004085;
}

.bad-badge-completed {
    background: #d4edda;
    color: #155724;
}

/* Forms */
.bad-notice {
    background: #f0f6fc;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin: 15px 0;
    border-radius: 3px;
}

.bad-notice-error {
    background: #fdf2f2;
    border-left-color: #dc3545;
}

.bad-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .bad-tabs ul {
        flex-wrap: wrap;
    }
    .bad-tabs li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .bad-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
