/* Explain: Styles for the studio treatments management section, including photo catalogue. */
/* Therapist dashboard → Treatments editor. */

.dash-treatments {
    display: grid;
    gap: 0.85rem;
}

.dash-treatment-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface-color);
}

.dash-treatment-thumb {
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    border-radius: 0.7rem;
    object-fit: cover;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
}

.dash-treatment-info {
    flex: 1 1 auto;
    min-width: 0;
}

.dash-treatment-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.dash-treatment-badge {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--secondary-color);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-treatment-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-treatment-desc {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.dash-treatment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.dash-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.dash-field input:not([type="checkbox"]):not([type="radio"]),
.dash-field select,
.dash-field textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
}
.dash-field textarea {
    resize: vertical;
}

.dash-photo {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.25rem;
}

.dash-photo-preview {
    width: 6.5rem;
    height: 6.5rem;
    flex: 0 0 auto;
    border-radius: 0.7rem;
    object-fit: cover;
    background: var(--surface-alt);
    border: 1px dashed var(--border-color);
}

.dash-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 12rem;
    flex: 1 1 12rem;
}

.dash-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dash-file,
.dash-url-input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.dash-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.dash-library-wrap {
    margin-top: 1.25rem;
}

.dash-library-toggle {
    font-size: 0.85rem;
}

.dash-library {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface-alt);
}

.dash-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    max-height: 22rem;
    overflow-y: auto;
}
@media (min-width: 640px) {
    .dash-library-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dash-library-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.dash-library-item:hover {
    border-color: var(--primary-color);
}
.dash-library-item.is-on {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}
.dash-library-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.4rem;
    background: var(--surface-alt);
}
.dash-library-item span {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: var(--text-muted);
}