/* Staff Members Grid Styles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

.staff-group-header {
    color: #2c3e50;
    padding-bottom: 10px;
}

.staff-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.staff-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-details {
    padding: 20px;
}

.staff-details h3 {
    margin: 0 0 10px;
}

.position {
    font-size: 0.9em;
    margin: 0 0 10px;
}

.qualifications {
    font-size: 0.9em;
    margin: 0 0 5px;
}

.gdc-number {
    color: #7f8c8d;
    font-size: 0.85em;
    margin: 0;
}

/* Price List Styles */
.supabase-list {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
}

.list-title {
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

.list-item:last-child {
    border-bottom: none;
}

.treatment {
    color: #34495e;
    font-weight: 500;
}

.price {
    color: #27ae60;
    font-weight: 500;
}

/* Error Messages */
.error {
    color: #e74c3c;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
    margin: 10px 0;
}
.staff-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    height: auto;
    overflow-y: hidden;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal-top-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        height: 100%;
        overflow-y: scroll;
    }
    .modal-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-info {
        text-align: center;
    }
    
    .modal-profile {
        width: 100%;
        height: auto;
    }
}

.modal-profile {
    width: auto;
    min-height: 375px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-profile {
        width: 180px;
        height: 180px;
    }
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-name {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.modal-position {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #444;
}

.modal-qualifications {
    margin: 0 0 0.5rem;
    font-style: italic;
}

.modal-gdc {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.modal-bio {
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
}