/* Core --------------------------------------------------- */
@font-face {
    font-family: "Funnel Display";
    src: url("./FunnelDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: 300 800;
    font-style: normal;
}

:root {
    --primary-accent: #F2AE3F;
    --highlight-color: #f9f6f3;
    --ply-select-color: #c1e5c2;
    --select-color: #F2EEE8;
    --select-color-2: #F2EEE8;
    --select-color-3: #F2EEE8;
    --select-color-4: #F2EEE8;
    --select-and-highlight-color: #F2EEE8;
    --ply-highlight-color: #F2EEE8;
}

body {
    font-size: 0.9rem;
    background-color: #fcf8f4 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Funnel Display", sans-serif !important;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.text-hidden {
    color: transparent !important;
    text-shadow: none !important;
    /* background-color: #b5aeae !important; */
}

.border-outline {
    border: 1px solid #9bc3ff;
}

.dropdown {
    cursor: pointer;
}

.wrap-text {
    width: 100%;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

dd {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

pre {
    margin: 0;
}

a {
    cursor: pointer;
}

.scroll-col {
    height: 100vh;
    overflow-y: auto;
}

input.form-control {
    font-size: 0.9rem;
}

/* Ensure textareas use the default font and size */
textarea {
    font-family: inherit;
    font-size: inherit;
}


/*
I'm not sure why I had previously added the sticky-col for the previewers
but it ended up causing a problem that the dropdown menu popup would
sort under them even when they had high z-index. I took it out to fix
that problem but might cause another one so leaving it commented here.
.sticky-col {
    position: sticky;
    top: 0;
    z-index: 10;
}
*/

.hide-on-empty:empty {
    display: none !important;
}

.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.5); /* Gray with opacity */
    backdrop-filter: blur(2px); /* Slight blur effect */
    z-index: 10; /* Ensure it’s above other content */
}

#zig .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-bottom: 0.1rem
}

#zig .form-check-input:checked {
    background-color: #F2AE3F;
    border-color: #F2AE3F;
}

.dev-only {
    background-color: #d6c8ff;
}

.flex-no-wrap {
    flex-wrap: nowrap !important;
}

.flex-allow-shrink {
    flex: 1 1 0;
}

/* Icons --------------------------------------------------- */

@font-face {
    font-family: "Icons";
    src: url("./MaterialSymbolsSharp-VariableFont_FILL,GRAD,opsz,wght.ttf") format("truetype");
    font-style: normal;
}

.z-toggle-icon :not(.checked) {
    color: rgb(192, 192, 192);
    opacity: 0.6;
}

.z-toggle-icon .checked {
    color: rgb(83, 83, 83);
}

.material-symbols-outlined {
    font-family: "Icons";
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1.3rem;
    color: #969595;
    transition: all 0.2s ease;
}

.material-symbols-outlined:not(button):not(button *):hover {
    color: #F2AE3F;
    font-weight: 600;
}

