:root {
    --primary-blue: #0047B6;
    --secondary-orange: #E84910;
    --bg-page: #f4f7f9;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: var(--bg-page); scroll-behavior: smooth; }

/* BANNER */
.main-banner-fixed-total {
    background: #000 url('./assets/cabecalho-anexo.png') no-repeat center center;
    background-size: 100% 100%; 
    height: 180px; 
    width: 100%;
    border-bottom: 4px solid var(--primary-blue);
}

/* LAYOUT GRID */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    gap: 20px;
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 15px;
}

/* CONTAINER GERAL */
.sidebar, .section-box, .chat-sidebar-compact { 
    background: var(--white); 
    border-radius: 12px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); 
    margin-bottom: 20px; 
}
.sidebar { padding: 20px; overflow: hidden; }

/* MENU */
.nav-title { color: var(--primary-blue); font-weight: 700; border-bottom: 2px solid var(--secondary-orange); margin-bottom: 12px; padding-bottom: 5px; }
.nav-list li { list-style: none!important; }
.nav-list li a { 
    text-decoration: none!important; color: #444; display: block; 
    padding: 10px 15px; font-size: 0.95rem; border-radius: 8px; transition: 0.3s;
}
.nav-list li a:hover { background: #e8f0fe; color: var(--primary-blue); padding-left: 20px; }

/* CARDS E IMAGENS (ATUALIZADO) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }

.edu-card-interactive { 
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; 
    text-align: center; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.edu-card-interactive:hover { 
    transform: translateY(-4px); 
    border-color: var(--primary-blue); 
    box-shadow: 0 8px 16px rgba(0,0,0,0.06); 
}

/* Melhoria na exibição da imagem dentro do card */
.img-circuit { 
    width: 100%; 
    height: 160px; /* Altura fixa maior */
    object-fit: contain; /* Garante que a imagem inteira apareça sem cortar */
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in; /* Ícone de lupa */
}
.img-circuit:hover { transform: scale(1.05); }

.icon-lg { font-size: 2.2rem; display: block; margin-bottom: 10px; }

/* MODAL DE ZOOM (NOVO) */
.modal-overlay {
    display: none; 
    position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center; align-items: center; flex-direction: column;
}
.modal-content {
    max-width: 90%; max-height: 80vh;
    border-radius: 4px; box-shadow: 0 0 20px rgba(255,255,255,0.2);
    background: white; padding: 5px;
}
.modal-close {
    position: absolute; top: 20px; right: 35px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.modal-close:hover { color: var(--secondary-orange); }
.modal-caption { color: #ccc; margin-top: 15px; font-size: 1.2rem; }

/* FEEDBACK E CHAT */
.feedback-box-pro { padding: 25px; border-top: 4px solid var(--primary-blue); }
.radio-group-final { display: flex; gap: 30px; margin: 15px 0; }
.radio-item { font-size: 0.9rem; font-weight: 500; cursor: pointer; }
textarea { width: 100%; height: 100px; padding: 12px; border-radius: 8px; border: 1px solid #ddd; margin: 10px 0; resize: none; outline: none; }

.btn-send-professional { 
    display: block; background: var(--primary-blue); color: white; border: none; 
    padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%; transition: 0.3s; 
}
.btn-send-professional:hover { background: #00378d; }
.ui-status { text-align: center; margin-top: 10px; font-size: 0.85rem; font-weight: 600; min-height: 20px; }

.chat-sidebar-compact { display: flex; flex-direction: column; height: 500px; border: 1px solid var(--primary-blue); }
.chat-header-pro { background: var(--primary-blue); color: white; padding: 15px; text-align: center; font-weight: 700; }
.chat-scroll-area { flex: 1; padding: 15px; overflow-y: auto; background: #fdfdfd; display: flex; flex-direction: column; }
.bubble { padding: 10px; border-radius: 10px; margin-bottom: 10px; font-size: 0.88rem; line-height: 1.4; max-width: 90%; }
.tutor-msg { background: #f0f9ff; border: 1px solid #bae6fd; align-self: flex-start; border-bottom-left-radius: 2px; }
.user-msg { background: var(--primary-blue); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-bar { display: flex; padding: 10px; border-top: 1px solid #eee; background: #fff; }
.chat-input-bar input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; margin-right: 10px; outline: none; }

.highlight-lab { border-top: 4px solid var(--secondary-orange); }
.iframe-phet-wrapper { height: 500px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }
iframe { width: 100%; height: 100%; border: none; }
.btn-download { display: block; background: var(--secondary-orange); color: white; text-align: center; padding: 14px; border-radius: 8px; text-decoration: none; font-weight: 700; margin-top: 15px; }
.btn-send-icon { background: var(--secondary-orange); border: none; color: white; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }
.footer-simple-black { background: #000; color: #777; padding: 40px 20px; text-align: center; font-size: 0.85rem; margin-top: 40px; }
