.elementor-43637 .elementor-element.elementor-element-2a9efdb3{--display:flex;--min-height:500px;--justify-content:center;}/* Start custom CSS */* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
}

.cannabis-table-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin-right: 20px;
}

#search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    background: #eaeaea;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #d4d4d4;
}

.filter-btn.active {
    background: #2c3e50;
    color: white;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.color-box {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.color-box.cannabinoid { background-color: #3498db; }
.color-box.terpene { background-color: #2ecc71; }
.color-box.flavonoid { background-color: #e74c3c; }
.color-box.precursor { background-color: #f39c12; }

/* Periodic Grid */
.periodic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.molecule-element {
    height: 130px;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.molecule-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.molecule-element.cannabinoid { background-color: #3498db; }
.molecule-element.terpene { background-color: #2ecc71; }
.molecule-element.flavonoid { background-color: #e74c3c; }
.molecule-element.precursor { background-color: #f39c12; }

.element-symbol {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.element-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.element-category {
    font-size: 12px;
    opacity: 0.8;
}

/* Molecule Details Panel */
.molecule-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.molecule-details.active {
    opacity: 1;
    visibility: visible;
}

.details-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.details-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
}

.details-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item h3 {
    margin-bottom: 10px;
    color: #3498db;
    font-size: 18px;
}

.detail-item ul {
    padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .periodic-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .molecule-element {
        height: 100px;
    }
}/* End custom CSS */