:root {
    --primary: #15803d;
    --primary-light: #22c55e;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --premium-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --ingtelsig-gradient: linear-gradient(to bottom, #8dc63f 0%, #208736 50%, #054f1e 100%);
    --emerald: #10b981;
}

/* Hierarchy Switcher Premium Styles */
.hierarchy-switcher {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switcher-tab {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif !important;
    position: relative;
    overflow: hidden;
}

.switcher-tab:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.switcher-tab.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.switcher-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 10px 10px 0 0;
}


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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

h1,
h2,
h3,
.nav-brand {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo {
    height: 58px;
    max-height: 58px;
    width: auto;
    transition: all 0.3s;
}

.logo-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-weight: normal;
    letter-spacing: 0.01em;
    background: var(--ingtelsig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 1.2px #111111;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.25));
    font-size: 2.2rem;
    line-height: 1;
}

.nav-brand {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.nav-brand.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Logo Hero */
.hero-brand-mega {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
    width: 100%;
}

.hero-logo-mega {
    height: 80px;
    width: auto;
    filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.6));
}

.logo-text.mega-text {
    font-size: 3.5rem;
    -webkit-text-stroke: 1.5px #111111;
}

/* Small Logo Hero */
.hero-brand-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    width: 100%;
}

.hero-logo-small {
    height: 58px;
    width: auto;
}

.logo-text.hero-logo-text-small {
    font-size: 2.2rem;
    -webkit-text-stroke: 1.2px #111111;
}

@media (max-width: 768px) {
    .hero-logo-mega {
        height: 60px;
    }

    .logo-text.mega-text {
        font-size: 3rem;
        -webkit-text-stroke: 1.5px #111111;
    }

    .logo-text {
        font-size: 1.8rem;
    }
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 64px;
    width: auto;
}

.footer-logo-text {
    font-size: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-light);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-light);
    padding-left: 25px;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.6;
}

/* Global Search */
.nav-search-container {
    position: relative;
    margin-left: 2rem;
    flex: 1;
    max-width: 300px;
}

.global-search-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--dark);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.global-search-input::placeholder {
    color: var(--gray);
}

.global-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    max-width: 400px;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item .title {
    color: white;
    font-weight: 600;
    display: block;
    font-size: 0.95rem;
}

.search-result-item .category {
    font-size: 0.7rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.view-section {
    display: none;
    padding-top: 70px;
    min-height: 100vh;
}

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

.view-section.no-padding {
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Global Premium Styling */
.premium-section {
    background: var(--premium-bg) !important;
    color: white !important;
}

.premium-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-section h3,
.premium-section h4 {
    color: white !important;
}

.premium-section p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.glass-card {
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 197, 94, 0.15);
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/static/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    background: white;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.institutional-section p {
    color: var(--text-light);
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    line-height: 1.6;
}

.institutions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: stretch;
}

.inst-logo-placeholder {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, background 0.3s;
    min-width: 200px;
}

.inst-logo-placeholder:hover {
    transform: translateY(-5px);
    background: white;
}

.inst-logo-placeholder h4 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.inst-logo-placeholder span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

/* Catalog */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    max-width: 800px;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    margin: 2rem auto;
    display: block;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
}

.search-input:focus {
    border-color: var(--primary);
}

