
#app {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#providers div {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.back-button {
    background-color: #ddd;
}

.primary-button {
    background-color: #007bff;
    color: white;
}

/* Example CSS for buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}   

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.secondary-button {
    background-color: #e0e0e0;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: #d0d0d0;
}


/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}          

.loading-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.providers-section {
    margin: 20px 0;
}

.providers-history {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.providers-history h3 {
    margin-top: 0;
    color: #666;
    font-size: 1.1em;
}

.provider-result {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.history-item {
    border-left: 4px solid #007bff;
}

.client-result {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.client-result:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* Review Modal Specific Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.category-checkboxes {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.category-checkboxes label {
    display: block;
    margin-bottom: 5px;
}

.small-print {
    font-size: 0.8em;
    color: #666;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Rating Input Styling */
input[type="number"].rating-input {
    width: 80px;
    text-align: center;
}

/* Modal Button Group Specific */
#review-modal .button-group {
    justify-content: flex-end;
    margin-top: 20px;
}

#review-modal .modal-content {
    max-width: 500px;
    margin: 5% auto;
}


/* Provider Rating Display Styles */
.provider-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

.provider-rating::before {
    content: "★";
    color: #ffd700;
    font-size: 1.2em;
}

.review-count {
    font-size: 0.8em;
    color: #666;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 12px;
    margin-left: 5px;
}

/* Rating Button Styles */
.add-rating-button {
    background-color: #28a745;
    color: white;
}

.add-rating-button:hover {
    background-color: #218838;
}

/* Provider Result Card Enhancements */
.provider-result {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.provider-result:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Verification Badge Styles */
.verification-status {
    display: inline-flex;
    align-items: center;
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.verified-badge {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge::before {
    content: "✓";
    font-weight: bold;
}

.not-verified-badge {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.not-verified-badge::before {
    content: "⚠";
}

/* Button Group Adjustments */
.provider-result .button-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Rating Display Enhancement */
.provider-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 8px 0;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1000;
}

.transition-message {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.bio-container {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.bio-text {
    white-space: pre-wrap;
    margin-bottom: 5px;
}

.read-more-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.read-more-link:hover {
    text-decoration: underline;
}

#bio-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#full-bio-text {
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 15px 0;
}

/* Language Checkbox Container */
.provider-languages-create,
.provider-languages-search,
.edit-languages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    background-color: #f8f9fa;
}

/* Language Checkbox Labels */
.provider-languages-create label,
.provider-languages-search label,
.edit-languages label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.provider-languages-create label:hover,
.provider-languages-search label:hover,
.edit-languages label:hover {
    background-color: #e9ecef;
}

/* Language Checkboxes */
.provider-languages-checkbox,
.edit-languages-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Selected State */
.provider-languages-checkbox:checked + label,
.edit-languages-checkbox:checked + label {
    background-color: #e2e6ea;
    font-weight: 500;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 20px;
}

/* Language Section Header */
.form-group > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}
/*
.language-btn {
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.language-btn.selected {
    border-color: #007bff;
    background: #e7f1ff;
}
*/
.language-btn {
    cursor: pointer;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.language-btn.selected {
    background-color: #007bff;
    color: white;
}

#language-continue {
    margin-top: 20px;
}


/* Toast Styles - NOT USED YET */
.toast-success {
    background-color: green;
    color: white;
}

.toast-error {
    background-color: red;
    color: white;
}

.toast-warning {
    background-color: orange;
    color: white;
}
