/**
 * @package Magedelight_ReferAFriend for Magento 2
 * @author MageDelight Team
 * @copyright Copyright (c) MageDelight (https://www.magedelight.com) owned by Krish TechnoLabs. All Rights reserved.
 */

/* Dashboard Styles */
.referafriend-dashboard {
    margin-bottom: 30px;
}

.referafriend-dashboard .block-title {
    margin-bottom: 15px;
}

.referafriend-dashboard .block-content {
    margin-bottom: 20px;
}

/* Referral Link Box */
.referral-link-box {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.referral-link-box .input-group {
    display: flex;
    margin-bottom: 10px;
}

.referral-link-box input[type="text"] {
    flex: 1;
    margin-right: 10px;
}

.referral-link-box button {
    white-space: nowrap;
}

/* Social Sharing */
.social-sharing {
    margin: 20px 0;
}

.social-sharing .title {
    margin-bottom: 10px;
    font-weight: 600;
}

.social-sharing .share-buttons {
    display: flex;
    flex-wrap: wrap;
}

.social-sharing .share-button {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-sharing .share-button:hover {
    opacity: 0.9;
}

.social-sharing .facebook {
    background-color: #3b5998;
}

.social-sharing .twitter {
    background-color: #1da1f2;
}

.social-sharing .whatsapp {
    background-color: #25d366;
}

.social-sharing .linkedin {
    background-color: #0077b5;
}

.social-sharing .email {
    background-color: #737373;
}

/* Stats Box */
.stats-box {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.stats-box .stat-item {
    flex: 1 0 calc(50% - 20px);
    margin: 0 10px 20px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.stats-box .stat-item .number {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2b7dbd;
}

.stats-box .stat-item .label {
    font-size: 14px;
    color: #6d6d6d;
}

/* Transaction and Withdrawal Tables */
.referafriend-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.referafriend-table th,
.referafriend-table td {
    padding: 10px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.referafriend-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.referafriend-table tr:nth-child(even) {
    background: #f8f8f8;
}

.referafriend-table .status {
    text-transform: capitalize;
}

.referafriend-table .status-pending {
    color: #ff9900;
}

.referafriend-table .status-confirmed,
.referafriend-table .status-completed,
.referafriend-table .status-approved {
    color: #4caf50;
}

.referafriend-table .status-canceled,
.referafriend-table .status-rejected {
    color: #f44336;
}

.referafriend-table .status-processing {
    color: #2196f3;
}

/* Application Form */
.form-apply-affiliate fieldset {
    margin-bottom: 20px;
}

.form-apply-affiliate .field {
    margin-bottom: 15px;
}

.form-apply-affiliate label {
    font-weight: 600;
}

.form-apply-affiliate .field-note {
    font-size: 12px;
    color: #6d6d6d;
    margin-top: 5px;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .stats-box .stat-item {
        flex: 1 0 calc(100% - 20px);
    }
    
    .referafriend-table {
        display: block;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .referral-link-box .input-group {
        flex-direction: column;
    }
    
    .referral-link-box input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Withdrawal Form */
.form-withdrawal-request fieldset {
    margin-bottom: 20px;
}

.form-withdrawal-request .field {
    margin-bottom: 15px;
}

.form-withdrawal-request label {
    font-weight: 600;
}

.form-withdrawal-request .field-note {
    font-size: 12px;
    color: #6d6d6d;
    margin-top: 5px;
}

/* Empty States */
.message.info.empty {
    background: #f8f8f8;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
}
