/* The Laser Gallery — portal theme (3D Lifestyle-style layout, baby-pink brand) */
:root {
    --tlg-pink: #D94F87;
    --tlg-pink-dark: #B83268;
    --tlg-pink-soft: #FFF4F7;
    --tlg-sidebar: #D94F87;
    --tlg-sidebar-dark: #B03268;
    --tlg-sidebar-text: #FDE9F1;
    --tlg-body: #edf0f5;
    --tlg-card-border: #dfe4ec;
}

* { box-sizing: border-box; }

body.tlg {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--tlg-body);
    color: #2b3440;
    font-size: 14px;
}

.tlg-wrapper { display: flex; min-height: 100vh; }

/* ---------- Sidebar (baby-pink brand) ---------- */
.tlg-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: var(--tlg-sidebar);
    color: var(--tlg-sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.tlg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: var(--tlg-sidebar-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
}

.tlg-brand img { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; background: #fff; }

.tlg-nav { padding: 10px 0 20px; flex-grow: 1; }

.tlg-nav-section {
    padding: 14px 18px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .72);
}

.tlg-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: var(--tlg-sidebar-text);
    text-decoration: none;
    font-size: 13.5px;
    border-left: 3px solid transparent;
}

.tlg-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .14); }

.tlg-nav-link.active {
    color: var(--tlg-sidebar-dark);
    background: #fff;
    border-left-color: #fff;
    font-weight: 700;
}

.tlg-nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Main / topbar ---------- */
.tlg-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }

