/* WellGenie Drug Search Plugin Styles */

.wgds-drug-search-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 2rem 0;
}

.wgds-drug-search-container .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Info Section Styling */
.wgds-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wgds-info-section .alert {
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wgds-coverage-info {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.wgds-coverage-info ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.wgds-coverage-info ul li:last-child {
    border-bottom: none;
}

.wgds-coverage-info.alert-info,
.wgds-mobile-note.alert-info {
    background-color: #e3f2fd;
    border-color: #b3e5fc;
    border-left: 4px solid #2196f3;
}

.wgds-mobile-note.alert-info {
    font-size: 0.9rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

/* Search Section Styling */
.wgds-search-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.wgds-search-section h4 {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Search Input Styling */
#wgds-search-input {
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

#wgds-search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#wgds-search-btn {
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Results Styling */
#wgds-results-list {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 6px;
}

#wgds-results-list .list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
    background: white;
}

#wgds-results-list .list-group-item:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#wgds-results-list .list-group-item .drug-name {
    font-weight: 600;
    color: #0d6efd;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

#wgds-results-list .list-group-item .drug-details {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#wgds-results-list .list-group-item .max-qty-info {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e9ecef;
    color: #495057;
    font-size: 0.85rem;
}

#wgds-results-list .list-group-item .coverage-badge {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loading Animation */
#wgds-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styling */
#wgds-no-results,
#wgds-error {
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wgds-drug-search-container .row {
        flex-direction: column;
    }
    
    .wgds-info-section {
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .wgds-search-section {
        padding: 1.5rem;
    }
    
    #wgds-results-list {
        max-height: 400px;
    }
    
    .wgds-mobile-note.alert-info {
        margin: -0.5rem -0.5rem 1rem -0.5rem;
        border-radius: 6px 6px 0 0;
        font-size: 0.85rem;
        padding: 0.6rem;
        border-top: none;
        border-right: none;
        border-left-width: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* Form Text Styling */
.form-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Icon Styling */
.fas {
    font-size: 0.9em;
}

/* Smooth Transitions */
.d-none {
    transition: opacity 0.3s ease;
}

/* Custom Scrollbar for Results */
#wgds-results-list::-webkit-scrollbar {
    width: 8px;
}

#wgds-results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#wgds-results-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#wgds-results-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus States for Accessibility */
#wgds-search-input:focus,
#wgds-search-btn:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .wgds-drug-search-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    #wgds-search-btn,
    .form-text {
        display: none;
    }
} 