/**
 * WSB Seller Analytics Styles
 */

/* Container */
.wsb-analytics-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
}

.wsb-analytics-main h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.wsb-analytics-main h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px;
}

/* Header with period selector */
.wsb-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.wsb-analytics-range {
    font-size: 13px;
    color: #888;
    margin: 0 0 25px;
}

/* Period selector */
.wsb-period-selector {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.wsb-period-btn {
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wsb-period-btn:last-child {
    border-right: none;
}

.wsb-period-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.wsb-period-btn.active {
    background: #c73e3a;
    color: #fff;
}

/* Stats grid */
.wsb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}

.wsb-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.wsb-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wsb-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #c73e3a;
    line-height: 1.2;
    margin-bottom: 6px;
}

.wsb-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.wsb-analytics-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 25px;
}

.wsb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.wsb-section-header h2 {
    margin: 0;
}

/* Analytics table */
.wsb-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wsb-analytics-table thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wsb-analytics-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.wsb-analytics-table a {
    color: #c73e3a;
    text-decoration: none;
    font-weight: 500;
}

.wsb-analytics-table a:hover {
    text-decoration: underline;
}

/* Buttons */
.wsb-btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wsb-btn:hover {
    transform: translateY(-1px);
}

.wsb-btn-primary {
    background-color: #c73e3a;
    color: #fff;
}

.wsb-btn-primary:hover {
    background-color: #a83532;
}

.wsb-btn-secondary {
    background-color: #1a1a1a;
    color: #fff;
}

.wsb-btn-secondary:hover {
    background-color: #333;
}

.wsb-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Empty state */
.wsb-empty-state {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .wsb-analytics-main {
        padding: 20px 15px;
    }

    .wsb-analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .wsb-stat-value {
        font-size: 24px;
    }

    .wsb-analytics-main h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .wsb-stats-grid {
        grid-template-columns: 1fr;
    }

    .wsb-period-selector {
        flex-wrap: wrap;
    }

    .wsb-period-btn {
        flex: 1;
        text-align: center;
    }
}
