/* Equipment Modal Styles */
:root {
    --labtron-red: #dc3545;
    --labtron-dark: #212529;
    --labtron-light: #f8f9fa;
}

.equipment-modal .modal-dialog {
    max-width: 800px;
    margin: 2rem auto;
}

.equipment-modal .modal-header {
    background: linear-gradient(135deg, var(--labtron-red) 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1.5rem;
}

.equipment-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.equipment-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.equipment-modal .modal-body {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
}

.equipment-search {
    padding: 1.5rem;
    background: var(--labtron-light);
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--labtron-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

.equipment-list {
    padding: 1rem;
}

.equipment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.equipment-item:hover {
    background: var(--labtron-light);
    border-color: var(--labtron-red);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.equipment-item.selected {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--labtron-red);
}

.equipment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--labtron-red) 0%, #c82333 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.equipment-details {
    flex: 1;
}

.equipment-name {
    font-weight: 600;
    color: var(--labtron-dark);
    margin: 0;
    font-size: 16px;
}

.equipment-category {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.equipment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #d4edda;
    color: #155724;
}

.equipment-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.selected-count {
    background: var(--labtron-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.category-filters {
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: var(--labtron-light);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--labtron-red);
    color: white;
    border-color: var(--labtron-red);
}

.category-badge.active {
    background: var(--labtron-red);
    color: white;
    border-color: var(--labtron-red);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@media (max-width: 768px) {
    .equipment-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .equipment-item {
        padding: 0.75rem;
    }
    
    .equipment-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
