/* Affiliate Suite Pro - Frontend Styles */

/* Dashboard Wrapper */
.as-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.as-dashboard-wrapper h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Tabs Navigation */
.as-tabs {
    display: flex;
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    border-bottom: 2px solid #e1e5e9;
    flex-wrap: wrap;
    gap: 0;
}

.as-tabs li {
    margin: 0;
}

.as-tabs a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
}

.as-tabs a:hover {
    color: #007cba;
    background: #fff;
}

.as-tabs a.active {
    color: #007cba;
    background: #fff;
    border-bottom-color: #007cba;
}

/* Tab Content */
.as-tab-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.as-tab {
    padding: 30px;
    min-height: 400px;
}

/* Stats Cards */
.as-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.as-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.as-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.as-stat-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.as-stat-card.earnings {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.as-stat-card.referrals {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.as-stat-card.clicks {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Forms */
.as-form-group {
    margin-bottom: 20px;
}

.as-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.as-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.as-form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.as-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.as-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.as-btn-secondary {
    background: #6c757d;
}

.as-btn-secondary:hover {
    background: #545b62;
}

.as-btn-success {
    background: #28a745;
}

.as-btn-success:hover {
    background: #218838;
}

/* Tables */
.as-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.as-table th,
.as-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.as-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.as-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.as-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.as-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.as-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.as-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.as-badge.active {
    background: #d1ecf1;
    color: #0c5460;
}

/* Referral Links */
.as-referral-link {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.as-referral-link input {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 14px;
}

.as-copy-btn {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 12px;
}

/* Messages */
.as-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.as-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.as-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.as-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Loading States */
.as-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.as-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .as-dashboard-wrapper {
        padding: 15px;
    }
    
    .as-tabs {
        flex-direction: column;
    }
    
    .as-tabs a {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .as-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .as-tab {
        padding: 20px;
    }
}

/* Login/Signup Forms */
.as-auth-wrapper {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.as-auth-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.as-form-group:last-child {
    margin-bottom: 0;
}

/* Payout Request Form */
.as-payout-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.as-payout-form h3 {
    margin-top: 0;
    color: #333;
}

/* Wallet Balance */
.as-wallet-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.as-wallet-balance h3 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
}

.as-wallet-balance p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Empty States */
.as-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.as-empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.as-empty-state p {
    margin-bottom: 20px;
}

/* Link Generator */
.as-link-generator {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.as-link-generator h3 {
    margin-top: 0;
    color: #333;
}

.as-generated-links {
    margin-top: 20px;
}

.as-generated-link {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-generated-link input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 12px;
    margin-right: 10px;
}

/* Notifications */
.as-notifications {
    max-height: 400px;
    overflow-y: auto;
}

.as-notification {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: flex-start;
}

.as-notification:last-child {
    border-bottom: none;
}

.as-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.as-notification-icon.success {
    background: #d4edda;
    color: #155724;
}

.as-notification-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.as-notification-icon.error {
    background: #f8d7da;
    color: #721c24;
}

.as-notification-content {
    flex: 1;
}

.as-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.as-notification-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.as-notification-time {
    color: #999;
    font-size: 12px;
}
