.drug-list-container {
    background-image: url('/app/assets/frontEndAssets/images/medical-background-list.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #f5f6f5; /* Fallback */
    min-height: 100vh;
    padding-bottom: 200px; /* Space for fixed-bottom disclaimer */
}

.alert-info {
    background-color: rgba(224, 247, 250, 0.95); /* Light blue-green, semi-transparent */
    border-color: #d1e7dd;
    color: #005566;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.alert-heading {
    color: #003d4a;
    font-size: 1.25rem;
}

.btn-close {
    filter: invert(30%) sepia(50%) saturate(1000%) hue-rotate(160deg); /* Match #005566 */
}

.btn-close:hover {
    opacity: 0.8;
}

.drug-item {
    flex: 0 0 300px;
    max-width: 300px;
}

.card.drug-card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.card.drug-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #005566;
    box-shadow: 0 6px 16px rgba(0, 85, 102, 0.2);
}

.drug-card-link:focus .drug-card {
    outline: 2px solid #005566;
    outline-offset: 2px;
}

.view-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 85, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card.drug-card:hover .view-details-overlay {
    opacity: 1;
}

.view-details-text {
    color: #005566;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #005566;
}

.card-title {
    font-size: 1.25rem;
    color: #005566;
}

.text-muted {
    font-size: 0.9rem;
}

.input-group .form-control {
    border-radius: 4px 0 0 4px;
    font-size: 1.1rem;
    border: 1px solid #ced4da;
}

.btn-primary {
    border-radius: 0 4px 4px 0;
    background-color: #005566;
    border-color: #005566;
}

.btn-primary:hover {
    background-color: #003d4a;
    border-color: #003d4a;
}

.modern-pagination .page-link {
    border-radius: 50px;
    margin: 0 5px;
    padding: 8px 14px;
    color: #005566;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s, color 0.2s;
}

.modern-pagination .page-item.active .page-link {
    background-color: #005566;
    border-color: #005566;
    color: #fff;
}

.modern-pagination .page-link:hover {
    background-color: #e9ecef;
    color: #003d4a;
}

.modern-pagination .page-item.disabled .page-link {
    color: #6c757d;
}

#searchSuggestions {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

#searchSuggestions .dropdown-item {
    padding: 8px 12px;
    color: #333;
}

#searchSuggestions .dropdown-item:hover {
    background-color: #e0f7fa;
    color: #005566;
}

@media (max-width: 767px) {
    .drug-list-container {
        background-attachment: scroll;
        padding-bottom: 250px; /* Extra space for disclaimer on mobile */
    }
    .drug-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card.drug-card {
        padding: 1rem;
    }
    .input-group .form-control,
    .btn-primary {
        font-size: 1rem;
    }
    .modern-pagination .page-link {
        padding: 6px 12px;
    }
    .alert-info {
        font-size: 0.9rem;
        max-width: 95%;
    }
    .view-details-text {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}