﻿html {
    position: relative;
    min-height: 100%;
    background-color: black;
}

/* ?? Scrollbar globale ????????????????????????????????????????????????????? */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: #1a1a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb        { background: #3a3a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: #555; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a #1a1a1a; }

@media (min-width: 400px) {
    html {
        font-size: 12pt;
    }
}


@media (min-width: 768px) {
  html {
    font-size: 16pt;
  }
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    height: 60px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow: visible;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}



.login-icon-link, .user-icon-link, .home-icon-link, .network-icon-link, .search-icon-link, .visitors-icon-link {
    color: white;
    text-decoration: none;
    font-size: 28px;
}

    .login-icon-link:hover, .user-icon-link:hover, .home-icon-link:hover, .search-icon-link:hover, .visitors-icon-link:hover {
        color: yellow;
    }

.network-icon-link:hover {
    color: white;
}

a.navbar-brand {
    color: white !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.center-text {
    text-align: center;
    vertical-align: middle;
    padding: 8px 0;
}




button.inOutButtons {
    width: 136px;
    height: 104px;
    border: 0px;
}
button.inButton {
    background-color: green;
    color: white;
}

button.outButton {
    background-color: red;
    color: white;
}

button.pausaButton {
    background-color: #e67e00;
    color: white;
}

button.finePausaButton {
    background-color: #0097a7;
    color: white;
}

div.clock {
    font-size: 96px;
    font-weight: bold;
    color: white;
    /* Fisso sopra tutto, centrato in alto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9000;
    pointer-events: none;
    /* Di default (pagina normale) invisibile: il layout del body lo posiziona */
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Quando lo screensaver NON è attivo: il clock segue il flusso normale della pagina */
div.clock.ss-idle {
    position: static;
    transform: none;
    opacity: 1;
    font-size: 96px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    animation: none;
}

/* Quando lo screensaver è attivo: clock centrato e pulsante */
div.clock.ss-active {
    opacity: 1;
    animation: clock-pulse 3s ease-in-out infinite;
}

#page-titles {
    transition: opacity 0.6s ease;
}

#page-titles.ss-idle {
    position: static;
    z-index: auto;
    opacity: 1;
    animation: none;
}

#page-titles.ss-active {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9000;
    pointer-events: none;
    opacity: 1;
    animation: clock-pulse 3s ease-in-out infinite;
}

@keyframes clock-pulse {
    0%   { opacity: 0.15; text-shadow: none; }
    50%  { opacity: 1;    text-shadow: 0 0 40px rgba(255,255,255,0.8), 0 0 80px rgba(100,220,255,0.5); }
    100% { opacity: 0.15; text-shadow: none; }
}

/* Layout Default: centrato in un'unica colonna principale */
.main-layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s ease;
    width: 100%;
}

.main-layout-left, .main-layout-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s ease;
}

.reading-mode div.clock.ss-idle {
    font-size: 5rem;
    margin-top: 10px;
    margin-bottom: 20px;
    position: static !important;
}

.reading-mode input.badgeid {
    display: none;
}

input.badgeid {
    text-align: center;
    background-color:aquamarine;
    color:black;
    border-radius:10px;
    border:1px solid white;
        
    
}   

.requests-input {
    background-color: aquamarine !important;
    color: black !important;
}

.requests-input[readonly] {
    background-color: white !important;
}

a.inOutButtons {
    width: 160px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    border: 0px;
}

/* ?? Screensaver canvas ?? */
#screensaver-canvas {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 8888;
    cursor: none;
    background: transparent;
    animation: ss-fadein 1.2s ease forwards;
}
@keyframes ss-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.company-title {
    font-size: 3.15rem;
}

/* === DEV VIEWPORT SWITCHER === */
.dev-viewport-btn {
    background: none;
    border: 0px solid rgba(255, 220, 0, 0.6);
    border-radius: 0px;
    color: #ffffff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-viewport-btn:hover {
    background-color: rgba(255, 220, 0, 0.15);
    border-color: #ffdc00;
}

.dev-viewport-btn svg {
    width: 32px;
    height: 32px;
}

/* Modalità tablet */
body.dev-mode-tablet {
    border: 1px solid lime;
    width: 1280px;
    height: 730px;
    overflow: visible;
}

/* Modalità smartphone */
body.dev-mode-smartphone {
    border: 1px solid deepskyblue;
    width: 390px;
    height: 844px;
    overflow-x: hidden;
    overflow-y: auto;
}
