/* Frontend-only styles for referral dashboard widgets */

@keyframes rrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lp-profile-referral-code {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin: 20px 0;
}

.lp-profile-referral-code h6.text-muted {
    color: #666;
    font-size: 16px;
    margin-bottom: 5px;
}

.lp-profile-referral-code p {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}

.lp-profile-referral-code .alert-custom {
    background-color: #f8f9fa;
    border-right: 4px solid #0865fe;
    color: #2f4368;
    padding: 15px;
    border-radius: 5px;
    font-size: 15px;
    margin-top: 20px;
    text-align: right;
}

.lp-profile-referral-code .alert-custom a {
    color: #0865fe;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lp-profile-referral-code .alert-custom a:hover {
    text-decoration: underline;
    color: #074bb5;
}

.referral-container {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    padding: 20px;
    border-radius: 12px;
}

.referral-tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.referral-tabs-nav button {
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-tab-content {
    display: none;
    padding: 20px;
    border-radius: 12px;
    animation: rrFadeIn 0.6s ease;
    min-height: 200px;
}

.referral-tab-content.active {
    display: block;
}

.referral-code-box {
    position: relative;
    display: flex;
    align-items: center;
}

#referral-code-input {
    padding-left: 45px !important;
}

.copy-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    font-size: 22px;
    color: #a0aec0;
    padding: 0 !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    transition: color 0.3s ease;
    height: 100%;
}

.copy-button:hover {
    background: transparent !important;
    color: var(--rr-primary-color, #2563eb) !important;
}

.referral-input-wrapper button {
    padding: 10px 12px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-input-wrapper button:hover {
    background-color: #1e40af;
}

.referral-box {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    margin-top: 15px;
}

.referral-box strong {
    color: var(--rr-primary-color, #2563eb);
    font-weight: bold;
}

.alert-custom {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    margin-top: 20px;
    border-right: 5px solid #2563eb;
}

.alert-custom a {
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.alert-custom a:hover {
    text-decoration: underline;
}

.wc-profile-referral-code {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin: 20px 0;
}

.wc-profile-referral-code h6.text-muted {
    color: #666;
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 20px;
}

.wc-profile-referral-code h6.text-muted:first-child {
    margin-top: 0;
}

.wc-profile-referral-code p {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}

.wc-profile-referral-code .alert-custom {
    background-color: #f8f9fa;
    border-right: 4px solid #2774e8;
    color: #2f4368;
    padding: 15px;
    border-radius: 5px;
    font-size: 15px;
    margin-top: 20px;
    text-align: right;
}

.wc-profile-referral-code .alert-custom a {
    color: #2774e8;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wc-profile-referral-code .alert-custom a:hover {
    text-decoration: underline;
    color: #1a5cb0;
}

.referral-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.custom-button,
.second-button {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.referral-container h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .referral-buttons {
        flex-direction: column;
    }

    .referral-tabs-nav {
        flex-wrap: wrap;
    }

    .referral-tabs-nav button {
        flex: 1;
        min-width: 120px;
    }

    .referral-code-box {
        flex-direction: column;
        align-items: stretch;
    }

    #referral-code-input {
        width: 100% !important;
        margin-bottom: 10px;
    }
}
