/* =========================================
   VARIÁVEIS GLOBAIS
   ========================================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #0a58ca;
}

/* =========================================
   RESET BÁSICO
   ========================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================
   ESTILOS DO BACKOFFICE (Sidebar & Layout)
   ========================================= */

/* CONTAINER PRINCIPAL */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch; /* Estica os filhos (sidebar e conteudo) */
    min-height: 100vh;    /* Força altura mínima igual à altura do ecrã */
}

/* SIDEBAR / MENU LATERAL */
#sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;    /* REFORÇO: Força a sidebar a ter 100% da altura */
    background-color: #212529;
    color: #fff;
    display: flex;        /* Permite organizar o conteudo interno */
    flex-direction: column;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #343a40;
}

#sidebar-wrapper .list-group {
    width: 100%;
}

#sidebar-wrapper .list-group-item {
    border: none;
    background-color: #212529;
    color: #cfd2d6;
    padding: 1rem 1.25rem;
    text-decoration: none; /* Remove sublinhado dos links */
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #343a40;
    color: #fff;
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

/* CONTEÚDO DA PÁGINA */
#page-content-wrapper {
    width: 100%;
    flex-grow: 1; /* Ocupa o espaço restante */
}

/* LÓGICA DO TOGGLE (Esconder Menu) */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

@media (min-width: 768px) {
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
    #wrapper:not(.toggled) #sidebar-wrapper {
        margin-left: 0;
    }
}

/* =========================================
   ESTILOS DA LANDING PAGE (Index.php)
   ========================================= */

/* Secção Hero (Cabeçalho) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

/* Cartões de Serviço */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Ícones */
.icon-box {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Botões Personalizados */
.btn-custom {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 700;
}

/* Modais Personalizados */
.modal-header-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Listas dentro dos Modais */
.list-check {
    padding-left: 0;
}

.list-check li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
}

.list-check i {
    color: #198754; /* Verde sucesso */
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: -2px;
}
/* =========================================
   RODAPÉ / FOOTER
   ========================================= */
footer {
    background-color: #212529; /* Cor escura do Bootstrap */
}

.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color) !important; /* Muda para azul ao passar o rato */
    text-decoration: underline !important;
}

/* Ícones sociais */
.btn-floating {
    transition: transform 0.3s;
    display: inline-block;
}

.btn-floating:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}
/* Secção Hero (Cabeçalho com Imagem de Fundo) */
.hero-section {
    /* Mudei para um azul mais "pastel/suave" (CornflowerBlue) e ajustei a opacidade para 0.80 */
    background: linear-gradient(rgba(74, 144, 226, 0.80), rgba(65, 105, 225, 0.80)), 
                url('img/maquinas-e-equipamentos-inteligentes.webp');
    
    /* Configurações para a imagem cobrir tudo e ficar centrada */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    color: white;
    padding: 100px 0;
    position: relative;
}