:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg: #ecfdf5;
    --text: #064e3b;
    --card-bg: #ffffff;
    --border: #a7f3d0;
    --font: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.leaf-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 22.485l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.828-1.415 1.415-.828-.828-.828.828L-2.83 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.828-1.415 1.415-.828-.828-.828.828L-2.83 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM54.627 54.627l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 54.627l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828z' fill='%2310b981' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

header p {
    color: #047857;
    font-size: 1.1rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    margin-bottom: 0.5rem;
}

.value-display {
    text-align: right;
    font-weight: 800;
    color: var(--primary);
}

small {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.results-panel {
    background: #064e3b;
    color: #ecfdf5;
    display: flex;
    flex-direction: column;
}

.results-panel h2 {
    color: #6ee7b7;
}

.main-result {
    text-align: center;
    margin: 1rem 0;
}

#total-co2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.unit {
    font-size: 1.2rem;
    color: #6ee7b7;
    display: block;
    margin-top: 0.5rem;
}

.result-subtitle {
    text-align: center;
    color: #a7f3d0;
    margin-bottom: 0.5rem;
}

.comparison {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.chart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: #34d399;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 2px;
}

.label {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #a7f3d0;
}

.tips-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tips-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tips-box ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #d1fae5;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.btn-primary:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}