select.search-input option {
    background-color: var(--dark);
    color: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-code {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Glossary Styles */
.glossary-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.glossary-tab {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.glossary-tab.active,
.glossary-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glossary-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.glossary-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.glossary-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.code-badge {
    font-size: 0.7rem;
    background: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gray);
}

.glossary-card .view-mode,
.glossary-card .edit-mode {
    flex-grow: 1;
    /* Pushes everything else down */
    margin-bottom: 1rem;
}

.glossary-card .view-mode.hidden,
.glossary-card .edit-mode.hidden {
    display: none;
}

.glossary-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.btn-edit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-edit:hover {
    background: var(--light);
    color: var(--primary);
}

.edit-textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 10px;
}

.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-cancel {
    background: white;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Hierarchy Tags */
.hierarchy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.h-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
    cursor: help;
}

.h-l1 {
    background: #e0f2fe;
    color: #0284c7;
}

/* Blue tint for Realm */
.h-l2 {
    background: #dcfce7;
    color: #15803d;
}

/* Green tint for Biome */
.h-l3 {
    background: #fef3c7;
    color: #d97706;
}

/* Yellow/Orange tint for Funct. Group */

/* Nested Catalog (Glossary) */
.nested-catalog {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    display: none;
    /* Hidden by default */
}

.nested-catalog.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.btn-toggle-catalog {
    width: 100%;
    margin-top: auto;
    /* Force button to the bottom of the flex container */
    padding: 0.8rem;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle-catalog:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.nested-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.nested-card {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nested-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.nested-card h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.nested-card .code {
    font-size: 0.7rem;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.nested-card .l5 {
    font-size: 0.8rem;
    color: var(--gray);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Modal Styles */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

.map-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.map-modal-content {
    background: white;
    width: 90vw;
    height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.close-map-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 4000;
    /* Above Leaflet controls */
    background: white;
    color: var(--dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.close-map-modal:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

#popup-map {
    width: 100%;
    height: 100%;
    background: #eef2f7;
}

/* Map Dashboard Layout Integration */
.app-container {
    display: flex;
    height: calc(100vh - 70px);
    width: 100%;
    overflow: hidden;
}

.sidebar {
    width: 400px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.right-panel {
    width: 350px;
    background: white;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tree-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.details-panel {
    padding: 1.5rem;
    background: var(--light);
    flex: 1;
    overflow-y: auto;
}

.map-container {
    flex: 1;
    position: relative;
    background: #eef2f7;
}

#map {
    height: 100%;
    width: 100%;
}

/* Existing Components (Adjusted) */
.btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--light);
}

/* Tree Styles */
.tree {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.root-tree {
    padding-left: 0;
}

.tree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    bottom: 0;
    width: 1px;
    background-color: var(--border);
}

.root-tree::before {
    display: none;
}

.tree li {
    margin: 0.5rem 0;
    position: relative;
}

.tree li::before {
    content: '';
    position: absolute;
    top: 12px;
    /* Center with the toggle/text */
    left: -0.5rem;
    width: 0.8rem;
    height: 1px;
    background-color: var(--border);
}

.root-tree>li::before {
    display: none;
}

.toggle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    background: white;
    /* cover the line underneath */
    position: relative;
    z-index: 2;
    margin-right: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.toggle-icon:hover {
    border-color: var(--primary);
    background: var(--light);
}

.collapsed>ul {
    display: none;
}

.tree-node {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0;
}

.tree-node:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.tree-node.active {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* Level specific styling for hierarchy tree */
.level-n1,
.level-l1 {
    color: #60a5fa;
    font-weight: 700;
    background-color: rgba(30, 58, 138, 0.1);
    border-left: 3px solid #3b82f6;
}

.level-n2,
.level-l2 {
    color: #4ade80;
    font-weight: 700;
    background-color: rgba(20, 83, 45, 0.1);
    border-left: 3px solid #22c55e;
}

.level-n3,
.level-l3 {
    color: #a855f7;
    font-weight: 600;
    background-color: rgba(88, 28, 135, 0.1);
    border-left: 3px solid #a855f7;
}

.level-n4,
.level-l4 {
    color: #fbbf24;
    font-weight: 600;
    background-color: rgba(124, 45, 18, 0.1);
    border-left: 3px solid #f97316;
}

.level-n5,
.level-l5 {
    color: #f472b6;
    font-weight: 500;
    background-color: rgba(131, 24, 67, 0.1);
    border-left: 3px solid #ec4899;
}

.level-n6,
.level-l6 {
    color: #f8fafc;
    font-weight: 400;
    background-color: rgba(15, 23, 42, 0.1);
    border-left: 3px solid #64748b;
}

/* UNESCO Levels - Different Palette for distinction */
.level-sl1 {
    color: #4ade80;
    font-weight: 700;
    background-color: rgba(6, 95, 70, 0.1);
    border-left: 3px solid #10b981;
}

.level-sl2 {
    color: #fbbf24;
    font-weight: 700;
    background-color: rgba(146, 64, 14, 0.1);
    border-left: 3px solid #f59e0b;
}

.level-sl3 {
    color: #60a5fa;
    font-weight: 600;
    background-color: rgba(30, 64, 175, 0.1);
    border-left: 3px solid #3b82f6;
}

.level-sl4 {
    color: #818cf8;
    font-weight: 600;
    background-color: rgba(55, 48, 163, 0.1);
    border-left: 3px solid #6366f1;
}

.level-sl5 {
    color: #f472b6;
    font-weight: 500;
    background-color: rgba(157, 23, 77, 0.1);
    border-left: 3px solid #f472b6;
}

.level-sl6 {
    color: #94a3b8;
    font-weight: 400;
    background-color: rgba(51, 65, 85, 0.1);
    border-left: 3px solid #94a3b8;
}

.hierarchy-switcher {
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.switcher-tab.active {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    font-weight: 700 !important;
}

.switcher-tab:not(.active) {
    color: var(--gray) !important;
    opacity: 0.8;
}

.switcher-tab:hover:not(.active) {
    color: var(--dark) !important;
    opacity: 1;
}

/* Loader */
.loader-ring {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    /* Softer overlay */
    backdrop-filter: blur(8px);
    display: flex;
    /* Using flex to center */
    align-items: center;
    justify-content: center;
}

/* Ensure hidden modals don't display even with flex */
.modal:not(.active-modal) {
    display: none !important;
}

.modal-content {
    background-color: white;
    margin: 0;
    /* Removing margin auto for flex centering */
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    box-shadow: none !important;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(90deg);
    color: #4ade80 !important;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.filter-select {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
    max-width: 320px;
    text-overflow: ellipsis;
}

.filter-select:focus {
    border-color: var(--primary);
}

.btn-clear-filters {
    padding: 8px 16px;
    background-color: var(--gray);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-clear-filters:hover {
    background-color: #4b5563;
}

/* Rediseño de componentes de inicio (Fase 19) */
.objective-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--primary-light) !important;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: -2.5rem;
    width: 2px;
    background: var(--border);
    z-index: 0;
}

.timeline-item:last-child::before {
    display: none;
}

/* Observations Section Styles */
.obs-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

.obs-item:hover {
    background: #f8fafc;
}

.obs-item.active {
    background: #eef2ff;
    border-left: 4px solid var(--primary);
}

.obs-item .obs-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.obs-item.active .obs-id {
    color: var(--primary);
}

.obs-item h4 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    color: var(--dark);
}

.obs-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Action Buttons in List */
.obs-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(5px);
    transition: all 0.2s ease;
}

.obs-item:hover .obs-actions,
.obs-item.active .obs-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-mini {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.2);
}

.btn-mini {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.btn-mini:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: #4ade80 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(34, 197, 94, 0.1);
    color: #4ade80 !important;
}

.btn-mini.btn-zoom {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

/* Modal Premium - Refined Dark Glass Style */
#observation-modal .modal-content {
    background: rgba(15, 23, 42, 0.96);
    /* Dark slate with high opacity but subtle transparency */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    overflow: hidden;
}

#observation-modal .modal-header-premium {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
    padding: 1.5rem 2rem;
}

#observation-modal .modal-header-premium h2 {
    color: #4ade80;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    letter-spacing: -0.02em;
}

#observation-modal .modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow-x: auto;
}

