/* static/app/ui_lab/base_layout.css */

html,body{
margin:0;
height:100%;
background:#e7e3da;
font-family: "Inter", sans-serif;
}

h1,h2,h3{
font-family:"Raleway",sans-serif;
}


/* titulos workspace */

#resultado{
    min-height:120px;
}

.accion h2,
.resultado h2{
font-size:14px;
letter-spacing:1px;
color:#375e65;
}

/* APP */

.app{
display:flex;
height:100dvh;
overflow:hidden;
}


/* SIDEBAR */

.sidebar{
    width:260px;
    background: rgba(55,94,101,0.94);
    backdrop-filter: blur(2px);
    border-right:1px solid #2c4a50;

    display:flex;
    flex-direction:column;

    padding:20px 0;

    overflow-y:auto; /* 👈 aquí */
}

/* =========================================
   SIDEBAR · SCROLLBAR
========================================= */

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-track{
    background:transparent;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#6f8589;
    border-radius:4px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
    background:#8a9da1;
}



.sidebar-logo{
    padding:10px 0 12px 0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.sidebar-logo img{
height:40px;
width:auto;
display:block;
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar .menu .menu-divider {
    margin: 22px 0 8px 0;
    padding-left: 18px;

    font-family: "Raleway", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;

    color: rgba(255,255,255,0.62);

    text-transform: uppercase;
}

/* BASE */
.sidebar .menu a {
    display: block;

    padding: 4px 12px 4px 18px; /* ← padding uniforme */
    margin: 1px 8px;            /* ← margen lateral fijo */

    border-radius: 6px;

    text-decoration: none;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.35;

    transition: background 0.15s ease;
}

/* HOVER (suave, limpio) */
.sidebar .menu a:hover {
    background: rgba(255,255,255,0.08);
}

/* ACTIVO */
.sidebar .menu a.activo {
    background: rgba(255,255,255,0.14);
    font-weight: 500;
    color: #ffffff;
}

/* HOVER SOBRE ACTIVO (no cambia) */
.sidebar .menu a.activo:hover {
    background: rgba(255,255,255,0.16);
}

.sidebar .menu a.activo {
    position: relative;
}

.sidebar .menu a.activo::before {
    content: "";
    position: absolute;

    left: -8px;
    top: 50%;
    transform: translateY(-50%);

    width: 3px;
    height: 18px;

    background: #c48a38;
    border-radius: 3px;

    box-shadow: 0 0 6px rgba(196,138,56,0.25);
}

/* MENU */

.menu{
flex:1;
padding:20px;
}


/* USER */

.user{
margin-top:auto;
padding:16px 20px 20px 20px;
border-top:1px solid rgba(255,255,255,0.2);
font-size:13.5px;
color:white;
}


/* MAIN */

.main{
flex:1;
display:flex;
flex-direction:column;
}


/* TOPBAR */

.topbar{
height:56px;
border-bottom:1px solid #375e65;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 24px;
}


/* TABS */

.tabs a{
margin-right:28px;
color:#375e65;
cursor:pointer;
font-size:14px;
}

/* =========================
   TAB ACTIVO (BLOQUEO CLICK)
========================= */

.tabs a.activo{
    pointer-events:none;
    cursor:default;
    opacity:0.7;
}

/* LOGO */

.logo{
height:50px;
}

/* CONTENEDOR UNIVERSAL DE VISTAS */

.view-container{
    flex:1;
    overflow-y:auto;          /* ✅ scroll global unificado */
    overflow-x:hidden;
    padding:2px 20px 32px 32px;  /* 👈 ajustamos derecha */
    box-sizing:border-box;
}


/* =========================
   AVISOS APP
========================= */

.aviso{
    font-family:"Inter", sans-serif;
    font-size:12.5px;
    line-height:1.4;
    margin-top:8px;
}

:root{
    --color-error: #92180b;
    --color-info: #6b7c7d;
    --color-ok: #2f7a65;
}

.aviso.error{
    color: var(--color-error);
}

.aviso.info{
    color: var(--color-info);
}

.aviso.ok{
    color: var(--color-ok);
}


/* =========================
   MODAL GLOBAL
========================= */

.modal-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:10000;
}

.modal-box{
    background:#f6f3ed;
    border:1px solid #d0c8bb;
    border-radius:16px;

    padding:24px 28px;

    max-width:420px;
    width:85%;

    text-align:center;

    font-family:"Inter", sans-serif;
    font-size:14px;
    color:#2c3c3d;

    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

.modal-box button{
    margin-top:16px;

    background:#92180b;
    color:white;
    border:none;

    padding:8px 16px;
    border-radius:6px;

    font-family:"Inter", sans-serif;
    font-size:13px;
    font-weight:500;

    cursor:pointer;
    transition:all 0.15s ease;
}

.modal-box button:hover{
    background:#7a1409;
}

.modal-box button:active{
    transform:scale(0.97);
}

.modal-box p{
    margin:0;
    line-height:1.5;
}


/* =========================================
   CHANGELOG
========================================= */

#abrir-changelog{

    display:flex !important;

    align-items:center;
    justify-content:space-between;

    gap:8px;
}


.changelog-texto{

    display:flex;
    align-items:center;

    gap:8px;
}


.icono-changelog{

    font-size:13px;

    color:#c48a38;

    display:flex;
    align-items:center;
}


/* BADGE */

.badge-changelog{

    width:10px;
    height:10px;

    border-radius:50%;

    background:#c48a38;

    box-shadow:
    0 0 8px rgba(196,138,56,0.45);

    flex-shrink:0;

    margin-right:2px;
}

.badge-changelog.oculto{
    display:none;
}


/* =========================================
   MODAL CHANGELOG
========================================= */

.changelog-overlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.48);
    backdrop-filter:blur(3px);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:12000;

    animation:fadeChangelog .18s ease;
}

@keyframes fadeChangelog{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}


.changelog-modal{

    width:min(520px,90%);

    background:#f6f3ed;

    border:
    1px solid #d7d0c5;

    border-radius:18px;

    padding:
    28px
    28px
    24px
    28px;

    box-shadow:
    0 18px 40px rgba(0,0,0,0.22);

    font-family:"Inter",sans-serif;

    color:#2c3c3d;
}


.changelog-top{

    margin-bottom:18px;
}


.changelog-top h2{

    margin:0 0 8px 0;

    font-size:22px;
    font-weight:600;

    color:#375e65;

    letter-spacing:0.3px;
}


.changelog-version{

    display:flex;
    align-items:center;
    gap:10px;

    font-size:13px;

    color:#6b7c7d;
}


.changelog-tag{

    background:#c48a38;
    color:white;

    font-size:11px;
    font-weight:600;

    padding:3px 8px;

    border-radius:999px;

    letter-spacing:0.5px;
}


.changelog-list{

    display:flex;
    flex-direction:column;

    gap:12px;

    margin:
    22px
    0;
}


.changelog-item{

    display:flex;
    gap:10px;

    align-items:flex-start;

    font-size:14px;
    line-height:1.5;
}


.changelog-item::before{

    content:"•";

    color:#c48a38;

    font-weight:700;
}


.changelog-actions{

    display:flex;
    justify-content:center;

    margin-top:24px;
}


.changelog-actions button{

    background:#92180b;
    color:white;

    border:none;

    border-radius:8px;

    padding:
    10px
    18px;

    font-size:13px;
    font-weight:600;

    cursor:pointer;

    transition:all .15s ease;
}


.changelog-actions button:hover{

    background:#7a1409;
}


.changelog-actions button:active{

    transform:scale(0.97);
}