/* Complements landing.css: only what the public landing page is missing,
   for the cabinet UI components (tables, calendar, modals, badges, etc.). */

body {
    background-color: #f6f8f7;
}

/* ---------- kit layout ---------- */
.kit-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.75rem 0;
}

.kit-header p {
    color: #cfe3df;
}

.kit-nav {
    position: sticky;
    top: 1rem;
}

.kit-nav .nav-link {
    color: var(--color-primary);
    border-radius: .5rem;
    padding: .4rem .75rem;
    font-size: .9rem;
}

.kit-nav .nav-link.active {
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

.kit-section {
    scroll-margin-top: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e6ece9;
}

.kit-section:last-child {
    border-bottom: none;
}

.kit-section h2 {
    font-size: 1.35rem;
}

.kit-swatch {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    align-items: center;
}

.kit-card {
    background: #fff;
    border: 1px solid #e6ece9;
    border-radius: .75rem;
    padding: 1.25rem;
}

/* ---------- forms ---------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .2);
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .2);
}

.dropzone {
    border: 2px dashed #ced9d6;
    border-radius: .75rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #5f7d78;
    background: #f9fbfa;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--color-accent);
    background: #f0f8f7;
}

/* ---------- icon buttons (Font Awesome icons from the mockups) ---------- */
.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    border: 1px solid #d7e3e0;
    background: #fff;
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1;
}

.btn-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-icon-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* ---------- badges / status pills ---------- */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}

.badge-soft::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
}

.badge-soft-pending {
    background: #e7edfc;
    color: #2f4dab;
}

.badge-soft-confirmed {
    background: #e2f3f0;
    color: #1a7a6b;
}

.badge-soft-warning {
    background: #fef3d9;
    color: #9a6300;
}

.badge-soft-danger {
    background: #fde2e4;
    color: #b3222f;
}

.badge-soft-neutral {
    background: #eef2f1;
    color: #4b615c;
}

/* ---------- table ---------- */
.kit-table thead th {
    background-color: #f3f7f6;
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.kit-table tbody tr:hover {
    background-color: #f7faf9;
}

.kit-table td, .kit-table th {
    vertical-align: middle;
}

/* ---------- pagination ---------- */
.pagination .page-link {
    color: var(--color-primary);
    border-color: #e0e8e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.pagination .page-link:hover {
    color: var(--color-accent-hover);
}

/* ---------- tabs ---------- */
.nav-tabs .nav-link {
    color: #5f7d78;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
    background: none;
    font-weight: 600;
}

/* ---------- accordion ---------- */
.accordion-button:not(.collapsed) {
    background-color: #eef6f5;
    color: var(--color-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .2);
}

/* ---------- progress ---------- */
.progress-bar-brand {
    background-color: var(--color-accent);
}

/* ---------- avatar ---------- */
.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d9e3e1;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-photo {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: .75rem;
    background: #d9e3e1;
    color: var(--color-primary);
    font-weight: 500;
}

.clinic-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-editable {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.avatar-editable::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .15s;
}

.avatar-editable:hover::before,
.avatar-editable:focus-visible::before {
    opacity: 1;
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar-placeholder {
    width: 40px;
    height: 40px;
    margin-left: -.6rem;
    border: 2px solid #fff;
}

.avatar-group .avatar-placeholder:first-child {
    margin-left: 0;
}

/* ---------- empty state ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #5f7d78;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

/* ---------- calendar (schedule-x) theming to match the brand ---------- */
.sx-wrapper {
    height: 560px;
    max-height: 70vh;
    --sx-color-primary-container: var(--color-accent);
}

.legend-dot {
    width: .7rem;
    height: .7rem;
    border-radius: .2rem;
    display: inline-block;
}

/* ---------- toast ---------- */
.toast-brand {
    border-left: 4px solid var(--color-accent);
}

.post-cover-edit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: .75rem;
    background: #d9e3e1;
    color: var(--color-primary);
    font-weight: 500;
}

.post-cover-edit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal .modal-dialog {
    max-width: 820px;
}

.post-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 44px;
    border-radius: .375rem;
    object-fit: cover;
    background: #d9e3e1;
    color: var(--color-primary);
}

.book-price {
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #eef5f3;
}

.book-price:empty {
    display: none;
}

.patient-info-list {
    display: grid;
    grid-template-columns: minmax(140px, max-content) 1fr;
    gap: .5rem 1rem;
}

.patient-info-list dt {
    font-weight: 400;
    color: #6c757d;
}

.patient-info-list dd {
    margin: 0;
    word-break: break-word;
}

.appointment-patient-comment {
    padding: .6rem .8rem;
    border-radius: .5rem;
    background: #f3f7f6;
}

.appointment-patient-comment-text {
    white-space: pre-line;
    word-break: break-word;
}

.case-description {
    white-space: pre-line;
    max-width: 420px;
}

.min-w-0 {
    min-width: 0;
}
