.custom-boq-card {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boq-input {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.boq-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    background-color: #fff !important;
}

.product-selection-table {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.boq-item-row {
    transition: background-color 0.2s;
}

.boq-item-row:hover {
    background-color: #f8f9fa;
}

.quantity-input {
    max-width: 100px;
    margin: 0 auto;
}

.remove-item {
    transition: all 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background-color: #dc3545;
    color: white;
}

.boq-submit-btn {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.boq-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2) !important;
}

.boq-submit-btn:active {
    transform: translateY(0);
}

.product-modal-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.product-modal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1) !important;
    background: #fff;
    border-color: rgba(13, 110, 253, 0.3) !important;
}

.modal-add-btn {
    transition: all 0.2s ease;
}

.category-header-line {
    height: 1px;
    background: linear-gradient(90deg, #0d6efd, transparent);
    flex-grow: 1;
    margin-left: 1rem;
    opacity: 0.2;
}

/* Focused Selection Overlay */
.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darker, more transparent backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.selection-centered-box {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(20px); /* Strong glass blur */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    animation: popCenter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Subtle bright border */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popCenter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.variant-btn-large {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f2f5;
    background: #f8f9fa;
    color: #333;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-btn-large:hover {
    background: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.variant-btn-large:active {
    transform: translateX(2px);
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

.product-modal-card .card-body {
    position: relative;
    z-index: 1;
}

.product-modal-card h6 {
    font-size: 0.9rem;
    line-height: 1.2;
}

.object-fit-cover {
    object-fit: cover;
}

.cursor-pointer {
    cursor: pointer;
}
