/* Points Frontend Styles */

.dw-points-redemption {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dw-points-to-earn {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#dw-points-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#dw-apply-points-btn:hover,
#dw-cancel-points-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#dw-apply-points-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dw-points-balance {
    transition: all 0.3s ease;
}

.dw-points-balance:hover {
    transform: scale(1.02);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .dw-points-redemption th > div {
        padding: 15px !important;
    }
    
    .dw-points-redemption h3 {
        font-size: 16px !important;
    }
    
    .dw-points-redemption input,
    .dw-points-redemption button {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
}

/* Loading state */
.dw-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dw-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
