/* styles.css - FotoLab: Laboratório Virtual de Fotogrametria */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta de Cores HSL - Estilo Profissional Geotecnológico */
    --primary-h: 220;
    --primary-s: 70%;
    --primary-l: 25%; /* Azul Geotecnológico #1e3a8a */
    
    --accent-h: 160;
    --accent-s: 80%;
    --accent-l: 40%; /* Verde Campo #10b981 */

    --bg-dark-h: 220;
    --bg-dark-s: 40%;
    --bg-dark-l: 8%; /* Cinza Escuro Premium #111827 */

    --bg-light: #f8fafc;
    --card-light: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Variáveis Globais */
    --font-family: 'Outfit', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* Modo Escuro (Padrão tecnológico) */
.dark-mode {
    --bg-light: #0b0f19;
    --card-light: #12192c;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e2a44;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    transition: var(--transition);
}

/* Contêiner SPA */
#app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Barra Lateral (Sidebar) */
aside.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, hsl(var(--primary-h), var(--primary-s), 15%), hsl(var(--bg-dark-h), var(--bg-dark-s), 5%));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-container {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container svg {
    width: 44px;
    height: 44px;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8)); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    font-weight: 500;
    text-transform: uppercase;
}

nav.menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.menu-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    margin-left: 12px;
    letter-spacing: 1px;
}

.menu-nav ul {
    list-style: none;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.menu-item:hover, .menu-item.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background-color: hsl(var(--primary-h), var(--primary-s), 35%);
    box-shadow: inset 4px 0 0 hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
}

.user-info-text {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Área de Conteúdo Principal */
main.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Cabeçalho */
header.top-header {
    height: var(--header-height);
    background-color: var(--card-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 10;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

/* Estrutura das Telas SPA */
.spa-view {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: none;
}

.spa-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Elementos de Estilo Gerais: Cards, Botões, Formulários */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: hsl(var(--primary-h), var(--primary-s), 60%);
}

.card-accent-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary-h), var(--primary-s), var(--primary-l)), hsl(var(--accent-h), var(--accent-s), var(--accent-l)));
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: hsl(var(--primary-h), var(--primary-s), 30%);
    margin-bottom: 8px;
}

.dark-mode .card-value {
    color: hsl(var(--primary-h), var(--primary-s), 70%);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #ffffff;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-h), var(--primary-s), 20%);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-success {
    background-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    color: #ffffff;
}

.btn-success:hover {
    background-color: hsl(var(--accent-h), var(--accent-s), 30%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-muted);
    color: #ffffff;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Formulários */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.form-input:disabled {
    opacity: 0.5;
    background-color: rgba(0,0,0,0.05);
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 16px;
    background-color: var(--card-light);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

table.data-table th {
    background-color: var(--bg-light);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

table.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

table.data-table tr:last-child td {
    border-bottom: none;
}

table.data-table tr:hover td {
    background-color: rgba(30, 58, 138, 0.03);
    color: var(--text-main);
}

/* Modais */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--card-light);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #ef4444;
}

/* ==================== FLYLITCHI FULLSCREEN LAYOUT ==================== */
.simulador-view-fullscreen {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 0 !important;
    overflow: hidden;
}

.sim-map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
}

