/**
 * Dentist Search Results Styles
 */

/* Button Styles */
input[type="button"].button,
input[type="submit"].button,
a.smallButton,
button.button {
    background-color: #41a928;
    border: 0px;
    color: #fff;
    padding: 7px 20px;
    font: 99% arial, helvetica, clean, sans-serif;
    cursor: pointer;
    margin-right: 10px;
}

.dentist-search-results-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.dentist-results-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #67BB49;
    border-radius: 4px;
}

.dentist-results-summary p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.dentist-results-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dentist-results-table thead {
    background-color: #67BB49;
    color: white;
}

.dentist-results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #5aa635;
}

.dentist-results-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.dentist-results-table tbody tr:hover {
    background-color: #f9f9f9;
}

.dentist-results-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.dentist-results-table a {
    color: #0066cc;
    text-decoration: none;
}

.dentist-results-table a:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert p {
    margin: 0;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading state */
.loading-state {
    padding: 40px;
    text-align: center;
    color: #666;
}

.loading-state p {
    margin: 0;
    font-size: 16px;
}

.loading-state::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #67BB49;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Overlay Loading state (centered on page) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-overlay-content p {
    margin: 0;
    font-size: 18px;
    color: #333;
    margin-top: 15px;
}

.loading-overlay-content::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #67BB49;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .dentist-results-table {
        font-size: 12px;
    }

    .dentist-results-table th,
    .dentist-results-table td {
        padding: 8px;
    }

    .dentist-results-table th {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dentist-results-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
    }

    .dentist-results-table thead {
        display: none;
    }

    .dentist-results-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }

    .dentist-results-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .dentist-results-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        font-weight: bold;
        text-align: left;
    }
}
