/* static/css/styles.css — SIGSEAP regras pontuais que nao cabem no input.css */

/* Linhas clicaveis em tabelas legadas */
.clickable-row {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}
.clickable-row td { user-select: none; }
.clickable-row:hover {
    background-color: #FBF7EC;
    box-shadow: 0 4px 8px rgba(15, 15, 18, 0.08);
}

/* Carousel Bootstrap legado — controles em preto */
.carousel-control-prev-icon { background-color: black; }
.carousel-control-next-icon { background-color: black; }

/* PWA install button flutuante */
.pwa-install-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important;
    padding: 12px 20px;
    background-color: #B8902B;
    color: #1A1A1F;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(184, 144, 43, .35);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.pwa-install-button:hover { transform: scale(1.05); }
.pwa-install-button.visible { display: block !important; }

/* Estrutura base full-height */
html, body { height: 100%; }

/* ============================================================
   Loader global SIGSEAP  (barra de navegacao + overlay/spinner)
   Helper: window.sigseapLoader  —  static/js/loader.js
   Cor: dourado institucional (mesmo gradiente da .toast-progress)
   ============================================================ */
.sigseap-loader-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #D2A93F, #B8902B);
    box-shadow: 0 0 8px rgba(184, 144, 43, .6);
    z-index: 10001; opacity: 0; pointer-events: none;
    transition: width .2s ease, opacity .3s ease;
}
.sigseap-loader-overlay {
    position: fixed; inset: 0; display: none;
    align-items: center; justify-content: center; flex-direction: column; gap: 14px;
    background: rgba(247, 247, 248, .72); backdrop-filter: blur(2px);
    z-index: 10000;
}
.sigseap-loader-overlay.is-on { display: flex; }
.sigseap-loader-overlay__msg {
    font-weight: 600; font-size: .95rem; color: #2B2B32;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.sigseap-spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 4px solid rgba(15, 15, 18, .12);
    border-top-color: #B8902B;
    animation: sigseap-spin .8s linear infinite;
}
.sigseap-spinner--sm { width: 20px; height: 20px; border-width: 3px; }
.sigseap-spinner--inline { display: inline-block; vertical-align: middle; margin-right: .5rem; }
@keyframes sigseap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .sigseap-spinner { animation-duration: 1.6s; }
}
