/* Conteúdo do Bloco <style> do index.html (limpo de imports duplicados) */

/* Estilos CSS personalizados para o corpo e o layout */
        body {
            font-family: 'Inter', sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Estilos da barra lateral do menu */
        .sidebar {
            position: fixed;
            top: 0;
            left: -100%;
            height: 100%;
            width: 80%;
            max-width: 300px;
            background-color: #f3e0b5; /* Cor de mel clara */
            z-index: 50;
            transition: left 0.3s ease-in-out;
            padding: 1.5rem;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        }

        .sidebar.visible {
            left: 0;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 40;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out;
        }

        .overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        
        /* Estilos para as caixas de exploração */
        .exploration-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.6); /* Opacidade ligeiramente reduzida para melhor efeito de desfoque */
            backdrop-filter: blur(5px);
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Adiciona transição para o efeito de hover */
            cursor: pointer;
            height: 100%;
        }
        .exploration-box:hover {
            transform: scale(1.03); /* Aumenta a escala em 3% ao passar o rato */
            box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1); /* Sombra mais forte no hover */
        }
        .exploration-box img {
            max-width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .exploration-box h3 {
            font-size: 1.3rem;
            margin-bottom: 0.3rem;
            font-family: 'Playfair Display', serif; /* Aplica a nova fonte aos títulos */
        }
        .exploration-box p {
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }

        /* Estilos para a secção das caixas de exploração para sobreposição */
        .exploration-section {
            position: relative;
            margin-top: -8rem;
            z-index: 10;
            padding-top: 0;
            padding-bottom: 2rem;
            width: 100%;
        }

        @media (min-width: 768px) {
            .exploration-section {
                margin-top: -10rem;
            }
        }
        
        /* Estilos para os Modais */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1000;
        }
        .modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: #fff;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
        }
        .modal-overlay.visible .modal-content {
            transform: scale(1);
        }
        .close-button {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: #A0AEC0;
        }
        
        /* Estilos para o formulário de Adicionar Rainha */
        .add-queen-form-wrapper {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out;
        }
        .add-queen-form-wrapper.visible {
            max-height: 500px; /* Altura suficiente para mostrar o formulário */
        }
        
        /* Estilos para a árvore de Pedigree (simulada) */
        .pedigree-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        .pedigree-node {
            background-color: #fff;
            padding: 1.5rem;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            cursor: pointer;
            text-align: center;
            border-left: 5px solid; /* Adiciona a borda colorida */
            height: 100%;
        }
        .pedigree-node:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.2);
        }
        .node-icon {
            font-size: 2.5rem;
            color: #E2B428;
        }
        .node-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: bold;
            margin-top: 0.5rem;
        }
        .node-id {
            color: #6B7280;
            font-size: 0.875rem;
        }
        .section-title {
            font-family: 'Playfair Display', serif;
            color: #724E19;
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        /* Estilos para o simulador de produtos (Ainda como Modal) */
        .product-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }
        .product-item:last-child {
            border-bottom: none;
        }
        
        /* Estilos do novo simulador de apiturismo - Agora como secção interna */
        .card {
            background-color: #ffffff;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .checkbox-container input[type="checkbox"] {
            transform: scale(1.2);
            margin-right: 0.75rem;
            cursor: pointer;
        }
        #simulador-inline-container {
            display: none; /* Esconde o simulador por padrão */
        }
        .queen-image {
            width: 96px; /* Tamanho fixo para as imagens */
            height: 96px; /* Tamanho fixo para as imagens */
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white; /* Borda branca para destacar */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* === Estilos compartilhados para Pedigree / Visualizador / Admin === */
        .square-ratio {
            position: relative;
            width: 100%;
            padding-top: 100%;
            height: 0;
            overflow: hidden;
        }
        .square-ratio img {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        .hexagon-clip {
            clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
            background-color: #fca311;
        }
        .pedigree-table-container {
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 1.5rem;
        }
        .pedigree-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
            min-width: 900px;
        }
        .pedigree-table th, .pedigree-table td {
            padding: 10px 14px;
            text-align: center;
            border: 1px solid #d1d5db;
            white-space: nowrap;
        }
        /* --- WIDTHS POR COLUNA (Ajuste facilmente aqui) --- */
        .pedigree-table th:nth-child(1),
        .pedigree-table td:nth-child(1) {
            width: 60px;   /* Coluna 1: Linha */
        }
        .pedigree-table th:nth-child(2),
        .pedigree-table td:nth-child(2) {
            width: 140px;  /* Coluna 2: Rainha/Mãe (grande) */
        }
        .pedigree-table th:nth-child(3),
        .pedigree-table td:nth-child(3) {
            width: 35px;   /* Coluna 3: Ponto (.) */
        }
        .pedigree-table th:nth-child(4),
        .pedigree-table td:nth-child(4) {
            width: 80px;   /* Coluna 4: Ano */
        }
        .pedigree-table th:nth-child(5),
        .pedigree-table td:nth-child(5) {
            width: 35px;   /* Coluna 5: Traço (-) */
        }
        .pedigree-table th:nth-child(6),
        .pedigree-table td:nth-child(6) {
            width: 120px;  /* Coluna 6: Rainha/Mãe (reduzida) */
        }
        .pedigree-table th:nth-child(7),
        .pedigree-table td:nth-child(7) {
            width: 80px;  /* Coluna 7: Tipo Acas. (reduzida) */
        }
        .pedigree-table th:nth-child(8),
        .pedigree-table td:nth-child(8) {
            width: 120px;  /* Coluna 8: Pai/Zangão (reduzida) */
        }
        .pedigree-table th:nth-child(9),
        .pedigree-table td:nth-child(9) {
            width: 80px;   /* Coluna 9: Contagem (aumentada) */
        }
        .pedigree-table th {
            background-color: #f9fafb;
            font-weight: 700;
            text-transform: uppercase;
            color: #4b5563;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .row-highlight {
            background-color: #fffbeb;
            font-weight: 700;
        }
        .text-green-600 { color: #059669; }
        .text-blue-600 { color: #2563eb; }
        .underline-element { text-decoration: underline; }
        .underline-green { text-decoration-color: #059669; }
        .pedigree-id-tag {
            background-color: transparent;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
            display: inline-block;
        }
        .origin-code {
            font-weight: 600;
            margin-right: 4px;
        }

        /* --- RESPONSIVO PARA TABLET --- */
        @media (max-width: 1024px) {
            .pedigree-table {
                font-size: 0.85rem;
                min-width: 850px;
            }
            .pedigree-table th, .pedigree-table td {
                padding: 8px 12px;
            }
        }

        @media (max-width: 768px) {
            .pedigree-table {
                font-size: 0.8rem;
                min-width: 800px;
            }
            .pedigree-table th, .pedigree-table td {
                padding: 7px 10px;
            }
            .pedigree-table th {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 480px) {
            .pedigree-table {
                font-size: 0.75rem;
                min-width: 700px;
            }
            .pedigree-table th, .pedigree-table td {
                padding: 6px 8px;
            }
            .pedigree-table th {
                font-size: 0.7rem;
            }
        }

