html {
    font-size: 16px;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.minbtnwidth {
    min-width: 30px;
}

select option.done {
    color: green;
}

select option.notdone {
    color: red;
}

select option.maths {
    color: #6f42c1;
    background-color: #4dd4ac;
}

.text-bg-purple {
    color: #fff;
    background-color: #6f42c1;
}

@font-face {
    font-family: sigFont;
    src: url("/static/ws.ttf");
}


.bg-pink-400 {
    background-color: #de5c9d;
}

.bg-pink-400:hover {
    background-color: #d63384;
}


.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: var(--bs-danger);
}

.dot-green {
    background-color: var(--bs-success);
}
.dot-grey {
    background-color: var(--bs-secondary);
    opacity: 0.3;
}

.markdownwrapper {
    width: 700px;
    padding: 5px;
    border: 1px solid #eeeeee;
    overflow-wrap: break-word;
    word-wrap: break-word;
}


.hover-border {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 3px;
    transition: border-color 0.3s ease;
    text-align: center;
}

.hover-border:hover {
    border-color: var(--bs-warning);
}

@view-transition {
    navigation: auto;
}

/* Smooth ease-in-out for enter/exit on all pages */
::view-transition-old(root),
::view-transition-new(root) {
    animation-timing-function: ease-in-out;
    animation-duration: 0.35s; /* Slightly longer feels smoother with ease-in-out */
}

