/**
 * Admin Tables Styles
 * Simple Points and Rewards Plugin
 */

/* Premium Badge Styles - Used for features that require PRO upgrade */
.spar-premium-settings-badge-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Note: Levels and badges are fully available in free version, 
   only the ability to add more than 1 additional custom level requires PRO */

/* Table Improvements */
.wp-list-table .column-usage .dashicons {
    vertical-align: middle;
}

.wp-list-table .column-usage .dashicons-yes {
    color: #46b450;
}

.wp-list-table .column-usage .dashicons-no {
    color: #dc3232;
}

/* Customer Points Table Styles */
@media screen and (min-width: 1620px) {

.spar-customer-points-table .column-display_name {
    width: 200px;
}

.spar-customer-points-table .column-referral_code {
    width: 140px;
}

.spar-customer-points-table .column-points {
    width: 150px;
}

.spar-customer-points-table .column-referral_stats {
    width: 150px;
}

.spar-customer-points-table .column-referral_url {
    width: 280px;
}

.spar-customer-points-table .column-actions {
    width: 150px;
}

}

.spar-referral-code {
    background: #f1f1f1;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.spar-copy-code:hover {
    text-decoration: underline;
}

.spar-referral-stats div {
    margin-bottom: 2px;
    font-size: 12px;
}

.spar-referral-url-input {
    margin-bottom: 5px;
}

.spar-points-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spar-points-controls {
    display: flex;
    gap: 3px;
    align-items: center;
}

.spar-points-input {
    font-size: 12px;
    height: 28px;
    line-height: 1;
}

.spar-add-points, .spar-remove-points {
    min-width: 28px;
    height: 28px;
    line-height: 1;
    padding: 0;
    font-weight: bold;
}

.spar-add-points {
    background: #00a32a;
    border-color: #00a32a;
    color: white;
}

.spar-add-points:hover {
    background: #008a20;
    border-color: #008a20;
}

.spar-remove-points {
    background: #d63638;
    border-color: #d63638;
    color: white;
}

.spar-remove-points:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.spar-points-display {
    font-size: 16px;
}

/* Responsive table adjustments */
@media screen and (max-width: 782px) {
    .spar-premium-settings-badge-small {
        display: block;
        margin-left: 0;
        margin-top: 3px;
        width: fit-content;
    }
    
    .spar-referral-url-input {
        width: 200px !important;
        font-size: 10px !important;
    }
    
    .spar-points-controls {
        flex-wrap: wrap;
    }
    
    .spar-customer-points-table .column-referral_url,
    .spar-customer-points-table .column-actions {
        width: auto;
    }
}