html, body {
    height: 100%;
    margin: 0;
}

body {
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

main {
    flex: 1;
    padding: 20px;
}

.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar {
    width: 100%;      /* sempre ocupa a largura visível */
    position: relative; /* anda junto com o scroll horizontal */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1055;    /* fica acima da tabela */
}


.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown .dropdown-menu {
    min-width: 250px;
}

.navbar .navbar-collapse {
    z-index: 1050; /* garante que fique acima do mapa */
}

#map {
    width: 100%;
    height: calc(100vh - 56px); /* subtraímos a altura da navbar */
    position: relative;
    z-index: 0;
}

/* Botões de envio */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-weight: bold;
    background: linear-gradient(135deg, #20c997, #0dcaf0);
    border: none;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: scaleY(1.05);
}

/* Botões de status */
.btn-status {
    min-width: 110px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    transition: background-color 0.25s ease, transform 0.1s ease;
}

.btn-status.pendente {
    background-color: #ffc107;
    color: #212529;
}

.btn-status.em-andamento {
    background-color: #0d6efd;
    color: #fff;
}

.btn-status.concluido {
    background-color: #198754;
    color: #fff;
}

.btn-status:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-status:active {
    transform: translateY(0);
    opacity: 0.8;
}

/* Login box */
.login-box {
    background-color: #212529;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

/* Menu cards */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.menu-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.menu-card:hover:not(.disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.menu-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.menu-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.login-card {
    background: linear-gradient(135deg, #0d6efd, #20c997);
    color: white;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    padding: 3rem;
}

.login-card .menu-icon {
    color: white;
    font-size: 4rem;
}

.menu-card.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.menu-card.disabled .overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgba(220,53,69,0.7);
    pointer-events: none;
}

.lock-icon {
    font-size: 1.5rem;
    color: #dc3545;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 38px;
    cursor: pointer;
}
