/* Project styles â€” loaded after Bootstrap so these win */

:root {
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto,
                         "Helvetica Neue", Arial, sans-serif;
  --bs-body-line-height: 1.6;
}

/* Aligned digits for schedules and tables */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Control panel â€” sign in                                            */
/* ------------------------------------------------------------------ */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: radial-gradient(1100px 620px at 50% -12%,
                #1d4f96 0%, #123763 42%, #0a1c33 100%);
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    border-radius: 16px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgb(13 110 253 / .35);
}

.auth-foot {
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: .8rem;
    color: rgb(255 255 255 / .55);
}

/* ------------------------------------------------------------------ */
/* Template designer                                                  */
/* ------------------------------------------------------------------ */

.canvas-stage {
    background-color: #e9ecef;
    background-image:
        linear-gradient(45deg, #dee2e6 25%, transparent 25%),
        linear-gradient(-45deg, #dee2e6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dee2e6 75%),
        linear-gradient(-45deg, transparent 75%, #dee2e6 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 12px;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.canvas-stage .canvas-container {
    box-shadow: 0 4px 20px rgb(0 0 0 / .18);
}

.tpl-thumb {
    height: 150px;
    display: grid;
    place-items: center;
    background: var(--bs-tertiary-bg);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tpl-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#layerList {
    max-height: 320px;
    overflow-y: auto;
}
