:root {
    --primary-green: #2ecc71;
    --secondary-green: #27ae60;
    --light-green: #d4edda;
    --dark-green: #1e8449;
    --text-color: #2c3e50;
    --background-color: #f4f6f7;
    --pdf-red: #e74c3c;
}

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

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

.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: var(--primary-green);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: var(--secondary-green);
}

.herb-page {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    position: relative;
}

.herb-page-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.herb-page-title {
    color: var(--dark-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-green);
    font-size: 2em;
}

.herb-section {
    margin-bottom: 25px;
}

.herb-section h2 {
    color: var(--secondary-green);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.herb-section h3 {
    color: var(--dark-green);
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.herb-section ul {
    padding-left: 20px;
}

.herb-section li {
    margin-bottom: 8px;
}

.pdf-section {
    background-color: var(--light-green);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    border: 1px dashed var(--primary-green);
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--pdf-red);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pdf-note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

.back-to-home {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.back-to-home:hover {
    background-color: var(--secondary-green);
}

/* Estilos para o container 3D */
#model-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

#model-container:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.model-instructions {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-bar {
    width: 80%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--primary-green);
    width: 0%;
    transition: width 0.3s;
}

@media (max-width: 600px) {
    .herb-page {
        margin: 20px;
        padding: 20px;
    }
    
    .herb-page-image {
        height: 200px;
    }
    
    #model-container {
        height: 300px;
    }
}