﻿body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex; 
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1505;
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

.dx-card.wide-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content {
    height: 100%;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content > .dx-scrollview-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body .menu-container {
    height: 100%;
    width: 250px;
    background-color: #fff;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
    margin: 20px 40px;
}

.layout-body .content h2 {
    font-size: 32px;
    line-height: 40px;
}

.layout-body .content-block {
    margin: 0 0 20px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
    margin: 0 40px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

.layout-body-hidden {
    visibility: hidden;
}

#layout-drawer.dx-drawer-shrink .dx-drawer-panel-content {
    box-shadow: rgba(0, 0, 0, 0.06) 0px 4px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 2px 0px;
}

@media screen and (max-width: 600px) {
    .layout-body .content {
        margin: 20px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
    line-height: 24px;
}

.menu-container .dx-treeview {
    white-space: nowrap;
}

.menu-container .dx-treeview .dx-treeview-item {
    padding-left: 0;
    flex-direction: row-reverse;
    border-radius: 0;
}

.menu-container .dx-treeview .dx-treeview-item .dx-icon {
    width: 60px !important;
    margin: 0 !important;
}

.menu-container .dx-treeview .dx-treeview-node {
    padding: 0 0 !important;
}

.menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
    right: 10px;
    left: auto;
}

.menu-container .dx-treeview .dx-rtl .dx-treeview-toggle-item-visibility {
    left: 10px;
    right: auto;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="1"] {
    font-weight: bold;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    font-weight: normal;
    padding: 0 60px;
}


/* Banner de cabecera a ancho completo usando tu wide-card */
.hero-banner.dx-card.wide-card {
    position: relative;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
    border-right: 0;
    /* Altura del banner (ajústala a tu gusto) */
    min-height: clamp(220px, 35vh, 420px);
    overflow: hidden;
    background: #0b1f3a; /* color base por si la imagen tarda en cargar */
}

/* Imagen como background del banner */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/ski-trails.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* ocupa todo el ancho conservando proporciones */
    z-index: 0;
}

/* Capa de degradado para mejorar contraste de textos sobre la imagen */
.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.20) 35%, rgba(0,0,0,0.10) 100% );
    z-index: 1;
}

/* Contenido del banner */
.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px;
    color: #fff;
}

.hero-banner .hero-title {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: .2px;
}

.hero-banner .hero-subtitle {
    margin: 10px 0 0;
    font-size: clamp(14px, 1.6vw, 18px);
    opacity: .95;
}

/* Opcional: que el contenido principal empiece un poco más pegado tras el banner */
.landing-after-hero {
    margin-top: 16px;
}

html[data-i18n="loading"] body {
    visibility: hidden;
}

html[data-i18n="ready"] body {
    visibility: visible;
}



/* Tarjetas del dashboard */
.stat-card {
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.stat-card-inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-card-icon {
    font-size: 32px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.stat-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.stat-card-value {
    margin: 4px 0 0 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

/* Modo oscuro */
body.dark-mode .stat-card {
    background-color: #2a2a2a;
    color: #e6e6e6;
    box-shadow: 0 2px 6px rgba(255,255,255,0.1);
}

    body.dark-mode .stat-card:hover {
        box-shadow: 0 6px 14px rgba(255,255,255,0.18);
    }

