/**
 * 3DTexel Affiliate System Styles
 */

/* Affiliate Section in Dashboard */
.txsub-affiliate-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Apply Box */
.tx-affiliate-apply-box {
    max-width: 600px;
    margin: 0 auto;
}

.tx-affiliate-benefits h3 {
    color: #7ddb47;
    margin-bottom: 15px;
}

.tx-benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tx-benefits-list li {
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
}

.tx-button {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.tx-button-primary {
    background: #7ddb47;
    color: #000;
}

.tx-button-primary:hover {
    background: #91ef5b;
}

.tx-button-secondary {
    background: #333;
    color: #fff;
}

.tx-button-secondary:hover {
    background: #444;
}

/* Application Form */
#tx-affiliate-apply-form textarea {
    width: 100%;
    padding: 15px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
}

.tx-form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Pending Status */
.tx-affiliate-pending,
.tx-affiliate-rejected {
    text-align: center;
    padding: 40px 20px;
}

.tx-status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tx-affiliate-pending h3,
.tx-affiliate-rejected h3 {
    color: #7ddb47;
    margin-bottom: 10px;
}

.tx-applied-date {
    color: #999;
    font-size: 14px;
}

/* Active Dashboard */
.tx-affiliate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.tx-affiliate-status-badge {
    text-align: center;
    margin-bottom: 20px;
}

.tx-status-active {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.tx-status-suspended {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Code and Link Display */
.tx-affiliate-code-box,
.tx-affiliate-share-box {
    background: #242424;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tx-affiliate-code-box label,
.tx-affiliate-share-box label {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.tx-code-display,
.tx-link-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tx-code {
    flex: 1;
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    color: #7ddb47;
    font-family: 'Courier New', monospace;
}

#tx-share-url {
    flex: 1;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.tx-copy-code,
.tx-copy-link {
    padding: 12px 20px;
    background: #7ddb47;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tx-copy-code:hover,
.tx-copy-link:hover {
    background: #91ef5b;
}

/* Statistics Cards */
.tx-affiliate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tx-stat-card {
    background: #242424;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #333;
    transition: transform 0.3s;
}

.tx-stat-card:hover {
    transform: translateY(-5px);
}

.tx-stat-highlight {
    border-color: #7ddb47;
    background: linear-gradient(135deg, #242424 0%, #2a3a24 100%);
}

.tx-stat-pending {
    border-color: #ff9800;
}

.tx-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.tx-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #7ddb47;
    margin: 10px 0;
}

.tx-stat-label {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sales Table */
.tx-affiliate-recent-sales {
    margin-top: 40px;
}

.tx-affiliate-recent-sales h3 {
    color: #7ddb47;
    margin-bottom: 20px;
}

.tx-sales-table {
    width: 100%;
    background: #242424;
    border-radius: 8px;
    overflow: hidden;
}

.tx-sales-table thead {
    background: #1a1a1a;
}

.tx-sales-table th,
.tx-sales-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.tx-sales-table th {
    color: #7ddb47;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.tx-sales-table td {
    color: #fff;
}

.tx-commission {
    color: #7ddb47;
    font-weight: bold;
}

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

.tx-badge-paid {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.tx-badge-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

/* No Sales Message */
.tx-no-sales {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Info Box Styling */
.tx-affiliate-info-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #7ddb47;
    margin-bottom: 20px;
}

.tx-affiliate-info-box h4 {
    color: #7ddb47;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.tx-affiliate-info-box p {
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.tx-affiliate-info-box p:last-child {
    margin-bottom: 0;
}

.tx-affiliate-info-box strong {
    color: #7ddb47;
}

/* Payment Info Form */
.tx-affiliate-payment-info {
    background: #242424;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.tx-affiliate-payment-info h4 {
    color: #7ddb47;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.tx-form-group {
    margin-bottom: 15px;
}

.tx-form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.tx-form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.tx-form-group input:focus {
    outline: none;
    border-color: #7ddb47;
}

.tx-form-group small {
    display: block;
    color: #999;
    margin-top: 5px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .tx-affiliate-stats {
        grid-template-columns: 1fr;
    }
    
    .tx-code-display,
    .tx-link-display {
        flex-direction: column;
    }
    
    .tx-code {
        font-size: 18px;
    }
    
    .tx-sales-table {
        font-size: 12px;
    }
    
    .tx-sales-table th,
    .tx-sales-table td {
        padding: 10px 5px;
    }
}
