/* Quantity Controls - Minimales CSS */

/* Loading State für Count Input */
.count-input.loading {
    opacity: 0.6;
    pointer-events: none;
}

.count-input.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Success/Error Feedback */
.count-input.success {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    transition: background-color 0.3s ease;
}

.count-input.error {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
    transition: background-color 0.3s ease;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Hover States */
.count-input .btn:hover {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}

.count-input .btn:active {
    transform: scale(0.95);
}

/* Input Focus State */
.count-input input[type="number"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Disable Browser Number Input Spinners */
.count-input input[type="number"]::-webkit-outer-spin-button,
.count-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.count-input input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
