/**
 * TNR Private Affiliates - Frontend Styles
 * Developed by TNR Development Studio (https://tnrdevelopment.com)
 */

/* ─── Dashboard Container ─── */

.tnr-aff-dashboard {
    max-width: 900px;
}

.tnr-aff-dashboard h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1d2327;
}

.tnr-aff-dashboard h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #1d2327;
}

/* ─── Summary Cards ─── */

.tnr-aff-summary-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tnr-aff-summary-cards > div {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.15s ease;
}

.tnr-aff-summary-cards > div:hover {
    transform: translateY(-2px);
}

/* ─── Tables ─── */

.tnr-aff-dashboard .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.tnr-aff-dashboard .shop_table th {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #e2e4e7;
    color: #1d2327;
}

.tnr-aff-dashboard .shop_table td {
    font-size: 13px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #333;
}

.tnr-aff-dashboard .shop_table tbody tr:hover {
    background: #f9f9f9;
}

.tnr-aff-dashboard .shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Status Badges ─── */

.tnr-aff-dashboard .status-active {
    color: #00a32a;
    font-weight: 600;
}

.tnr-aff-dashboard .status-cancelled,
.tnr-aff-dashboard .status-expired {
    color: #d63638;
    font-weight: 600;
}

.tnr-aff-dashboard .status-on-hold,
.tnr-aff-dashboard .status-pending-cancel {
    color: #dba617;
    font-weight: 600;
}

/* ─── Empty State ─── */

.tnr-aff-dashboard p {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
}

/* ─── Responsive ─── */

@media screen and (max-width: 768px) {
    .tnr-aff-summary-cards {
        flex-direction: column;
    }

    .tnr-aff-summary-cards > div {
        min-width: 100%;
    }

    .tnr-aff-dashboard .shop_table_responsive thead {
        display: none;
    }

    .tnr-aff-dashboard .shop_table_responsive tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e4e7;
        border-radius: 6px;
        padding: 10px;
        background: #fff;
    }

    .tnr-aff-dashboard .shop_table_responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        border-bottom: 1px solid #f0f0f1;
        font-size: 13px;
    }

    .tnr-aff-dashboard .shop_table_responsive td:last-child {
        border-bottom: none;
    }

    .tnr-aff-dashboard .shop_table_responsive td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #1d2327;
        margin-right: 10px;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 480px) {
    .tnr-aff-dashboard h2 {
        font-size: 18px;
    }

    .tnr-aff-dashboard h3 {
        font-size: 14px;
    }

    .tnr-aff-summary-cards > div {
        padding: 12px;
    }

    .tnr-aff-summary-cards > div > div:last-child {
        font-size: 1.2em;
    }
}
