html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        180deg,
        #eef2f7 0%,
        #e4e9f0 100%
    );
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid #ddd;
    border-top: 6px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

nav {
    background-color: rgb(85, 10, 26);
    padding: 0 0.75rem;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;
}

nav .logo {
    font-size: 1.6rem;
}

nav .logo a {
    text-decoration: none;
    color: aliceblue;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li a {
    font-size: 1.2rem;
    text-decoration: none;
    color: aliceblue;
    transition: opacity 0.15s ease;
    padding: 0.3rem;
}

nav ul li a:hover {
    opacity: 0.85;
    background-color: #F88F06;
}

.usario-logado {
    color: aliceblue;
    font-size: 1.1rem;
}

.usario-logado span {
    margin-right: 0.5rem;
}

.container-fluid {
    flex: 1;
    overflow: hidden;
}

.col-12 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flash-wrapper {
    flex-shrink: 0;
}

.alert {
    font-size: 1.1rem;
    text-align: center;
}

.titulo-modulo {
    text-align: end;
    color: rgb(85, 10, 26);
    position: relative;
}

.titulo-modulo h3 {
    font-size: 0.8rem;
}

.processos {
    text-align: center;
    margin-bottom: 1.5rem;
}

.processos a {
    padding: 0.6rem 0.9rem;
    margin: 0 0.2rem;
}

.processos a.btn-lg {
    min-width: 180px;
}

#conteudo {
    flex: 1; 
    width: 100%;

    margin-top: 0.5rem;
    padding: 0 1rem 1rem;

    background: #e6dede0a;
    border-radius: 14px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.12);

    max-height: 75vh;
    overflow-y: auto;

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#form-login {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 30%;
    gap: 1rem;
    margin: auto;
}

#form-login input {
    padding: 0.5rem;
    border-radius: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

#form-login input::placeholder {
    text-align: center;
    font-size: 1.2rem;
}

#form-login button {
    padding: 0.6rem;
    font-size: 1.3rem;
    width: 6rem;
}

.filtro-tabela {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #ffffff;
    padding: 0.3rem;
    background-color: rgb(85, 10, 26);
}

.filtro-tabela input {
    font-size: 1.1rem;
}

.titulo-coluna-tabela {
    position: sticky;
    top: 3rem;
    z-index: 2;
    background-color: #212529;
}

input:read-only {
    background-color: rgb(196, 209, 209);
    font-weight: bold;
    color: black;
}

input:read-only:focus {
    background-color: rgb(108, 128, 128);
}
