/* Referral link copy styles */
.referral-link-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 10px 0;
}

.referral-link-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #495057;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.copy-referral-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-referral-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.copy-referral-btn.copied {
    background: #28a745;
    color: white;
}

.copy-referral-btn svg {
    width: 16px;
    height: 16px;
}

/* Copy notification */
.copy-notification {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.copy-notification--success {
    background: #28a745;
    color: white;
}

.copy-notification--error {
    background: #dc3545;
    color: white;
}

.copy-notification.show {
    opacity: 1;
    top: -45px;
}

/* Position relative for container to position notification */
.referral-link-container {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-link-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-referral-btn {
        align-self: flex-end;
    }
    
    .referral-link-text {
        font-size: 12px;
    }
}
