/* Base Styles */
:root {
    --forest-dark: #1b5e20;
    --forest-medium: #2e7d32;
    --forest-light: #4caf50;
    --forest-lighter: #81c784;
    --forest-lightest: #c8e6c9;
    --text-dark: #263238;
    --text-light: #f5f5f5;
    --accent-gold: #ffd54f;
    --accent-blue: #4fc3f7;
    --accent-orange: #ff8a65;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--forest-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaf {
    width: 20px;
    height: 20px;
    background-color: var(--forest-lightest);
    border-radius: 50% 0 50% 50%;
    margin: 0 5px;
    animation: leafFloat 2s infinite ease-in-out;
}

.leaf:nth-child(1) {
    animation-delay: 0s;
}
.leaf:nth-child(2) {
    animation-delay: 0.2s;
}
.leaf:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes leafFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.forest-whisper {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
}

.btn-forest {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-forest:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-transparent {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-transparent:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-skip {
    background-color: transparent;
    color: var(--forest-medium);
    border: 2px solid var(--forest-medium);
    margin-left: 1rem;
}

.btn-skip:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--forest-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Forest Background */
.forest-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--forest-dark), var(--forest-light));
    overflow: hidden;
    z-index: 1;
}

/* Particles.js Container */
.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Onboarding Styles */
.onboarding-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.onboarding-progress {
    height: 6px;
    background-color: rgba(255,255,255,0.2);
    width: 100%;
    position: relative;
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-gold);
    transition: width 0.5s ease;
    border-radius: 0 3px 3px 0;
}

.onboarding-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.step {
    background-color: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

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

/* Option Selection Styles */
.mood-options, .companion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.mood-option, .companion-option {
    position: relative;
}

.mood-option input[type="radio"],
.companion-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mood-option .option-content,
.companion-option .companion-card {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mood-option input[type="radio"]:checked + .option-content,
.companion-option input[type="radio"]:checked + .companion-card {
    border-color: var(--forest-light);
    background-color: var(--forest-lightest);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

.mood-option .mood-symbol {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mood-option.gentle .mood-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.companion-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--forest-light);
}

.premium-badge {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Mover Preview */
.mover-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background-color: #f0f0f0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Settings Toggles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.setting-toggle {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}

.toggle-slider:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.setting-toggle input {
    display: none;
}

.setting-toggle input:checked + .toggle-slider {
    background-color: var(--forest-light);
}

.setting-toggle input:checked + .toggle-slider:after {
    transform: translateX(26px);
}

/* Dashboard Layout */
.forest-dashboard {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: 1fr auto;
    height: 100vh;
}

.forest-nav {
    grid-column: 1;
    grid-row: 1 / span 2;
    background-color: rgba(30, 70, 30, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.forest-main {
    grid-column: 2;
    grid-row: 1;
    padding: 2rem;
    overflow-y: auto;
    z-index: 2;
    background-color: rgba(255,255,255,0.9);
}

.forest-footer {
    grid-column: 2;
    grid-row: 2;
    background-color: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 2;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    border-top: 1px solid #eee;
}

/* User Profile */
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-name {
    font-size: 0.9rem;
    text-align: center;
}

/* Navigation Locations */
.forest-locations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.location-btn.active {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    transform: scale(1.1);
}

.location-btn:hover:not(.active) {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.location-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--forest-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.location-btn:hover::after {
    opacity: 1;
}

/* Companion Display */
.companion-display {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.companion-display img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    margin-bottom: 0.5rem;
}

.companion-speech {
    background-color: white;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 150px;
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.companion-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

/* Forest Sections */
.forest-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* Mood Visualization */
.mood-visualization {
    height: 300px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mood-tracker {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.mood-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.mood-option {
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.mood-option.selected {
    background-color: var(--forest-lightest);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mood-option.neutral {
    border: 1px solid #ddd;
}

.mood-option.neutral.selected {
    border-color: var(--forest-light);
    background-color: var(--forest-lightest);
}

/* Journal Container */
.journal-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.river-flow {
    height: 200px;
    background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
    position: relative;
    overflow: hidden;
}

.journal-entry {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.journal-entry textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forest-dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .forest-nav {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5