/* Painéis Flutuantes (Glassmorphism) */
.floating-panel {
    position: absolute;
    top: 20px;
    z-index: 1010;
    width: 350px;
    max-height: calc(100vh - var(--header-height) - 70px);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.dark-mode .floating-panel {
    background-color: rgba(18, 25, 44, 0.9);
    border-color: var(--border-color);
}

.floating-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-panel-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.floating-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.floating-left {
    left: 20px;
    transform: translateX(0);
}

.floating-left.collapsed {
    transform: translateX(-380px);
    pointer-events: none;
}

.floating-right {
    right: 20px;
    transform: translateX(0);
}

.floating-right.collapsed {
    transform: translateX(380px);
    pointer-events: none;
}

/* HUD Superior do Simulador */
.simulator-hud-bar {
    position: absolute;
    top: 20px;
    left: 390px;
    right: 390px;
    z-index: 1010;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.dark-mode .simulator-hud-bar {
    background-color: rgba(18, 25, 44, 0.9);
}

.hud-item {
    text-align: center;
}

.hud-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.hud-val {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

.dark-mode .hud-val {
    color: #3b82f6;
}

/* Botões de Gaveta Lateral */
.drawer-toggle-btn {
    position: absolute;
    top: 20px;
    z-index: 1020;
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 2px solid #ffffff;
    transition: var(--transition);
}

.drawer-toggle-btn:hover {
    background-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

.toggle-left {
    left: 20px;
}

.toggle-right {
    right: 20px;
    top: 140px;
}

/* Formulas render formatting */
.formulas-section-scrolled {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

/* Equações Acadêmicas com KaTeX */
.katex-equation-block {
    padding: 14px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    border-left: 3px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

.dark-mode .katex-equation-block {
    background-color: rgba(255,255,255,0.03);
}

/* Abas de Navegação interna (Equações & Aulas) */
.sub-tabs-container {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 6px;
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    transition: var(--transition);
}

.sub-tab-btn:hover, .sub-tab-btn.active {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background-color: var(--border-color);
}

.dark-mode .sub-tab-btn:hover, .dark-mode .sub-tab-btn.active {
    color: #3b82f6;
}

/* VISUALIZADOR 3D INTERATIVO */
.visualizer3d-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    height: calc(100vh - var(--header-height) - 64px);
    overflow: hidden;
}

.visualizer3d-canvas-container {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #050811;
    position: relative;
}

#canvas3d {
    width: 100%;
    height: 100%;
    display: block;
}

.visualizer3d-sidebar {
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.control-group-3d {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.control-group-3d:last-child {
    border-bottom: none;
}

.control-title-3d {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark-mode .control-title-3d {
    color: #3b82f6;
}

.slider-container {
    margin-bottom: 14px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.slider-val {
    font-weight: 700;
    color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

.slider-input {
    width: 100%;
    accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

/* ÁREA DE CHAT */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 100px);
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 0.92rem;
    position: relative;
}

.chat-message.sent {
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-message.received {
    background-color: var(--bg-light);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.message-meta {
    font-size: 0.72rem;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.message-sender {
    font-weight: 600;
}

.chat-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* MAPA DE IMPRESSÃO (GRID ABNT) */
.print-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    color: #000000;
}

.print-map-overlay.active {
    display: flex;
}

.print-map-frame {
    flex: 1;
    border: 2px solid #000000;
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
    background-color: #ffffff;
}

.print-map-title-bar {
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.print-map-title-bar h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.print-map-grid-container {
    flex: 1;
    border: 1px dashed #777777;
    position: relative;
}

.print-map-grid-canvas {
    width: 100%;
    height: 100%;
}

.print-map-legend-box {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #ffffff;
    border: 2px solid #000000;
    padding: 12px;
    width: 250px;
    z-index: 100;
    font-size: 0.8rem;
}

.print-map-legend-title {
    font-weight: 700;
    margin-bottom: 6px;
    border-bottom: 1px solid #000000;
    padding-bottom: 4px;
}

.print-map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.legend-color {
    width: 16px;
    height: 8px;
    border: 1px solid #000000;
}

.print-map-north-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    z-index: 100;
}

.print-map-metadata {
    border-top: 2px solid #000000;
    margin-top: 15px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 15px;
    font-size: 0.8rem;
}

.metadata-col {
    border-right: 1px solid #777777;
    padding-right: 10px;
}

.metadata-col:last-child {
    border-right: none;
}

/* TELA DE AUTENTICAÇÃO */
.auth-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary-h), var(--primary-s), 10%) 0%, hsl(var(--bg-dark-h), var(--bg-dark-s), 3%) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.auth-card {
    background-color: rgba(21, 30, 51, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: #ffffff;
    text-align: center;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo svg {
    width: 80px;
    height: 80px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.auth-card .form-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.auth-card .form-input:focus {
    border-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.auth-card select.form-input option {
    background-color: #111827;
    color: #ffffff;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.auth-link {
    color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

.alert-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #a7f3d0;
}

.alert-exercise-success {
    background-color: #d1fae5; /* Soft light green */
    border: 1px solid #10b981;
    color: #000000;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
}

.alert-exercise-error {
    background-color: #fee2e2; /* Soft light red */
    border: 1px solid #ef4444;
    color: #000000;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
}

.alert-exercise-success, .alert-exercise-success *,
.alert-exercise-error, .alert-exercise-error * {
    color: #000000 !important;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .floating-panel {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 20px;
        transform: none !important;
        pointer-events: auto !important;
    }
    .simulador-view-fullscreen {
        position: relative;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    .sim-map-wrapper {
        height: 500px;
    }
    .simulator-hud-bar {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    .drawer-toggle-btn {
        display: none;
    }
}

/* ==================== APOIO E CHEQUE (GCP) VIEW ==================== */
.gcp-view-fullscreen {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 0 !important;
    overflow: hidden;
}

#map-gcp {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
}

/* Marcadores customizados de GCP */
.marker-gcp-triangle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.marker-gcp-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid #ef4444; /* Vermelho */
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.marker-gcp-triangle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid #ffffff; /* Fundo interno branco */
    z-index: 1;
}

.marker-gcp-triangle-inner {
    position: absolute;
    top: 9px;
    left: -4px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    z-index: 2;
}

.marker-gcp-square-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.marker-gcp-square {
    width: 20px;
    height: 20px;
    background-color: #3b82f6; /* Azul */
    border: 3px solid #ffffff;
    border-radius: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    position: relative;
}

.marker-gcp-square-inner {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.gcp-marker-label {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Efeito Flash de Obturador da Câmera */
.flash-effect {
    animation: map-flash-anim 0.15s ease-out;
}

@keyframes map-flash-anim {
    0% { filter: brightness(1) contrast(1); }
    40% { filter: brightness(1.6) contrast(0.9); }
    100% { filter: brightness(1) contrast(1); }
}

/* Classes utilitárias com z-index elevado */
.anim-controller-bar-class {
    position: absolute;
    bottom: 20px;
    left: 390px;
    z-index: 1020;
    background-color: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.basemap-controller-class {
    position: absolute;
    bottom: 20px;
    right: 390px;
    z-index: 1020;
    background-color: var(--card-light);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.dark-mode .basemap-controller-class {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: var(--border-color);
}

/* ==========================================================================
   CSS PARA A ABA DE LEGISLAÇÃO E NORMAS DE DRONES
   ========================================================================== */

#legislacao-view {
    padding: 0 !important;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: none;
    flex-direction: column;
}

#legislacao-view.active {
    display: flex;
}

.leg-view-fullscreen {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 0 !important;
    overflow: hidden !important;
}

/* HUB VIEW STYLES */
.leg-hub-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    background-color: var(--bg-light);
}

.leg-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.leg-hub-card {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.leg-hub-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary-h), var(--primary-s), 50%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.dark-mode .leg-hub-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.leg-hub-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.leg-hub-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.leg-hub-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
}

.leg-hub-card-btn {
    margin-top: 10px;
    align-self: flex-start;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* SINGLE VIEW STYLES */
.leg-single-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.leg-single-header {
    background: var(--card-light);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.leg-single-topic-indicator {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.leg-single-nav-buttons {
    display: flex;
    gap: 10px;
}

.leg-container {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.leg-content-area {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    box-sizing: border-box;
}

.leg-section {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    display: none;
}

.leg-section.active {
    display: block;
}

.leg-single-footer {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* SIMULATOR INTEGRATION STYLES */
.leg-sim-section-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    margin-top: 20px;
}

.leg-sim-results-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px dashed var(--border-color);
    padding-left: 24px;
    text-align: left;
}

@media (max-width: 768px) {
    .leg-sim-section-container {
        grid-template-columns: 1fr;
    }
    .leg-sim-results-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed var(--border-color);
        padding-top: 20px;
    }
}

.leg-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leg-section h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
}

.leg-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Alertas Estilizados */
.leg-alert-box {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-main);
}

.leg-alert-box strong {
    color: var(--accent);
}

.leg-alert-warning {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-main);
}

.leg-alert-warning strong {
    color: #d97706;
}

.dark-mode .leg-alert-warning strong {
    color: #fbbf24;
}

.leg-alert-danger {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-main);
}

.leg-alert-danger strong {
    color: #dc2626;
}

.dark-mode .leg-alert-danger strong {
    color: #f87171;
}

/* Tabela Comparativa Responsiva */
.leg-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-light);
}

.leg-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.leg-table th {
    background-color: rgba(59, 130, 246, 0.04);
    color: var(--text-main);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.leg-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.5;
}

.leg-table tr:last-child td {
    border-bottom: none;
}

.leg-table tr:hover td {
    background-color: rgba(59, 130, 246, 0.01);
}

/* Grid de Cartões */
.leg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.leg-card {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leg-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.leg-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leg-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Acordeão FAQ */
.leg-faq-details {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.leg-faq-details[open] {
    border-color: rgba(59, 130, 246, 0.3);
}

.leg-faq-summary {
    padding: 14px 20px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 0.88rem;
}

.leg-faq-summary::-webkit-details-marker {
    display: none;
}

.leg-faq-summary:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

.leg-faq-summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.leg-faq-details[open] .leg-faq-summary::after {
    transform: rotate(180deg);
    color: hsl(var(--primary-h), var(--primary-s), 40%);
}

.leg-faq-content {
    padding: 0 20px 16px 20px;
    line-height: 1.5;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Linha do tempo */
.leg-timeline {
    position: relative;
    max-width: 800px;
    margin: 30px 0 30px 15px;
    padding-left: 24px;
    border-left: 3px solid var(--border-color);
}

.leg-timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.leg-timeline-item:last-child {
    margin-bottom: 0;
}

.leg-timeline-marker {
    position: absolute;
    left: -35.5px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 4px solid var(--accent);
    transition: var(--transition);
}

.leg-timeline-item:hover .leg-timeline-marker {
    background-color: var(--accent);
    transform: scale(1.2);
}

.leg-timeline-info {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.leg-timeline-content {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.leg-timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.leg-timeline-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Checklist interativo */
.leg-checklist-container {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.leg-progress-wrapper {
    margin-bottom: 16px;
}

.leg-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.leg-progress-bar-bg {
    background-color: var(--border-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.leg-progress-bar-fill {
    background: linear-gradient(90deg, var(--accent), #3b82f6);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.leg-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.leg-checklist-item:last-child {
    border-bottom: none;
}

.leg-checklist-item:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

.leg-checklist-checkbox {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.leg-checklist-label {
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    width: 100%;
}

.leg-checklist-checkbox:checked + .leg-checklist-label {
    color: var(--text-muted);
}

.leg-checklist-checkbox:checked + .leg-checklist-label .leg-checklist-title-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.leg-checklist-subtext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* Árvore de Decisão Interativa */
.leg-tree-container {
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.leg-tree-step {
    display: none;
}

.leg-tree-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.leg-tree-question {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
    line-height: 1.4;
}

.leg-tree-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.leg-tree-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leg-tree-btn:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.04);
}

.leg-tree-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.leg-tree-result {
    display: none;
    background: rgba(59, 130, 246, 0.01);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.leg-tree-result.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.leg-result-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Diagramas responsivos CSS */
.leg-diag-pillars {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.leg-pillar-card {
    flex: 1 1 180px;
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leg-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.leg-pillar-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.leg-pillar-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.leg-pillar-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.leg-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.leg-flow-step {
    flex: 1 1 120px;
    background: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.leg-flow-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leg-diagram-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background: var(--card-light);
    margin: 20px 0;
}

.leg-diagram-fig {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 10px;
}

.leg-diagram-footer-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Responsividade Mobile da página */
@media (max-width: 992px) {
    .leg-container {
        grid-template-columns: 1fr;
    }
    
    .leg-sidebar {
        width: 100%;
        height: auto;
        max-height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .leg-menu {
        display: flex;
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    .leg-menu-item {
        margin-bottom: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    
    .leg-menu-item.active {
        border-bottom-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    }
    
    .leg-view-fullscreen {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .leg-container {
        grid-template-columns: 1fr;
        height: auto !important;
        overflow: visible !important;
    }

    .leg-content-area {
        padding: 20px;
        height: auto !important;
        overflow: visible !important;
    }
    
    .leg-flow-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .leg-flow-arrow {
        transform: rotate(90deg);
        padding: 5px 0;
    }

    .leg-simulator-panel {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        height: auto !important;
        max-height: none !important;
    }
}
