/* My Reward Points Plugin Styles */

.mrp-points-dashboard {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

/* Balance Summary Cards */
.mrp-balance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mrp-balance-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e1e5e9;
    transition: transform 0.2s;
}

.mrp-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mrp-balance-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.mrp-points-balance {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.mrp-points-balance.total {
    color: #0073aa;
}

.mrp-points-balance.available {
    color: #46b450;
}

.mrp-points-balance.pending {
    color: #f56500;
}

.mrp-balance-card small {
    color: #666;
    font-size: 12px;
}

/* Redemption Form */
.mrp-redemption-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #46b450;
}

.mrp-redemption-form h3 {
    margin-top: 0;
    color: #333;
}

.mrp-redemption-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.mrp-redemption-form input[type="number"] {
    width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 16px;
}

.mrp-redemption-form input[type="submit"] {
    background: #46b450;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.mrp-redemption-form input[type="submit"]:hover {
    background: #3a9642;
}

/* Redemption Notice */
.mrp-redemption-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Pending Points Details */
.mrp-pending-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #f56500;
}

.mrp-pending-list {
    margin-top: 15px;
}

.mrp-pending-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mrp-pending-item:last-child {
    border-bottom: none;
}

.days-remaining {
    background: #f56500;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Points History */
.mrp-points-dashboard h3 {
    color: #333;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.mrp-points-history {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.mrp-points-history li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.mrp-points-history li:last-child {
    border-bottom: none;
}

.mrp-points-history li:nth-child(even) {
    background-color: #f7f7f7;
}

.points-positive {
    color: #46b450;
    font-weight: bold;
}

.points-negative {
    color: #dc3232;
    font-weight: bold;
}

.availability-status {
    float: right;
}

.availability-status .available {
    background: #46b450;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.availability-status .pending {
    background: #f56500;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mrp-balance-summary {
        grid-template-columns: 1fr;
    }
    
    .mrp-redemption-form input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .mrp-redemption-form input[type="submit"] {
        width: 100%;
    }
    
    .mrp-pending-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .days-remaining {
        margin-top: 5px;
    }
}

/* WooCommerce Messages */
.woocommerce-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
}

.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
}
