/* ==========================================================
   OML MODEL EXPLORER
   STYLE.CSS - VERSIONE 1.0
   ========================================================== */

/* ----------------------------------------------------------
   RESET
---------------------------------------------------------- */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    overflow-x:hidden;
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
    background: white;
    color:#ededed;
}

/* ==== TOP NAVIGATION ==== */

#topnav{
    height:46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:0 18px;
    background:#000080; /* #111824 */
    border-bottom:1px solid #364152;
}
/* BRAND */
#brand{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1;
    min-width:0;
}
.brand-main{
    font-size:clamp(13px,1.15vw,18px);
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.brand-section{
    font-size:clamp(11px,0.9vw,13px);
    color:#8fa2bb;
    border-left:1px solid #465469;
    padding-left:12px;
    white-space:nowrap;
}
/* LINK */
#navlinks{
    display:flex;
    align-items:center;
    flex-shrink:0;
    gap:18px;
}
#navlinks a{
    color:#ddd;
    text-decoration:none;
    font-size:clamp(11px,0.9vw,13px);
    transition:.2s;
    white-space:nowrap;
}
#navlinks a:hover{
    color:#ffd21f;
}
#clock{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:clamp(11px,.9vw,13px);
    color:#ddd;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
    border-left: 1px solid #465469;
    padding-left: 12px;
}
.clock-local,.clock-utc{
    display:flex;
    align-items:center;
    gap:4px;
}

/* ----  LAYOUT PRINCIPALE ---- */
#app{
    display:grid;
    grid-template-columns:300px 1fr;
    width:100vw;
    height:calc(100vh - 46px);
    overflow:hidden;
}
/* ---- SIDEBAR ---- */
#sidebar{
    background-size: 2px 2px;
    background-image: repeating-linear-gradient(0deg, #05056c, #05056c 1px, #2b3990 1px, #2b3990);
    padding:25px;
    overflow:auto;
}
/* LOGO */
#logo{
    margin-bottom:40px;
    text-shadow: 0 2px 0 black;
}
#logo h1{
    font-size:34px;
    line-height:32px;
    font-weight:700;
    color:#ffd21f;
}
#logo span{
    font-size:13px;
    letter-spacing:2px;
    color:#ddd;
}
/* SEZIONI */
.section{
    margin-bottom:28px;
}
.section label{
    display:block;
    margin-bottom:8px;
    font-size:11px;
    letter-spacing:1.5px;
    color:#8fa2bb;
}
/* SELECT */
.section select{
    width:100%;
    height:42px;
    padding-left: 14px;
    border-radius:2px;
    border:1px solid #444;
    border-bottom: 1px solid #666;
    background:#1a1a1a;
    color:white;
    font-size:14px;
    cursor:pointer;
    font-family: 'Trebuchet MS', sans-serif;
}
.section select:focus{
    outline:none;
    border-color: #00e5ff;
}
/* INFO */
.info span{
    display:block;
    font-size:17px;
    font-weight:500;
    text-shadow: 1px 1px 1px black;
    padding-left: 14px;
    color: #ffd21f;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}
/* ---- AREA PRINCIPALE ---- */
#main{
    display:grid;
    grid-template-rows:60px minmax(0,1fr) 95px;
    height:100%;
    min-width:0;
    overflow:hidden;
    background-size: 2px 2px;
    background-image: repeating-linear-gradient(0deg, #05056c, #05056c 1px, #2b3990 1px, #2b3990);
}
/* ---- TOOLBAR ---- */
#toolbar{
    height:60px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    border-bottom:1px solid #364152;
}
#toolbar button{
    width:42px;
    height:38px;
    border:none;
    border-radius:7px;
    background:#2c8cff;
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:.2s;
}
#toolbar button:hover{
    background:#58a5ff;
}
#stepLabel{
    min-width:90px;
    text-align:center;
    font-size:19px;
    text-shadow: 1px 1px 1px black;
    font-weight:600;
    color:#ffd21f;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}
/* ---- CONTENITORE MAPPA ---- */
#mapContainer{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    min-width:0;
    overflow:hidden;
    padding:5px;
    background: url(/img/background-light.png);
}
/* IMMAGINE */
#mapImage{
    display:block;
    width:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
/* ---- TIMELINE --- */
#timeline{
    height:95px;
    width:95%;
    margin:auto;
    position:relative;
    overflow:visible;
}
/* linea */
.timeline-line{
    position:absolute;
    left:0;
    right:0;
    top:25px;
    height:4px;
    background:#465469;
    border-radius:4px;
}
/* singolo step */
.timeline-step{
    position:absolute;
    top:17px;
    transform:translateX(-50%);
    cursor:pointer;
    text-align:center;
}
/* pallino */
.timeline-dot{
    width:16px;
    height:16px;
    margin:auto;
    border-radius:50%;
    background:#c6cfda;
    border:2px solid #ffffff;
    transition:.2s;
}
.timeline-step:hover .timeline-dot{
    transform:scale(1.25);
}
.timeline-step.active .timeline-dot{
    background:#2f8cff;
    transform:scale(1.4);
}
/* etichetta */
.timeline-label{
    margin-top:10px;
    font-size:11px;
    color:#d0d8e4;
    white-space:nowrap;
    text-shadow: 1px 1px 1px black;
}

/* ---- RESPONSIVE ---- */
@media(max-width:1000px){
    #app{
        grid-template-columns:240px 1fr;
    }
    .brand-section{
        display:none;
    }
}

@media(max-width:750px){
    html,
    body{
        overflow:auto;
        overflow-x:hidden;
    }
    #app{
        display:flex;
        flex-direction:column;
        height:auto;
        width:100%;
    }
    #sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #364152;
    }
    #main{
        width:100%;
        height:calc(100vh - 350px);
    }
    #mapContainer{
        padding:0;
    }
    #mapImage{
        width:100%;
        height:auto;
    }
    #topnav{
        padding:0 10px;
    }
    .brand-section{
        display:none;
    }
    #navlinks{
        gap:10px;
    }
    #navlinks a{
        font-size:12px;
    }
    #clock{
        display:flex;
        flex-direction:column;
        align-items:flex-end;
        justify-content:center;
        gap:0;
        line-height:1.05;
        font-size:11px;
    }
    .clock-local,
    .clock-utc{
        display:flex;
        align-items:center;
        gap:3px;
    }
}