.tlg-topbar {
    background: #fff;
    border-bottom: 1px solid var(--tlg-card-border);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tlg-topbar .page-crumb { font-weight: 600; font-size: 15px; color: #2b3440; }

.tlg-content { padding: 20px 22px 40px; }

/* ---------- Cards ---------- */
.tlg-card {
    background: #fff;
    border: 1px solid var(--tlg-card-border);
    border-radius: 8px;
    margin-bottom: 18px;
}

.tlg-card-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--tlg-card-border);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tlg-card-body { padding: 18px; }

.tlg-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tlg-page-head h1 { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.tlg-page-head .sub { color: #6b7686; font-size: 13px; margin: 0; }

/* ---------- Stat cards ---------- */
.tlg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }

.tlg-stat {
    background: #fff;
    border: 1px solid var(--tlg-card-border);
    border-radius: 8px;
    padding: 14px 16px;
}

.tlg-stat .label { font-size: 12px; color: #6b7686; margin-bottom: 4px; }
.tlg-stat .value { font-size: 20px; font-weight: 700; color: #1f2733; }
.tlg-stat .value.pink { color: var(--tlg-pink); }

/* ---------- Tables (their LIST style) ---------- */
.tlg-table-wrap { overflow-x: auto; }

table.tlg-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }

.tlg-table thead th {
    background: #f6f8fb;
    font-weight: 600;
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid var(--tlg-card-border);
    white-space: nowrap;
}

.tlg-table tbody td { padding: 8px 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }

.tlg-table tbody tr:hover { background: #fafbfd; }

.tlg-table .filter-row th { background: #fff; padding: 6px 8px; }
.tlg-table .filter-row select, .tlg-table .filter-row input {
    width: 100%;
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid var(--tlg-card-border);
    border-radius: 5px;
    background: #fff;
}

/* ---------- Buttons ---------- */
.tlg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tlg-pink);
    color: #fff;
    border: 1px solid var(--tlg-pink);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tlg-btn:hover { background: var(--tlg-pink-dark); border-color: var(--tlg-pink-dark); color: #fff; }

.tlg-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #3a4452;
    border: 1px solid var(--tlg-card-border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tlg-btn-outline:hover { border-color: var(--tlg-pink); color: var(--tlg-pink); }

.tlg-btn-sm { padding: 5px 10px; font-size: 12.5px; }

/* ---------- Tabs (their Today/Yesterday pills) ---------- */
.tlg-tabs { display: inline-flex; gap: 4px; background: #f1f4f9; border-radius: 8px; padding: 3px; }

.tlg-tabs a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #5a6577;
    text-decoration: none;
}

.tlg-tabs a.active, .tlg-tabs a:hover { background: #fff; color: var(--tlg-pink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Forms ---------- */
.tlg-card .form-control, .tlg-card .form-select {
    font-size: 13.5px;
    border: 1px solid var(--tlg-card-border);
    border-radius: 6px;
}

.tlg-card .form-control:focus, .tlg-card .form-select:focus {
    border-color: var(--tlg-pink);
    box-shadow: 0 0 0 .15rem rgba(217, 79, 135, .15);
}

.form-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; }

/* ---------- Login ---------- */
.tlg-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D94F87 0%, #E86A97 55%, #F7A8C4 100%);
    padding: 20px;
}

.tlg-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 34px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.tlg-login-card h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--tlg-pink-dark); }
.tlg-login-card .sub { color: #6b7686; font-size: 13px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.tlg-footer {
    margin-top: auto;
    padding: 12px 22px;
    font-size: 12px;
    color: #8a94a6;
    border-top: 1px solid var(--tlg-card-border);
    background: #fff;
}

/* ---------- Legacy class aliases (old views keep working, same new look) ---------- */
.lg-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lg-page-head h1 { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.lg-page-head .lg-sub { color: #6b7686; font-size: 13px; margin: 0; }
.lg-card { background: #fff; border: 1px solid var(--tlg-card-border); border-radius: 8px; margin-bottom: 18px; }
.lg-card-header { padding: 12px 18px; border-bottom: 1px solid var(--tlg-card-border); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-card-body { padding: 18px; }
.lg-table-wrap { overflow-x: auto; }
table.lg-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.lg-table thead th { background: #f6f8fb; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--tlg-card-border); white-space: nowrap; }
.lg-table tbody td { padding: 8px 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.lg-table tbody tr:hover { background: #fafbfd; }
.btn-lg-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--tlg-pink); color: #fff; border: 1px solid var(--tlg-pink); border-radius: 6px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-lg-primary:hover { background: var(--tlg-pink-dark); border-color: var(--tlg-pink-dark); color: #fff; }
.btn-lg-outline { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #3a4452; border: 1px solid var(--tlg-card-border); border-radius: 6px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-lg-outline:hover { border-color: var(--tlg-pink); color: var(--tlg-pink); }
.lg-stat { background: #fff; border: 1px solid var(--tlg-card-border); border-radius: 8px; padding: 14px 16px; height: 100%; }
.lg-stat-label { font-size: 12px; color: #6b7686; margin-bottom: 4px; }
.lg-stat-value { font-size: 20px; font-weight: 700; color: #1f2733; }
.lg-stat-sub { font-size: 12px; color: #8a94a6; }
.lg-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.lg-badge--pink { background: #fce7ef; color: #B83268; }
.lg-badge--green { background: #e6f7ee; color: #1d7a4f; }
.lg-badge--grey { background: #eef1f6; color: #5a6577; }
.lg-badge--red { background: #fdecec; color: #c0392b; }
.lg-badge--yellow { background: #fef6e0; color: #9a6b00; }
.lg-badge--blue { background: #e8f1fd; color: #1d5fc2; }
.lg-badge--amber { background: #fef3e2; color: #b26a00; }

/* ---------- Responsive ---------- */
.tlg-menu-btn { display: none; }

@media (max-width: 900px) {
    .tlg-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    body.nav-open .tlg-sidebar { transform: none; }
    .tlg-menu-btn { display: inline-flex; }
    .tlg-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 150;
    }
    body.nav-open .tlg-backdrop { display: block; }
}

/* ---------- Responsive tables & small screens ---------- */
.tlg-card-body, .lg-card-body { overflow-x: auto; }
@media (max-width: 768px) {
    .tlg-content { padding: 12px 12px 32px; }
    .tlg-topbar { padding: 8px 12px; }
    .tlg-login-card { padding: 24px 20px; }
}

/* Table columns that hide as the screen gets smaller (opt-in per column) */
@media (max-width: 1200px) {
    .col-hide-lg { display: none !important; }
}
@media (max-width: 900px) {
    .col-hide-md { display: none !important; }
}
@media (max-width: 640px) {
    .col-hide-sm { display: none !important; }
}

/* Appointments list: keep readable widths, scroll sideways instead of squeezing */
table.appt-table { min-width: 880px; }
@media (max-width: 640px) {
    table.appt-table { min-width: 620px; font-size: 12.5px; }
    .appt-table thead th, .appt-table tbody td { padding: 7px 8px; }
    .tlg-page-head { flex-wrap: wrap; gap: 8px; }
}

/* ---------- Doctor cards ---------- */
.doctor-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.doctor-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(184, 50, 104, .12); }
.doctor-card-top { height: 6px; background: linear-gradient(90deg, #D94F87, #F8BBD0); }
.doctor-avatar {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #D94F87, #B83268);
    color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(184, 50, 104, .3);
}
.doctor-name { font-size: 16px; }
.doctor-days { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.day-pill {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.day-pill.on { background: #D94F87; color: #fff; }
.day-pill.off { background: #eef1f6; color: #a0a8b5; }
.doctor-hours { margin-left: 8px; font-size: 12.5px; color: #71616A; font-weight: 600; }
.doctor-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.meta-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; color: #71616A;
}
.meta-link { color: #B83268; text-decoration: none; font-weight: 600; width: fit-content; }
.meta-link:hover { text-decoration: underline; color: #D94F87; }

/* ---------- Doctor profile cards (v2) ---------- */
.doc-card {
    background: #fff;
    border: 1px solid #F3D9E4;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 10px rgba(184, 50, 104, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(184, 50, 104, .16); }
.doc-card-off { opacity: .75; }
.doc-card-banner {
    height: 52px;
    background: linear-gradient(135deg, #F8BBD0 0%, #D94F87 100%);
    position: relative;
}
.doc-status {
    position: absolute; top: 9px; right: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    padding: 4px 11px; border-radius: 999px;
    background: rgba(255,255,255,.92);
}
.doc-status.on { color: #1E7A46; }
.doc-status.off { color: #8a94a6; }
.doc-avatar-wrap { margin-top: -27px; position: relative; }
.doc-avatar {
    width: 56px; height: 56px; margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #E86A9B, #B83268);
    border: 3px solid #fff;
    color: #fff; font-weight: 700; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(184, 50, 104, .35);
}
.doc-body { padding: 8px 16px 16px; }
.doc-name { font-size: 16.5px; font-weight: 700; color: #30242B; margin-top: 4px; }
.doc-sub { font-size: 12px; color: #71616A; margin-top: 2px; }
.doc-days { display: flex; justify-content: center; gap: 5px; margin-top: 11px; flex-wrap: wrap; }
.doc-day {
    width: 25px; height: 25px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 700;
}
.doc-day.on { background: #D94F87; color: #fff; box-shadow: 0 2px 6px rgba(217, 79, 135, .4); }
.doc-day.off { background: #F1EDF0; color: #B9AEB4; }
.doc-hours { margin-top: 7px; font-size: 12px; font-weight: 600; color: #B83268; }
.doc-divider { height: 1px; background: linear-gradient(90deg, transparent, #F3D9E4, transparent); margin: 11px 0 9px; }
.doc-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #71616A; }
.doc-meta a { color: #B83268; font-weight: 600; text-decoration: none; }
.doc-meta a:hover { text-decoration: underline; }
.doc-btn {
    display: block; margin-top: 12px;
    padding: 8px 12px; border-radius: 9px;
    background: #FFF0F5; color: #B83268;
    border: 1.5px solid #F3C6D8;
    font-weight: 600; font-size: 13px; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.doc-btn:hover { background: #D94F87; color: #fff; border-color: #D94F87; }

/* ---------- Package cards ---------- */
.pkg-card {
    background: #fff;
    border: 1px solid #F3D9E4;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(184, 50, 104, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(184, 50, 104, .16); }
.pkg-card-off { opacity: .75; }
.pkg-strip { height: 7px; background: linear-gradient(90deg, #D94F87, #F8BBD0); flex-shrink: 0; }
.pkg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pkg-name { font-size: 15.5px; font-weight: 700; color: #30242B; line-height: 1.3; }
.pkg-code { font-size: 11.5px; color: #A08B96; font-weight: 600; letter-spacing: .4px; margin-top: 2px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pkg-price { font-size: 21px; font-weight: 800; color: #B83268; }
.pkg-was { font-size: 13px; color: #A08B96; text-decoration: line-through; }
.pkg-off { font-size: 10.5px; font-weight: 700; color: #1E7A46; background: #E6F7EE; padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; }
.pkg-services { list-style: none; padding: 0; margin: 12px 0 0; flex: 1; }
.pkg-services li {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    font-size: 12.5px; color: #4A3A42;
    padding: 6px 0; border-bottom: 1px dashed #F6E3EC;
}
.pkg-services li:last-child { border-bottom: none; }
.svc-name { min-width: 0; }
.svc-sessions { font-weight: 700; color: #B83268; background: #FFF0F5; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; flex-shrink: 0; }
.pkg-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #F6E3EC; }
.pkg-valid { font-size: 12px; color: #71616A; font-weight: 600; }
.pkg-edit {
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    color: #B83268; background: #FFF0F5; border: 1.5px solid #F3C6D8;
    padding: 5px 14px; border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.pkg-edit:hover { background: #D94F87; color: #fff; border-color: #D94F87; }
