/* AffiliFlow Frontend Dashboard Styles */

.affiliflow-dashboard {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* Notices */
.affiliflow-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.affiliflow-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.affiliflow-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.affiliflow-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.affiliflow-notice-info {
    background: #cce5ff;
    border-color: #007bff;
    color: #004085;
}

.affiliflow-notice ul {
    margin: 0;
    padding-left: 20px;
}

/* Stats boxes */
.affiliflow-stats {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.affiliflow-stat-box {
    flex: 1;
    min-width: 160px;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.affiliflow-stat-pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.affiliflow-stat-confirmed {
    background: #d4edda;
    border: 1px solid #28a745;
}

.affiliflow-stat-paid {
    background: #cce5ff;
    border: 1px solid #007bff;
}

.affiliflow-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    opacity: 0.8;
}

.affiliflow-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

/* Sections */
.affiliflow-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.affiliflow-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

/* Link generator */
.affiliflow-link-generator {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.affiliflow-link-generator input {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Referral table */
.affiliflow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.affiliflow-table th,
.affiliflow-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.affiliflow-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.affiliflow-table tr:last-child td {
    border-bottom: none;
}

/* Payout options */
.affiliflow-payout-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.affiliflow-payout-option {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 18px;
}

.affiliflow-payout-option h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
}

/* Form styles */
.affiliflow-form .affiliflow-form-row {
    margin-bottom: 18px;
}

.affiliflow-form-row-half {
    display: flex;
    gap: 15px;
}

.affiliflow-form-row-half .affiliflow-field {
    flex: 1;
}

.affiliflow-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.affiliflow-field input[type="text"],
.affiliflow-field input[type="email"],
.affiliflow-field input[type="password"],
.affiliflow-field input[type="url"],
.affiliflow-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.affiliflow-field input:focus,
.affiliflow-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.affiliflow-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.affiliflow-field .required {
    color: #dc3545;
}

.affiliflow-submit-btn {
    padding: 10px 25px;
    font-size: 15px;
}

/* Register form wrapper */
.affiliflow-register-form {
    max-width: 600px;
    margin: 0 auto;
}

.affiliflow-register-form h2 {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .affiliflow-stats {
        flex-direction: column;
    }

    .affiliflow-stat-box {
        min-width: auto;
    }

    .affiliflow-payout-options {
        flex-direction: column;
    }

    .affiliflow-form-row-half {
        flex-direction: column;
    }
}
