/* FOLHA DE ESTILO DO WEB SYSTEMS INDEX */

:root {
    --primary-blue: #007bff;
    --dark-blue: #002d5b;
    --accent-green: #46fbbc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f9;
    overflow: hidden;
}

/* --- Barra de Progresso --- */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.05);
}

#progressBar {
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-green));
    width: 0%;
    transition: width 0.4s ease-out;
}

/* --- Header & Navbar --- */
.fixed-header {
    position: fixed;
    top: 4px;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

/* --- LOGO ANIMADO (NOVA SEÇÃO) --- */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-container::before {
    content: "";
    position: absolute;
    top: calc(100% - 2px);
    width: 100%;
    height: 3px; /* Linha levemente mais fina para o menu */
    background-color: #cf0000;
    transform-origin: center center;
    transform: scaleX(0);
    animation: line-animation 3s ease infinite alternate;
}

#page-logo {
    display: block;
    width: 140px; /* Ajustado para o menu */
    height: auto;
    max-height: 70px;
    animation: clip-path-reveal-1 3s ease infinite alternate;
    padding: 5px;
}

@keyframes line-animation {
    0% { transform: scaleX(0); }
    15% { transform: scaleX(0); }
    20%, 25% { transform: scaleX(1); top: calc(100% - 2px); }
    50% { transform: scaleX(1); top: 0px; }
    70% { transform: scaleX(0.2); top: 0px; }
    80%, 100% { transform: scaleX(0.2); top: 0px; }
}

@keyframes clip-path-reveal-1 {
    0%, 25% { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); }
    50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

/* --- Menu Links --- */
.nav-link {
    font-weight: 500;
    color: var(--dark-blue) !important;
    margin: 0 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-restricted {
    background: #dc3545;
    color: white !important;
    border-radius: 50px;
    padding: 6px 20px !important;
}

/* --- Conteúdo Principal --- */
.content-wrapper {
    padding-top: 85px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.iframe-container {
    flex-grow: 1;
    position: relative;
}

.iframe-page {
    width: 100%;
    height: 100%;
    border: none;
}

.modern-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    position: fixed;
    bottom: 60px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn:hover { transform: scale(1.1) rotate(10deg); color: white; }

@media (max-width: 768px) {
    #page-logo { width: 110px; }
}
