/*
Theme Name:   Xstore child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

/* === Affiliate Dashboard Styling === */
.custom-affiliate-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #112E51;
}

.commissions-table th{
	color: #fff !important;
}
div#afwc_kpi_section_wrapper {
    display: none !important;
}
/* Header */
.custom-affiliate-dashboard .dashboard-header {
    text-align: center;
    margin-bottom: 25px;
}
.custom-affiliate-dashboard form select{
	padding: 0px 10px !important;
}
.custom-affiliate-dashboard .dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #112E51;
}
.custom-affiliate-dashboard .dashboard-header p {
    font-size: 16px;
    color: #5a6a85;
}

/* Filter Form */
.custom-affiliate-dashboard form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}
.custom-affiliate-dashboard form label {
    font-weight: 600;
    margin-right: 8px;
}
.custom-affiliate-dashboard form select,
.custom-affiliate-dashboard form input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.custom-affiliate-dashboard .dashboard-btn {
    background: #5EB2E6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.3s;
}
.custom-affiliate-dashboard .dashboard-btn:hover {
    background: #112E51;
}

/* Stats Section */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}
.stat-card {
    background: #f9fbfd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e3e9f0;
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-card h3 {
    font-size: 16px;
    color: #112E51;
    margin-bottom: 8px;
}
.stat-card .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #5EB2E6;
    margin-bottom: 6px;
}
.stat-card p {
    font-size: 13px;
    color: #5a6a85;
}

/* Commissions Table */
.commissions-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.commissions-table thead {
    background: #112E51;
    color: #fff;
}
.commissions-table th,
.commissions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e3e9f0;
}
.commissions-table tbody tr:hover {
    background: #f1f6fb;
}
.status-paid {
    color: #28a745;
    font-weight: 600;
}
.status-pending {
    color: #f0ad4e;
    font-weight: 600;
}

/* Notices */
.affiliate-dashboard-notice {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.affiliate-dashboard-notice a {
    color: #5EB2E6;
    font-weight: bold;
    text-decoration: none;
}
.affiliate-dashboard-notice a:hover {
    text-decoration: underline;
}
