/* Custom styles for the inventory counter app */

/* Ensure proper touch targets for mobile */
.btn-count {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Count input styling */
.count-input {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.count-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* High count warning */
.high-count-warning {
    color: var(--bs-danger);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Product group styling */
.product-group {
    border-left: 4px solid var(--bs-secondary);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.product-group.frozen {
    border-left-color: var(--bs-info);
}

.product-group.refrigerated {
    border-left-color: var(--bs-primary);
}

.product-group.shelf {
    border-left-color: var(--bs-warning);
}

/* Temperature badges */
.temp-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product item styling */
.product-item {
    transition: background-color 0.2s ease;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.product-item:hover {
    background-color: var(--bs-secondary-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .product-item {
        padding: 0.75rem;
    }
    
    .btn-count {
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
    }
    
    .count-input {
        font-size: 1rem;
    }
}

/* Loading and error states */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Submit button enhancement */
#submitBtn {
    transition: all 0.2s ease;
}

#submitBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product name truncation for long names */
.product-name {
    word-break: break-word;
    line-height: 1.4;
}

/* Count controls alignment */
.count-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .count-controls {
        justify-content: flex-end;
    }
}