button.material-symbols-outlined {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

button .material-symbols-outlined {
    font-size: 1.2rem;
    vertical-align: middle;
    line-height: 1;
    color: black;
    padding-right: 0.4rem;
}

.btn-sm .material-symbols-outlined {
    font-size: 1.0rem;
    vertical-align: middle;
    line-height: 1;
    color: black;
    padding-right: 0.4rem;
}

.nav-link .material-symbols-outlined {
    font-size: 1.2rem;
    vertical-align: middle;
    line-height: 1;
    color: black;
    padding-right: 0.4rem;
    cursor: pointer;
}

span.keybinding {
    border-bottom: 2px solid #adb5bd;
    font-family: monospace;
    font-weight: 600;
}

.material-symbols-outlined.spinning-icon {
    animation: spin 1s linear infinite;
    transition: none;
    display: inline-block;
    transform-origin: 35%;
}

/* Fields & Forms --------------------------------------------------- */

.z-twiddler-container {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.z-twiddler-container.dragging input {
    background-color: #f8ffc8;
}

.z-twiddler-container .z-twiddler-handle {
    border: var(--bs-border-width) solid #ddd;
    /* border-color: #777; */
    background-color: white;
    border-radius: var(--bs-border-radius);
    width: 0.5rem;
    padding: 0.375rem 0.85rem 0.375rem 0.3rem;
}

/* .z-form .row:not(:last-child) {
    margin-bottom: 1.5rem;
} */

.z-form .row {
    margin-bottom: 1.5rem;
}

.z-form-separator {
    border-bottom: 1px solid #777;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.z-form-separator label {
    font-size: 110%;
}

.z-form label {
    padding-top: 0.4rem;
    font-weight: bold;
    text-align: right;
}

.z-form input {
    font-family: monospace;
    /* border-color: #777 !important; */
}

.z-form .z-form-help {
    font-size: 0.8rem;
    color: #666;
}

.z-form-no-help .z-form .z-form-help {
    display: none;
}

.z-form button {
    min-height: 2.5rem;
    border-radius: 5px !important;
    border: 1px solid #00000050 !important;
}

.z-form .z-field button:not(:disabled) {
    background-color: white !important;
    border-radius: var(--bs-border-radius) !important
}

.z-form button:hover {
    color: black !important;
}

.z-form .form-check-input {
    width: 3.0rem !important;
    height: 1.5rem !important;
    margin-bottom: 0.1rem !important;
    min-height: 0.1rem !important
}


.z-form .z-width-auto {
    width: auto !important;
    display: inline-block; /* necessary if you want it to shrink to fit content */
}

.z-form-compact label {
    min-height: 2.0rem !important;
    font-size: 90%;
    text-align: right !important;
}

.z-form-compact .z-field {
    font-size: 90%;
}

.z-form-compact input {
    min-height: 2.0rem !important;
    font-size: 95%;
}

.z-form-compact.z-form .row {
    margin-bottom: 0.3rem !important;
}

.z-form-compact.z-form .form-check {
    margin-top: 0.4rem;
}

.z-form-compact button {
    min-height: 2.0rem !important;
    border-radius: 5px !important;
    border: 1px solid #ddd !important;
    font-size: 0.8rem !important;
}

.z-form-compact .form-check-input {
    width: 2.5rem !important;
    height: 1.3rem !important;
    margin-bottom: 0.1rem !important;
    min-height: 0.1rem !important
}

/* Buttons --------------------------------------------------- */

.btn {
    border-radius: 1rem;
    border-width: 1px;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.9rem;
    gap: 6px;
    border: 1px solid #0000001A;
    color: black;
    /* background: var(--App-Sand-2, #F2EEE8); */
}

.btn.no-focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn.no-focus:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-crop-right {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.btn:hover {
    background-color: #F2AE3F !important;
    color: white !important;
}

.btn.btn-primary {
    color: black;
    background: #F2AE3F;
}

.btn.btn-outline-primary {
    border: 1px solid #0000001A;
    color: black;
}

.btn.btn-secondary {
    border: 1px solid #0000001A;
    color: white;
    background: black;
}

.btn.btn-outline-secondary {
    border: 1px solid #ddd;
    color: black;
    /* background: rgba(100, 100, 100, 0.8) */
}

.btn.btn-outline-secondary.active {
    /* border: 1px solid black; */
    /* color: black; */
    background: var(--select-color);
}

button:disabled,
.btn:disabled,
.btn-group .btn:disabled,
input:disabled {
    color: black !important;
    /* border-color: #ccc !important; */
    background-color: #dad9d9 !important;

}

/* .btn.disabled,
.btn-group .btn.disabled {
    color: gray !important;
    border-color: #ccc !important;
} */

.btn-sm {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

/*
Bootstrap defines :focus-visible attributes for buttons
which are only visible when the user uses the Tab key to navigate.
I want dialog boxes with default buttons to show their default status
so I need to overload here to add a box-shadow. Unfortunately, this
is a single color whereas BS5 has a color per button type such as danger, etc.
but this is good enough to make the point that you can press Enter.
*/
.btn:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}



