/* Themes - Consistent Neumorphic Style */
.theme-white { --bg: #ffffff; --s1: #d1d1d1; --s2: #ffffff; --t: #333; --acc: #4CAF50; /* Green for nature */ }
.theme-dark { --bg: #1e1e1e; --s1: #0d0d0d; --s2: #2a2a2a; --t: #f0f0f0; --acc: #8BC34A; /* Lighter green */ }
.theme-blue { --bg: #e3f2fd; --s1: #bbdefb; --s2: #ffffff; --t: #0d47a1; --acc: #2196F3; /* Blue for sky/water */ }
.theme-rose { --bg: #fff1f3; --s1: #f8bbd0; --s2: #ffffff; --t: #880e4f; --acc: #E91E63; /* Original accent for consistency if desired */ }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f0f2f5; /* Light background for the whole page */
    color: var(--t);
}

.disc-pro-wrapper {
    background: #f0f2f5; /* Wrapper background */
    padding: 20px;
}

#tree-calc-app {
    max-width: 400px;
    margin: 0 auto 50px auto;
    background: var(--bg);
    padding: 30px;
    border-radius: 40px;
    position: relative;
    transition: 0.3s;
    box-shadow: 15px 15px 35px var(--s1), -15px -15px 35px var(--s2);
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.theme-dots {
    display: flex;
    gap: 8px;
}
.t-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
}
.dot-white { background: #fff; }
.dot-dark { background: #333; }
.dot-blue { background: #2196F3; }
.dot-rose { background: #E91E63; }
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t);
    padding: 0; /* Remove default padding */
    display: flex; /* To center SVG if needed */
    align-items: center;
    justify-content: center;
}

.voice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
#tree-mic-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--bg);
    color: var(--t);
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--s1), -4px -4px 8px var(--s2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#tree-mic-btn.active {
    background: #f44336;
    color: #fff;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), inset -3px -3px 6px rgba(255,255,255,0.2);
}
#tree-mic-status {
    font-size: 11px;
    color: #888;
}

.result-screen {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 10px;
    border-radius: 25px;
    box-shadow: inset 5px 5px 12px var(--s1), inset -5px -5px 12px var(--s2);
}
.final-price-row {
    font-size: 48px;
    font-weight: 800;
    color: var(--acc);
    line-height: 1;
}
.savings-note {
    font-size: 14px;
    font-weight: 700;
    color: var(--acc); /* Changed to accent color */
    margin: 10px 0;
}

.progress-bar-container {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 20px;
}
#tree-cost-progress {
    height: 100%;
    width: 0%;
    background: var(--acc); /* Use accent color for progress */
    transition: 0.5s;
}

.input-panel label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    padding-left: 5px;
}
.input-panel input,
.input-panel select {
    width: 100%;
    padding: 14px;
    border-radius: 15px;
    border: none;
    background: var(--bg);
    color: var(--t);
    font-size: 16px;
    box-shadow: 4px 4px 8px var(--s1), -4px -4px 8px var(--s2);
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box; /* Include padding in width calculation */
    transition: box-shadow 0.2s;
}
.input-panel input:focus,
.input-panel select:focus {
    box-shadow: inset 3px 3px 6px var(--s1), inset -3px -3px 6px var(--s2);
}

.dual-row {
    display: flex;
    gap: 15px;
}
.dual-row .field {
    flex: 1; /* Ensure fields in dual-row take equal space */
}

.summary-card {
    background: var(--bg);
    padding: 15px;
    border-radius: 20px;
    box-shadow: inset 3px 3px 6px var(--s1), inset -3px -3px 6px var(--s2);
    font-size: 12px;
    color: var(--t);
    border-left: 4px solid var(--acc);
    line-height: 1.5;
}

/* History Overlay */
#tree-hist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 100;
    border-radius: 40px;
    padding: 25px;
    transition: 0.4s ease-in-out;
    transform: translateY(100%); /* Start hidden below */
    opacity: 0;
    visibility: hidden; /* Hide from screen readers when hidden */
}
#tree-hist-overlay.overlay-hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}
#tree-hist-overlay:not(.overlay-hidden) {
    transform: translateY(0%); /* Slide up */
    opacity: 1;
    visibility: visible;
}


.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--s1);
    padding-bottom: 15px;
    margin-bottom: 15px;
    color: var(--t);
    font-weight: bold;
}
.back-btn {
    background: var(--acc);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}
.back-btn:hover {
    filter: brightness(1.1);
}
.clear-txt {
    font-size: 12px;
    color: #f44336;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-txt:hover {
    color: #c0392b;
}
.log-item {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
    color: var(--t);
    cursor: pointer;
    transition: background-color 0.2s;
}
.log-item:hover {
    background-color: rgba(0,0,0,0.03);
}
.empty-msg {
    text-align: center;
    color: #888;
    margin-top: 30px;
}

/* SEO Content Section */
.disc-seo-article {
    max-width: 850px;
    margin: 0 auto;
    color: #444;
    line-height: 1.8;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.disc-seo-article h1,
.disc-seo-article h2 {
    border-left: 6px solid var(--acc);
    padding-left: 15px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
}
.disc-seo-article h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}
.disc-seo-article ul,
.disc-seo-article ol {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}
.disc-seo-article li {
    margin-bottom: 8px;
}
.seo-tags-footer {
    background: #f9f9f9;
    padding: 20px;
    border: 1px dashed var(--acc);
    margin-top: 40px;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    #tree-calc-app {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 25px;
    }
    .final-price-row {
        font-size: 36px;
    }
    .dual-row {
        flex-direction: column;
        gap: 0;
    }
    .input-panel input,
    .input-panel select {
        margin-bottom: 15px;
    }
    .disc-seo-article {
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
}