/* Frontend Styles */
.accreditation-verifier-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.search-box {
    background: #1E213F;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#search_query {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: #2B2F52;
    color: #fff;
    margin-bottom: 0.5rem;
}

#search_query::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#search_query.invalid {
    border-color: #ff4444;
}

.validation-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.search-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: #fff;
    background: #008DD2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover:not(:disabled) {
    background: #006699;
}

.search-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-card h3 {
    margin: 0 0 1rem;
    color: #1E213F;
    font-size: 1.25rem;
}

.result-details {
    margin-bottom: 1rem;
}

.result-details p {
    margin: 0.5rem 0;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-badge.status-expired {
    background: #fbe9e7;
    color: #d32f2f;
}

.status-badge.status-suspended {
    background: #fff3e0;
    color: #f57c00;
}

.view-details-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #008DD2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover {
    background: #006699;
    text-decoration: none;
    color: #fff;
}

/* Loading and Messages */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
}

/* Animations */
.search-step, .results-step {
    transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-box {
        padding: 1.5rem;
    }
    
    .search-form-title {
        font-size: 1.25rem;
    }
}

/* Added styles for search bar in provider-view template */
.accreditation-search-bar-container {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.accreditation-search-bar-container .search-box {
    background: #1E213F;
    border-radius: 8px;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.accreditation-search-bar-container .search-form-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.accreditation-search-bar-container #search_query {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: #2B2F52;
    color: #fff;
    margin-bottom: 0.5rem;
}

.accreditation-search-bar-container #search_query::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.accreditation-search-bar-container #search_query.invalid {
    border-color: #ff4444;
}