/* Main styles for EVT3 */


html, body {
    height: 100%;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Dosis', sans-serif !important;
    margin: 0;
    min-height: 100dvh;
    background-color: #FEFDFB !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#app {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100%;
    overflow: hidden;
    background: inherit;
    user-select: none;
    overscroll-behavior-x: none;
}

#app input,
#app textarea,
#app [contenteditable="true"] {
    user-select: text;
}

.page {
    position: absolute;
    inset: 0;
    background: inherit;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    transform: none;
    z-index: 2;
}

.page.exit-left {
    transform: translateX(-30%);
    z-index: 1;
}

.page.exit-right {
    transform: translateX(100%);
    z-index: 2;
}

.page.enter-left {
    transform: translateX(-100%);
}

.page.enter-left.active {
    transform: none;
}

.page.back-under {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .page {
        transition-duration: 1ms;
    }
}

.global-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F9F6F1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 9999;
}
.global-loader.is-active {
    opacity: 1;
    pointer-events: all;
}
.global-loader__spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(110, 68, 37, 0.2);
    border-top-color: #6e4425;
    animation: global-loader-spin 0.9s linear infinite;
}
@keyframes global-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

:root {
    --press-overlay-color: rgba(61, 42, 39, 0.18);
    --press-bg-color: #E8D2BF;
    --btn-brown-light: #4E3116;
    --btn-brown-dark: #392415;
}

body.is-preload {
    opacity: 0;
}

body.is-ready {
    opacity: 1;
    transition: opacity 160ms ease;
}



.font-dosis {
    font-family: 'Dosis', sans-serif !important;
}

.bg-custom-login {
    background-color: var(--btn-brown-light);
}

.hover\:bg-custom-login-hover:hover {
    background-color: var(--btn-brown-dark);
}

.bg-custom-register {
    background-color: #bea187;
}

.hover\:bg-custom-register-hover:hover {
    background-color: #a88a6f;
}

/* Global button style (used by sidebar/login buttons) */
.btn-primary {
    background-color: var(--btn-brown-light) !important;
    color: white !important;
    font-weight: bold !important;
    border-radius: 0.375rem !important;
    transition: background-color 0.3s !important;
}
.btn-primary:hover {
    background-color: var(--btn-brown-dark) !important;
}

/* Global button style (used by sidebar/login buttons) */
.btn-primary {
    background-color: var(--btn-brown-light) !important;
    color: white !important;
    font-weight: bold !important;
    border-radius: 0.375rem !important;
    transition: background-color 0.3s !important;
}
.btn-primary:hover {
    background-color: var(--btn-brown-dark) !important;
}

.text-custom-link {
    color: #6e4425;
}

button.bg-\[\#6e4425\],
a.bg-\[\#6e4425\],
label.bg-\[\#6e4425\],
input[type="button"].bg-\[\#6e4425\],
input[type="submit"].bg-\[\#6e4425\],
input[type="reset"].bg-\[\#6e4425\],
[role="button"].bg-\[\#6e4425\] {
    background-color: var(--btn-brown-light) !important;
}

button.hover\:bg-\[\#503834\]:hover,
a.hover\:bg-\[\#503834\]:hover,
label.hover\:bg-\[\#503834\]:hover,
input[type="button"].hover\:bg-\[\#503834\]:hover,
input[type="submit"].hover\:bg-\[\#503834\]:hover,
input[type="reset"].hover\:bg-\[\#503834\]:hover,
[role="button"].hover\:bg-\[\#503834\]:hover {
    background-color: var(--btn-brown-dark) !important;
}

#sidebar {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: none;
}

#sidebar.translate-x-0 {
    transform: translateX(0);
    box-shadow: 5px 0 15px -3px rgba(0,0,0,0.1);
}

#sidebar.-translate-x-full {
    transform: translateX(-100%);
    box-shadow: none;
}

.sidebar-account-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1rem 1.2rem;
    margin-bottom: 0.75rem;
    background-color: #EDE4DA;
    border-radius: 14px;
    color: #6e4425;
    box-shadow: inset 0 0 0 1px rgba(110, 68, 37, 0.06);
}

.sidebar-account-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-account-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.1rem 0 0.4rem;
}

.sidebar-account-link {
    color: #6e4425;
    font-size: 0.95rem;
    text-decoration: none;
}

.sidebar-account-link:hover {
    text-decoration: underline;
}

.sidebar-account-btn {
    width: 80%;
    margin-top: 0.8rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 12px;
    white-space: nowrap;
    background-color: #4E3116;
}

.sidebar-account-btn:hover {
    background-color: #392415;
}

.sidebar-link {
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    transition: background-color 120ms ease;
    -webkit-tap-highlight-color: var(--press-bg-color);
}

.sidebar-link-icon {
    font-size: 20px;
    color: #6e4425;
}

.sidebar-link.is-pressed {
    background-color: var(--press-bg-color);
}

@media (hover: none) {
    .sidebar-link:active {
        background-color: var(--press-bg-color);
    }
}

.pressable {
    transition: background-color 120ms ease;
    -webkit-tap-highlight-color: var(--press-bg-color);
}

.pressable.is-pressed {
    background-color: var(--press-bg-color);
}

@media (hover: none) {
    .pressable:active {
        background-color: var(--press-bg-color);
    }
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.event-card,
.category-card,
.category-icon-wrap {
    transition: transform 80ms ease, filter 80ms ease, box-shadow 80ms ease;
}

@media (hover: none) {
    button:active,
    input[type="button"]:active,
    input[type="submit"]:active,
    input[type="reset"]:active,
    [role="button"]:active {
        box-shadow: inset 0 0 0 9999px var(--press-overlay-color);
        transform: scale(0.98);
    }

    .event-card:active,
    .category-card:active,
    .category-icon-wrap:active {
        box-shadow: 0 0 0 2px rgba(110, 68, 37, 0.12) inset;
        transform: scale(0.98);
    }
}