/* Optional: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.001s;
        animation-timing-function: step-end;
    }
}

.tiny{
    font-family: "Poppins", sans-serif;
    font-size: 0.8em;
}

.btn-xs {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.btn-xs.btn-primary,
.btn-xs.btn-secondary,
.btn-xs.btn-success,
.btn-xs.btn-danger,
.btn-xs.btn-warning,
.btn-xs.btn-info,
.btn-xs.btn-light,
.btn-xs.btn-dark {
    min-height: 1.5rem;
}

.btn-xs .bi,
.btn-xs .fas,
.btn-xs .far {
    font-size: 0.65rem;
}


.table-success-done {
    --bs-table-color: #000;
    --bs-table-bg: #f6fff6;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    background-color: var(--bs-table-bg);
    border-color:var(--bs-table-border-color)
}

.table-success-partial {
    --bs-table-color: #000;
    --bs-table-bg: #fff6f6;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    background-color: var(--bs-table-bg);
    border-color:var(--bs-table-border-color)
}

.table-success-notdone {
    --bs-table-color: #000;
    --bs-table-bg: #f8ecec;
    --bs-table-border-color: #bcd0c7;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    background-color: var(--bs-table-bg);
    border-color:var(--bs-table-border-color)
}

.smallBadge {
    font-size: 0.9em;
    padding: 0.0em;
    margin-right: 0.0em;
}

.smalltitle {
    font-size: 1.5em;
    font-weight: bold;
}

#sig-canvas {
    border: 2px dotted var(--bs-border-color);
    border-radius: 5px;
    cursor: crosshair;
}

.fademe {
    opacity: 0;
    animation: fademe 15s ;
    animation-timing-function: ease-in;
}

.slidein {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    transition: all 0.5s ease;
}

.slidein.htmx-added {
    opacity: 0;
    transform: translateX(10%) rotate(0deg);
    transition: opacity 0.2s ease-out;
}

.circular img {
    border-radius:100%;
    border: 5px solid var(--bs-body-bg);
}


.autoExpand {
    transition: height 0.2s ease-in-out;
}

.autoExpand:focus {
    height: 400px !important;
}


@keyframes fademe {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.deliveryPlan {
    font-family: "Poppins", sans-serif;
}


@font-face {
    font-family: 'Gordita Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Regular'), url('/static/fonts/Gordita Regular.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Regular Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Regular Italic'), url('/static/fonts/Gordita Regular Italic.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Thin';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Thin'), url('/static/fonts/Gordita Thin.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Thin Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Thin Italic'), url('/static/fonts/Gordita Thin Italic.woff') format('woff');
}


@font-face {
    font-family: '/static/fonts/Gordita Light';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Light'), url('/static/fonts/Gordita Light.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Light Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Light Italic'), url('/static/fonts/Gordita Light Italic.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Medium';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Medium'), url('/static/fonts/Gordita Medium.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Medium Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Medium Italic'), url('/static/fonts/Gordita Medium Italic.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Bold'), url('/static/fonts/Gordita Bold.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Bold Italic'), url('/static/fonts/Gordita Bold Italic.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Black';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Black'), url('/static/fonts/Gordita Black.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Black Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Black Italic'), url('Gordita Black Italic.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Ultra';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Ultra'), url('Gordita Ultra.woff') format('woff');
}


@font-face {
    font-family: 'Gordita Ultra Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Ultra Italic'), url('Gordita Ultra Italic.woff') format('woff');
}

.list-group {
    width: 100%;
    max-width: 460px;
    margin-inline: 1.5rem;
}

.form-check-input:checked + .form-checked-content {
    opacity: .5;
}

.form-check-input-placeholder {
    border-style: dashed;
}
[contenteditable]:focus {
    outline: 0;
}

.list-group-checkable .list-group-item {
    cursor: pointer;
}
.list-group-item-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}
.list-group-item-check:hover + .list-group-item {
    background-color: var(--bs-secondary-bg);
}
.list-group-item-check:checked + .list-group-item {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.list-group-item-check[disabled] + .list-group-item,
.list-group-item-check:disabled + .list-group-item {
    pointer-events: none;
    filter: none;
    opacity: .5;
}

.list-group-radio .list-group-item {
    cursor: pointer;
    border-radius: .5rem;
}
.list-group-radio .form-check-input {
    z-index: 2;
    margin-top: -.5em;
}
.list-group-radio .list-group-item:hover,
.list-group-radio .list-group-item:focus {
    background-color: var(--bs-secondary-bg);
}

.list-group-radio .form-check-input:checked + .list-group-item {
    background-color: var(--bs-body);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px var(--bs-primary);
}
.list-group-radio .form-check-input[disabled] + .list-group-item,
.list-group-radio .form-check-input:disabled + .list-group-item {
    pointer-events: none;
    filter: none;
    opacity: .5;
}


.htmx-indicator{
    opacity:0;
    transition: opacity 1000ms ease-in;
}
.htmx-request .htmx-indicator{
    opacity:1;
}
.htmx-request.htmx-indicator{
    opacity:1;
}

details.accordion-item:not([open]) .accordion-button {
    background-color: var(--bs-accordion-bg);
}

details.accordion-item:not([open]) .accordion-button::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: unset;
}

details.accordion-item[open] .accordion-button::after {
    background-image: var(--bs-accordion-btn-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}

 .rotate-text {
     transform: rotate(-90deg);

     font-size: 0.9em;
     text-wrap: nowrap;
 }


.css-tree,
.css-tree ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.css-tree li {
    line-height: 1.8;
    position: relative;
}

/* hide checkbox */
.css-tree input {
    position: absolute;
    opacity: 0;
}

/* label styling */
.css-tree label {
    cursor: pointer;
    user-select: none;
}

/* child nodes hidden by default */
.css-tree input ~ ul {
    display: none;
    margin-left: 1.25rem;
}

/* show children */
.css-tree input:checked ~ ul {
    display: block;
}

/* chevron animation */
.tree-chevron {
    transition: transform 0.2s ease;
}

/* rotate chevron when open */
.css-tree input:checked + label .tree-chevron {
    transform: rotate(90deg);
}

/* hover polish */
.css-tree label:hover {
    text-decoration: none;
}

.offcanvas.offcanvas-top {
    height: 40vh;
}


.user-box {
    display: inline-flex;
    flex-direction: column;
    gap: .25rem;
    padding: .5rem .75rem;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    font-size: .875rem;
    min-width: 220px;
}

.user-main {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.user-counter {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

/* Flagged state */
.user-box.flagged {
    border-left: .25rem solid var(--bs-danger);
    background-color: var(--bs-warning-bg-subtle);
}


tr.border-off > td,
tr.border-off > th {
    border-left: 1px solid var(--bs-body-bg);
    border-right: 1px solid var(--bs-body-bg);
    height: 50px;
}

