.afliaate-dashboard,
.afliaate-affiliate-link-container,
.afliaate-account-summary,
.afliaate-transactions,
.afliaate-referrals,
.afliaate-edit-profile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.afliaate-dashboard h2,
.afliaate-dashboard h3,
.afliaate-affiliate-link-container h3,
.afliaate-account-summary h3,
.afliaate-transactions h3,
.afliaate-referrals h3,
.afliaate-edit-profile h3 {
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
}

.afliaate-affiliate-link-container .afliaate-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.afliaate-affiliate-link-container input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #f9f9f9;
}

.afliaate-link-description {
    color: #666;
    font-size: 14px;
}

.afliaate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.afliaate-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
}

.afliaate-stat-card .stat-icon {
    font-size: 30px;
}

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

.afliaate-stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.afliaate-stat-card .stat-value {
    font-size: 24px;
    font-weight: bold;
}

.afliaate-stat-earnings { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.afliaate-stat-pending { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.afliaate-stat-paid { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.afliaate-stat-referrals { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.afliaate-stat-clicks { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.afliaate-chart-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.afliaate-chart-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.afliaate-chart-container canvas {
    max-width: 100%;
}

.afliaate-transactions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.afliaate-transactions-tabs .tab-button {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.afliaate-transactions-tabs .tab-button:hover {
    background: #e0e0e0;
}

.afliaate-transactions-tabs .tab-button.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.afliaate-tab-content {
    display: none;
}

.afliaate-tab-content.active {
    display: block;
}

.afliaate-transactions-table,
.afliaate-referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.afliaate-transactions-table th,
.afliaate-referrals-table th,
.afliaate-transactions-table td,
.afliaate-referrals-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.afliaate-transactions-table th,
.afliaate-referrals-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.afliaate-transactions-table tr:hover,
.afliaate-referrals-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-approved,
.status-badge.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-pending,
.status-badge.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-banned {
    background: #f8d7da;
    color: #721c24;
}

.afliaate-no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

.afliaate-form-group {
    margin-bottom: 20px;
}

.afliaate-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.afliaate-form-group input[type="email"],
.afliaate-form-group select,
.afliaate-form-group textarea,
.afliaate-form-group input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.afliaate-form-group input:focus,
.afliaate-form-group select:focus,
.afliaate-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.afliaate-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.afliaate-success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 5px;
    margin-bottom: 20px;
}

.afliaate-login-required,
.afliaate-not-affiliate {
    padding: 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: 5px;
    border: 1px solid #ffeeba;
}

.user-email {
    display: block;
    color: #666;
    font-size: 12px;
}

@media (max-width: 768px) {
    .afliaate-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .afliaate-transactions-table,
    .afliaate-referrals-table {
        font-size: 13px;
    }
    
    .afliaate-transactions-table th,
    .afliaate-transactions-table td,
    .afliaate-referrals-table th,
    .afliaate-referrals-table td {
        padding: 8px;
    }
}