/**
 * POKBON Affiliate My Account Dashboard Styles
 */

/* Tabs */
.pokbon-affiliate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0;
}

.pokbon-affiliate-tabs .pokbon-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.pokbon-affiliate-tabs .pokbon-tab:hover {
    color: #333;
    border-bottom-color: #ccc;
}

.pokbon-affiliate-tabs .pokbon-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Welcome box */
.pokbon-welcome-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.pokbon-welcome-content h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
}

.pokbon-affiliate-code-display {
    font-family: monospace;
    font-size: 1.2em;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 8px;
}

.pokbon-copy-btn-small {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    font-size: 12px;
}

.pokbon-copy-btn-small:hover {
    background: rgba(255,255,255,0.3);
}

/* Stats grid */
.pokbon-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.pokbon-stat-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pokbon-stat-icon {
    font-size: 2em;
    margin-right: 15px;
}

.pokbon-stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}

.pokbon-stat-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

/* Tier progress */
.pokbon-tier-progress-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.pokbon-tier-progress-box h4 {
    margin-top: 0;
}

.pokbon-progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pokbon-progress-arrow {
    color: #999;
}

.pokbon-progress-bar {
    height: 10px;
    background: #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
}

.pokbon-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.pokbon-progress-text {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.pokbon-max-tier {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

/* Quick actions */
.pokbon-quick-actions {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.pokbon-quick-actions h4 {
    margin-top: 0;
}

.pokbon-quick-link-box {
    margin-bottom: 15px;
}

.pokbon-quick-link-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.pokbon-input-with-copy {
    display: flex;
    gap: 10px;
}

.pokbon-input-with-copy input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pokbon-copy-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.pokbon-copy-btn:hover {
    background: #135e96;
}

/* Month summary */
.pokbon-month-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
}

.pokbon-month-summary h4 {
    margin-top: 0;
}

.pokbon-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.pokbon-summary-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #2271b1;
}

.pokbon-summary-label {
    display: block;
    font-size: 0.85em;
    color: #666;
}

/* Tables */
.pokbon-referrals-table,
.pokbon-payouts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.pokbon-referrals-table th,
.pokbon-referrals-table td,
.pokbon-payouts-table th,
.pokbon-payouts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.pokbon-referrals-table th,
.pokbon-payouts-table th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Status badges */
.pokbon-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pokbon-status-pending {
    background: #fff3cd;
    color: #856404;
}

.pokbon-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.pokbon-status-paid,
.pokbon-status-completed {
    background: #cce5ff;
    color: #004085;
}

.pokbon-status-cancelled,
.pokbon-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Pagination */
.pokbon-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
}

.pokbon-pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pokbon-pagination a:hover,
.pokbon-pagination a.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Notices */
.pokbon-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pokbon-notice-info {
    background: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
}

.pokbon-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* Payout section */
.pokbon-payout-balance {
    margin-bottom: 25px;
}

.pokbon-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.pokbon-balance-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
}

.pokbon-balance-amount {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    margin-top: 5px;
}

.pokbon-payout-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
}

.pokbon-payment-info {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.pokbon-payment-info h4 {
    margin-top: 0;
}

/* Form elements */
.pokbon-form-row {
    margin-bottom: 15px;
}

.pokbon-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.pokbon-form-row input,
.pokbon-form-row select,
.pokbon-form-row textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pokbon-form-messages {
    margin-top: 15px;
}

/* Link generator */
.pokbon-link-generator {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.pokbon-campaign-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pokbon-qr-code-section {
    text-align: center;
    margin-top: 20px;
}

.pokbon-qr-code-section img {
    max-width: 150px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* Quick links list */
.pokbon-quick-links-list {
    display: grid;
    gap: 15px;
}

.pokbon-quick-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 4px;
}

.pokbon-quick-link-item span {
    min-width: 100px;
    font-weight: 600;
}

.pokbon-quick-link-item input {
    flex: 1;
}

.pokbon-copy-btn-inline {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Payment fields toggle */
.pokbon-payment-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 4px;
}

/* No data message */
.pokbon-no-data {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pokbon-welcome-box {
        flex-direction: column;
        text-align: center;
    }

    .pokbon-tier-display {
        margin-top: 15px;
    }

    .pokbon-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pokbon-summary-grid {
        grid-template-columns: 1fr;
    }

    .pokbon-campaign-inputs {
        grid-template-columns: 1fr;
    }

    .pokbon-quick-link-item {
        flex-direction: column;
        align-items: stretch;
    }

    .pokbon-quick-link-item span {
        min-width: auto;
    }
}
