* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.hidden {
    display: none !important;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #960000 0%, #000000 100%);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-animation {
    width: 150px;
    height: 150px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #313030;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #750000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background: #5a6fd8;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
}

/* ===== HEADER FIXO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(0, 0, 0);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white !important; /* Título em branco para contraste com fundo preto */
}

.page-title {
    font-size: 1.0rem;
    font-weight: bold;
    color: white !important; /* Título em branco para contraste com fundo preto */
    margin: 0;
}
.header-logo {
    height: 40px; /* Reduzi o tamanho do logo */
    width: auto; /* Mantém a proporção */
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}



/* ===== MAIN APP LAYOUT ===== */
.main-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 80px;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.page {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== MENU CIRCULAR FLUTUANTE COM BOTÃO SAIR ===== */
.nav {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
}

.mask {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1002;
}

.mask:hover {
    background: #004971;
    transform: scale(1.05);
}

.nav.active .mask {
    transform: rotate(45deg);
    background: #667eea;
}

.nav-item {
    position: absolute;
    right: 70px;
    width: 200px;
    height: 40px; /* ✅ ALTURA FIXA PARA TODOS */
    background: #667eea;
    border-radius: 25px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(20px);
    z-index: 1001;
    padding: 0 15px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    
    /* ✅ GARANTIR que todos tenham a mesma altura */
    line-height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
}


.nav-item:hover {
    background: #015785;
    transform: translateX(10px) !important;
}

.nav.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Botão Sair - Vermelho e em último */
.nav-item.logout-btn {
    background: #e74c3c;
    color: white;
    height: 40px !important; /* mesma altura */
    line-height: 40px !important; /* mesma linha */
}

.nav-item.logout-btn:hover {
    background: #c0392b;
    transform: translateX(10px) !important;
}

/* Posições dos itens */
/* Posições dos itens (ATUALIZADO) */

.nav.active .nav-count-1 {
    bottom: 300px;
}

.nav.active .nav-count-2 {
    bottom: 250px;
}

.nav.active .nav-count-3 {
    bottom: 200px;
}

.nav.active .nav-count-4 {
    bottom: 150px;
}

.nav.active .nav-count-5 {
    bottom: 100px;
}

.nav.active .nav-count-6 {
    bottom: 50px;
}

.nav.active .nav-count-7 {
    bottom: 0px;
}

.nav-icon {
    font-size: 18px;
    margin-right: 8px;
}

.nav-text {
    font-size: 12px;
    font-weight: bold;
}

/* Overlay do menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== PÁGINA CONTROLE DE USUÁRIOS ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.form-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.users-section {
    margin-top: 2rem;
}

.users-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.users-list {
    display: grid;
    gap: 1rem;
}

.user-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info-card {
    flex: 1;
}
.user-info {
    font-size: 0.9rem;
    color: #667eea;
}
.user-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.user-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-detail {
    font-size: 0.9rem;
    color: #666;
}

.user-detail .status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-online {
    color: #27ae60;
    font-weight: bold;
}

.status-offline {
    color: #95a5a6;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-delete:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.access-denied {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.access-denied h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.access-denied p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}



@media (max-width: 768px) {
    
    .main-app {
        padding-top: 70px;
    }
    
    .header {
        padding: 0.8rem;
    }
}
/* MOSTRAR CONTEÚDO POR PADRÃO */
#conteudo-construcao {
    display: flex !important; /* ✅ Já mostra por padrão */
}

#acesso-negado {
    display: none; /* ✅ Escondido por padrão */
}