/* Affiliate Dashboard Widget Styles */
.td-affiliate-dashboard-container {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 0;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: 'IRANYekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.td-affiliate-dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #94a3b8, #64748b);
    border-radius: 16px 16px 0 0;
}

.td-affiliate-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
    border-bottom: 1px solid #334155;
    text-align: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.td-affiliate-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Stats Grid */
.td-affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #ffffff;
}

.td-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.td-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.td-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.td-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.td-stat-approved {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.td-stat-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.td-stat-total {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.td-stat-sales {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.td-stat-clicks {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.td-stat-paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.td-stat-content {
    text-align: right;
}

.td-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.td-stat-value {
    font-size: 18px;
    color: #4b5563;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Affiliate Sections */
.td-affiliate-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 30px 30px;
    background: #ffffff;
}

.td-affiliate-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
}

.td-affiliate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 16px 16px 0 0;
}

.td-section-header {
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.td-section-title {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.td-section-content {
    padding: 40px 20px;
    text-align: center;
}

.td-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.td-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.td-icon-request {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.td-icon-amount {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.td-empty-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* View All Section */
.td-view-all-section {
    padding: 0 30px 30px;
    background: #ffffff;
}

.td-view-all-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.td-view-all-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 16px 16px 0 0;
}

.td-view-all-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.td-view-all-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    flex-shrink: 0;
}

.td-view-all-content {
    flex: 1;
}

.td-view-all-title {
    margin: 0 0 5px 0;
    color: #4b5563;
    font-size: 16px;
    font-weight: 600;
}

.td-view-all-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Affiliate Links Widget Styles */
.td-affiliate-links-container {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: 'IRANYekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.td-affiliate-links-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #94a3b8, #64748b);
    border-radius: 16px 16px 0 0;
}

.td-affiliate-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
    border-bottom: 1px solid #334155;
    text-align: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.td-affiliate-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.td-empty-state {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
}

.td-empty-message {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.td-empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.td-empty-text {
    font-size: 22px;
    color: #374151;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.td-empty-subtext {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.td-affiliate-links-title {
    display: none;
}

.td-affiliate-links-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
}

.td-affiliate-link-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.td-affiliate-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 16px 16px 0 0;
}

.td-affiliate-link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.td-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.td-link-course-title {
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    flex: 1;
}

.td-link-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.td-link-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.td-link-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.td-link-url-wrapper {
    flex: 1;
}

.td-link-url {
    width: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #3b82f6;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.td-link-url:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.td-copy-link-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.td-copy-link-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.td-copy-link-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .td-affiliate-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .td-affiliate-sections {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px 20px;
    }
    
    .td-view-all-section {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .td-affiliate-dashboard-container {
        margin: 10px 0;
        border-radius: 12px;
    }
    
    .td-affiliate-header {
        padding: 15px;
        border-radius: 12px 12px 0 0;
    }
    
    .td-affiliate-title {
        font-size: 18px;
    }
    
    .td-affiliate-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .td-stat-card {
        padding: 15px;
    }
    
    .td-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .td-stat-label {
        font-size: 12px;
    }
    
    .td-stat-value {
        font-size: 16px;
    }
    
    .td-affiliate-sections {
        padding: 0 15px 15px;
    }
    
    .td-section-content {
        padding: 30px 15px;
    }
    
    .td-empty-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .td-empty-text {
        font-size: 13px;
    }
    
    .td-view-all-section {
        padding: 0 15px 15px;
    }
    
    .td-view-all-card {
        padding: 15px;
    }
    
    .td-view-all-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .td-view-all-title {
        font-size: 14px;
    }
    
    .td-view-all-text {
        font-size: 12px;
    }
    
    .td-link-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .td-link-course-title {
        font-size: 16px;
    }
    
    .td-link-stats {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .td-link-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .td-copy-link-btn {
        width: 100%;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .td-affiliate-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .td-stat-card {
        padding: 12px;
    }
    
    .td-stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .td-stat-label {
        font-size: 11px;
    }
    
    .td-stat-value {
        font-size: 14px;
    }
    
    .td-section-content {
        padding: 20px 10px;
    }
    
    .td-empty-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .td-empty-text {
        font-size: 12px;
    }
}

/* Dark mode support removed */
