/**
 * Account styles.
 *
 * @package ReferralRewardsStoreCredits
 */

.rrsc-dashboard {
    max-width: 100%;
}

.rrsc-dashboard-header {
    background: #7f54b3;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.rrsc-dashboard-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
}

.rrsc-dashboard-header p {
    margin: 0;
    opacity: 0.9;
}

.rrsc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.rrsc-stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.rrsc-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
}

.rrsc-stat-value.primary {
    color: #7f54b3;
}

.rrsc-stat-value.success {
    color: #28a745;
}

.rrsc-stat-value.info {
    color: #17a2b8;
}

.rrsc-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.rrsc-referral-box {
    background: #fff;
    border: 2px solid #7f54b3;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.rrsc-referral-box h3 {
    margin: 0 0 15px;
    color: #7f54b3;
}

.rrsc-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rrsc-link-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.rrsc-btn-copy {
    padding: 12px 20px;
    background: #7f54b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.rrsc-btn-copy:hover {
    background: #6b4899;
}

.rrsc-code-info {
    margin: 0 0 15px;
    font-size: 13px;
    color: #666;
}

.rrsc-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rrsc-share-btn {
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.rrsc-share-btn.facebook {
    background: #1877f2;
}

.rrsc-share-btn.whatsapp {
    background: #25d366;
}

.rrsc-share-btn.twitter {
    background: #1da1f2;
}

.rrsc-share-btn.email {
    background: #6c757d;
}

.rrsc-share-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.rrsc-history-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.rrsc-history-box h3 {
    margin: 0 0 20px;
    color: #333;
}

.rrsc-no-history {
    color: #666;
    text-align: center;
}

.rrsc-history-table {
    width: 100%;
    border-collapse: collapse;
}

.rrsc-history-table th {
    text-align: left;
    padding: 10px;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid #dee2e6;
}

.rrsc-history-table td {
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.rrsc-history-table td.positive {
    color: #28a745;
    font-weight: bold;
}

.rrsc-history-table td.negative {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .rrsc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rrsc-link-row {
        flex-direction: column;
    }

    .rrsc-share-buttons {
        justify-content: center;
    }
}