#observation-modal .tab-btn {
    padding: 1.1rem 1.4rem;
    border: none;
    background: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

#observation-modal .tab-btn:hover {
    color: #4ade80;
    background: rgba(255, 255, 255, 0.03);
}

#observation-modal .tab-btn.active {
    color: #4ade80;
    border-bottom-color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
}

#observation-modal .tab-pane {
    display: none;
    padding: 2.5rem 2rem;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#observation-modal .tab-pane.active {
    display: block;
}

.modal-header-premium {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Technical Data Grid - Sci-Fi Style */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-field {
    display: flex;
    flex-direction: column;
}

.detail-field:hover {
    transform: none;
}

.detail-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(16, 185, 129, 0.6);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: #f0fdf4;
    font-weight: 500;
    line-height: 1.2;
}

.detail-value.mono {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--emerald);
    display: inline-block;
}

/* Taxa Cards - Sci-Fi Style */
.taxa-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.taxa-card {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s;
}

.taxa-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.taxa-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.taxa-info h4 {
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #f0fdf4;
    font-weight: 700;
}

.taxa-info span {
    font-size: 0.8rem;
    color: rgba(16, 185, 129, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badge Premium Style */
.badge-premium {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(16, 185, 129, 0.4);
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px dashed rgba(16, 185, 129, 0.15);
}

/* Hybrid Dashboard Styles */
.hero-dashboard {
    min-height: calc(100vh - 70px);
    background: linear-gradient(rgba(6, 78, 59, 0.9), rgba(15, 23, 42, 0.95)), url('/static/hero.png');
    background-size: cover;
    background-position: center;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.dashboard-header {
    text-align: center;
    color: white;
}

.dashboard-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.dashboard-card .card-data {
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.chart-container {
    padding: 2rem;
    min-height: 400px;
}

.chart-container h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.export-card {
    padding: 2rem;
    text-align: center;
}

.export-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.export-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Mini Observation List in Details Panel */
.mini-obs-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

.mini-obs-item:hover {
    background: rgba(21, 128, 61, 0.1);
}

.hidden {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FORM MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.form-modal {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glassmorphism-dark {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    background: var(--secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.form-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
.form-modal-body::-webkit-scrollbar {
    width: 6px;
}

.form-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.form-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tour-highlight {
    position: relative;
    z-index: 4000 !important;
    box-shadow: 0 0 0 4px var(--primary-light), 0 0 30px rgba(34, 197, 94, 0.8) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Progress Bar */
.form-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #15803d, #0ea5e9);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Groups */
.form-step {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.2rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select.form-control option {
    background: #0f172a;
    color: white;
}

/* Footer & Buttons */
.form-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #15803d, #166534);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Specific Utilities */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(21, 128, 61, 0.3);
}

.form-info-box {
    background: rgba(14, 165, 233, 0.1);
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 4px 12px 12px 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #e0f2fe;
}

/* --- FORMS SECTION ENHANCEMENTS --- */
#section-forms {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#section-forms .section-header h2 {
    color: white;
    font-size: 3rem !important;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#section-forms .section-header p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.2rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.form-choice-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.form-choice-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-light);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 197, 94, 0.15);
    background: rgba(30, 41, 59, 0.7);
}

.form-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.form-choice-card:hover .form-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(34, 197, 94, 0.1);
}

.form-choice-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: white !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-choice-card p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* --- Homogenization: Glossary, Catalog & Navigation --- */
.glossary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.glossary-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.glossary-card h3 {
    color: white !important;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glossary-card p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.7;
    font-size: 1.1rem;
}

.code-badge {
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-right: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* N6 Premium Card - Glossary Adaptation of Fact Sheet */
.n6-premium-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.n6-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    opacity: 0.8;
}

.n6-premium-card h3 {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.n6-premium-card .code-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.n6-premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light) !important;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.n6-premium-card .btn-primary {
    transition: all 0.3s ease;
}

.n6-premium-card .btn-primary:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-toggle-catalog {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-toggle-catalog:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary-light);
}

.glossary-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.glossary-tab.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.glossary-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hierarchy-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.h-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.filter-select option {
    background: #0f172a;
    color: white;
}

/* --- Map Sidebars & Shared App Components --- */
.premium-section .sidebar {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.premium-section .sidebar-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.premium-section .sidebar-header h3 {
    color: white !important;
}

.premium-section .tree-container {
    background: transparent !important;
}



.premium-section .search-box {
    background: rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nested-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    color: white !important;
    transition: all 0.3s;
}

.nested-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
}

.nested-card .code {
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.nested-card h4 {
    color: white !important;
    margin: 0.5rem 0;
}

.nested-card .l5 {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.75rem;
}

.obs-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

.obs-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.obs-item.active {
    background: rgba(34, 197, 94, 0.1) !important;
    border-left: 4px solid var(--primary) !important;
}

.obs-item h4 {
    color: white !important;
}

.obs-meta {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Map Explorer: Right Panel Details --- */
.right-panel {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

#ecosystem-details.details-panel {
    padding: 2rem;
    background: transparent !important;
    color: white !important;
}

.details-panel h3 {
    color: #4ade80 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
    padding-bottom: 0.75rem;
}

.details-panel .content {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7;
    font-size: 1.05rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item strong {
    display: block;
    color: #4ade80 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.detail-item span {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Admin Toggle Styles */
.admin-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.admin-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
}

.admin-toggle span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Breadcrumbs Style */
.breadcrumb-container {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-light);
}

.breadcrumb-separator {
    opacity: 0.4;
}

/* Skeleton Screens */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 15px;
}

.details-panel p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 1rem;
}

/* Button with Icon specifically for detailed view */
#btn-toggle-obs.btn-primary {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #4ade80 !important;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.details-panel .btn-primary:hover {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* ==========================================
   CLASSIFICATION EXPLORER STYLES
   ========================================== */

#section-classification .tree-container {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#section-classification .switcher-tab.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#section-classification .switcher-tab {
    color: #94a3b8;
    font-weight: 500;
}

.toggle-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-light);
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.2s;
    user-select: none;
}

.toggle-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.tree-node {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.tree-node:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.tree-node.active {
    background: var(--primary);
    color: white !important;
    font-weight: 600;
}

/* Level Badges in Tree */
.tree-node b {
    color: var(--secondary);
    margin-right: 8px;
    font-weight: 700;
}

/* Interactive Tree Nesting */
ul.tree {
    list-style: none;
    padding-left: 1.8rem;
    margin: 4px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

ul.root-tree {
    padding-left: 0;
    border-left: none;
}

li.collapsed>ul.tree {
    display: none;
}

.tree li {
    margin: 8px 0;
}

/* Search Highlighting */
#class-tree-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#class-tree-search:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* ==========================================
   NEW LANDING PAGE (HOME) STYLES
   ========================================== */

.hero-landing {
    padding: 0 !important;
    overflow-x: hidden;
    background-color: #0f172a;
    /* Deep Navy to ensure white text is visible */
    color: white;
}

.home-hero {
    position: relative;
    height: calc(100vh - 180px);
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/static/img/home-hero.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

/* Integrated Partner Bar */
.partner-glass-bar {
    margin-top: 70px;
    /* Adjust for fixed navbar height */
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    /* Significantly reduced height */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.partner-logos-img {
    max-height: 150px;
    /* Reduced to match smaller frame */
    width: auto;
    max-width: 95%;
    filter: none;
    /* Cleaner look on solid white */
    transition: all 0.5s ease;
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    padding: 2rem;
    margin-top: 0;
    /* No longer needed as it is in the flow */
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 99px;
    color: #4ade80;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-title .text-highlight {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 850px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle .citation {
    opacity: 0.6;
    font-size: 0.85em;
    font-weight: 400;
    font-style: italic;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.hero-scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.hero-scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #4ade80;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

.main-footer {
    background: #0f172a;
    color: white;
    padding: 0.8rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-footer {
    background: #0f172a;
    color: white;
    padding: 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.institutional-strip-footer {
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.footer-sitemap-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img-mini {
    height: 48px;
    width: auto;
}

.logo-text.footer-logo-text-mini {
    font-size: 1.8rem;
    -webkit-text-stroke: 1.2px #111111;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 350px;
}

.footer-col-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sitemap-list li {
    margin-bottom: 0.8rem;
}

.footer-sitemap-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-sitemap-list a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom-wide {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-sitemap-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-description {
        margin: 0 auto;
    }
}

.btn-primary-glaze {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -10px rgba(21, 128, 61, 0.5);
    font-size: 1.05rem;
}

.btn-primary-glaze:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(21, 128, 61, 0.7);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-secondary-glaze {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.btn-secondary-glaze:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary-glaze.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Animations */
.animated-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animated-slide-up {
    animation-delay: 0.2s;
}

.hero-subtitle.animated-slide-up {
    animation-delay: 0.4s;
}

.hero-btns.animated-slide-up {
    animation-delay: 0.6s;
}

.hero-badge.animated-slide-up {
    animation-delay: 0.1s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fade-in {
    opacity: 0;
    animation: fadeInAnimation 1.2s ease forwards;
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
    }
}

.animated-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}


/* Stats Row in Hero */
.hero-stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.hero-stat-mini {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    min-width: 160px;
}

.hero-stat-mini .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.hero-stat-mini .stat-txt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Home Features Section */
.home-features {
    padding: 8rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    /* Enforce dark background */
    border-radius: 24px;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    background: rgba(34, 197, 94, 0.08);
    /* Glow effect on hover */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: rgba(34, 197, 94, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 24px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Animations */
.animated-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for stagger effect */
.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-btns {
    animation-delay: 0.6s;
}

.hero-stats-row {
    animation-delay: 0.8s;
}

/* Refinement for Dashboard in its new location */
#section-dashboard {
    padding-top: 4rem;
}

#section-dashboard .hero-dashboard {
    min-height: auto;
    padding-bottom: 4rem;
    background: none;
}

/* ==========================================
   ENRICHMENT SECTIONS (HOME)
   ========================================== */

.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-light);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.section-header-centered p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* Recent Obs Cards */
.obs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.obs-card-mini {
    background: rgba(30, 41, 59, 0.5);
    /* Darker background for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.obs-card-mini:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-5px);
}

.obs-card-mini .obs-date {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 700;
}

.obs-card-mini h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.obs-card-mini .obs-loc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.obs-card-mini .btn-mini-view {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.obs-card-mini .btn-mini-view:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Glossary Spotlight */
.glossary-spotlight {
    padding: 8rem 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}

.glow-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.spotlight-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.spotlight-text {
    flex: 1;
}

.spotlight-label {
    color: var(--primary-light);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    display: block;
}

.spotlight-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.spotlight-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.spotlight-icon-box {
    font-size: 8rem;
    opacity: 0.2;
    filter: drop-shadow(0 0 30px var(--primary));
}

/* Partners Branding */
.partners-section {
    padding-bottom: 8rem;
    text-align: center;
}

.partners-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 3rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.5s;
}

.partners-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.1em;
}



/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .glow-container {
        padding: 2rem;
        border-radius: 20px;
    }

    .spotlight-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hidden {
    display: none !important;
}

/* Project Execution Summary Section */
.project-execution-summary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 80px 10%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    background: #ffffff !important;
}

.project-execution-summary .execution-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.project-execution-summary .execution-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b !important;
    /* Force visible dark blue */
    margin-bottom: 20px;
}

.project-execution-summary .execution-text strong {
    color: #15803d !important;
    /* Force eco green */
    font-weight: 700;
}

/* Progress Bar Styles */
.project-execution-summary .execution-progress-container {
    background: transparent;
    padding: 10px 0;
}

.project-execution-summary .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-execution-summary .progress-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0;
}

.project-execution-summary .delivery-date {
    font-size: 0.85rem;
    color: #64748b !important;
    font-style: italic;
}

.project-execution-summary .main-progress-bar {
    height: 12px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.project-execution-summary .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-execution-summary .progress-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.project-execution-summary .progress-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8 !important;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    flex: 1;
}

.project-execution-summary .progress-label.completed {
    color: #15803d !important;
}

/* Project Board */
.project-execution-summary .project-board {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    position: relative;
}

.project-execution-summary .board-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-execution-summary .board-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b !important;
    /* Darker gray for labels */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-execution-summary .board-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a !important;
}

.project-execution-summary .board-footer {
    grid-column: span 3;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 10px;
}

/* Visuals Grid */
.execution-visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas:
        "large large"
        "small1 small2";
}

.img-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.img-card:hover img {
    transform: scale(1.05);
}

.img-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.img-large {
    grid-area: large;
    height: 320px;
}

.img-small1 {
    grid-area: small1;
    height: 200px;
}

.img-small2 {
    grid-area: small2;
    height: 200px;
}

@media (max-width: 1024px) {
    .project-execution-summary {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }
}

@media (max-width: 640px) {
    .project-board {
        grid-template-columns: 1fr;
    }

    .board-footer {
        grid-column: span 1;
    }

    .execution-visuals {
        grid-template-columns: 1fr;
        grid-template-areas: "large" "small1" "small2";
    }
}

/* Insights Statistics Strip */
.insights-strip {
    width: 100%;
    background: #0f172a !important;
    padding: 0.5rem 10%;
    position: relative;
    z-index: 10;
}

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.insights-strip .hero-stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.insights-strip .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.insights-strip .stat-txt {
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .insights-container {
        justify-content: center;
        gap: 40px;
    }
}

/* Regional Badge */
.regional-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   ECOSYSTEM EDITOR (CMS MODULE)
   ========================================== */

.eco-editor-layout {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
    overflow: hidden;
}

.eco-editor-sidebar {
    width: 340px;
    min-width: 340px;
    background: #0c1222;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eco-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eco-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}

.eco-search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.eco-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.eco-sidebar-filters {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.eco-filter-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.eco-filter-select option {
    background: #1e293b;
    color: white;
}

.eco-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.eco-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.eco-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.eco-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.eco-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.eco-sidebar-item.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.eco-sidebar-item .eco-item-code {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(34, 197, 94, 0.15);
    padding: 3px 7px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.eco-sidebar-item .eco-item-name {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.eco-sidebar-item .eco-item-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.eco-sidebar-item .eco-item-badge.new {
    background: #a78bfa;
    color: white;
}

.eco-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.eco-count-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.eco-sidebar-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Editor Main Panel */
.eco-editor-main {
    flex: 1;
    overflow-y: auto;
    background: #0f172a;
    padding: 2rem 2.5rem;
}

.eco-editor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.eco-placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.eco-editor-placeholder h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.eco-editor-placeholder p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Editor Header */
.eco-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.eco-editor-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.eco-code-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-light);
    background: rgba(34, 197, 94, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

.eco-editor-title-row h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.eco-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.eco-status-badge.existing {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.eco-status-badge.nueva {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.eco-editor-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.eco-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eco-btn-save {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.eco-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.eco-btn-ficha {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eco-btn-ficha:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eco-btn-export {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.eco-btn-export:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Tabs */
.eco-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.eco-tab {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.eco-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.02);
}

.eco-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}

.eco-tab-content {
    display: none;
    animation: ecoFadeIn 0.3s ease;
}

.eco-tab-content.active {
    display: block;
}

@keyframes ecoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.eco-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.eco-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eco-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eco-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eco-input,
.eco-textarea {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.eco-input:focus,
.eco-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.eco-textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.eco-section-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Variants Section */
.eco-variants-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.eco-variant-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.eco-variant-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.05);
}

.eco-variant-card .eco-var-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.eco-variant-card .eco-var-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

/* Parent Levels */
.eco-level-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.eco-level-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0 0 0.5rem 0;
}

.eco-level-card .eco-level-name {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.eco-level-card textarea {
    width: 100%;
}

/* Ficha Descriptiva */
.eco-ficha-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.eco-ficha-container {
    background: white;
    color: #1e293b;
    border-radius: 16px;
    padding: 3rem;
    max-width: 900px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.eco-ficha-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
    border-bottom: 3px solid #15803d;
    padding-bottom: 0.8rem;
}

.eco-ficha-container .ficha-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 1.5rem;
    display: block;
}

.eco-ficha-container h2 {
    font-size: 1.1rem;
    color: #15803d;
    margin: 2rem 0 0.8rem 0;
    border-left: 4px solid #15803d;
    padding-left: 12px;
}

.eco-ficha-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0;
    font-size: 0.85rem;
}

.eco-ficha-container table th {
    background: #f1f5f9;
    text-align: left;
    padding: 8px 12px;
    font-weight: 700;
    color: #334155;
    width: 35%;
    border: 1px solid #e2e8f0;
}

.eco-ficha-container table td {
    padding: 8px 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.eco-ficha-container .ficha-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .eco-editor-layout {
        flex-direction: column;
        height: auto;
    }

    .eco-editor-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 40vh;
    }

    .eco-form-grid {
        grid-template-columns: 1fr;
    }
}

@media print {

    .eco-editor-sidebar,
    .eco-editor-header,
    .eco-tabs,
    .eco-ficha-toolbar,
    .navbar {
        display: none !important;
    }

    .eco-editor-main {
        padding: 0 !important;
        background: white !important;
    }

    .eco-ficha-container {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}