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

:root {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --soil-brown: #795548;
    --water-blue: #2196F3;
    --sun-yellow: #FFC107;
    --bg-color: #F5F5F5;
    --text-color: #333;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

.plant-status {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
}

.plant-visual {
    width: 200px;
    height: 300px;
}

#plant-svg {
    width: 100%;
    height: 100%;
}

.growth-info h2 {
    color: var(--dark-green);
    margin-bottom: 15px;
}

.growth-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--light-green), var(--primary-green));
    transition: width 0.5s ease;
}

.plant-age {
    color: #666;
    font-size: 0.9em;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sensor-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sensor-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.sensor-card h3 {
    color: var(--dark-green);
    margin-bottom: 10px;
}

.sensor-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.sensor-status {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

canvas {
    width: 100%;
    height: 80px;
}

.care-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.care-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.care-btn:hover {
    background: var(--dark-green);
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.3em;
}

.timeline {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.timeline h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
}

.timeline-item {
    padding: 15px;
    border-left: 3px solid var(--light-green);
    margin-left: 20px;
    margin-bottom: 15px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 20px;
    width: 15px;
    height: 15px;
    background: var(--primary-green);
    border-radius: 50%;
}

.timeline-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.timeline-content {
    color: var(--text-color);
}

.community {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.community h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat {
    padding: 20px;
    border-radius: 10px;
    background: var(--bg-color);
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
}

.modal-content h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
}

.water-animation {
    margin: 30px 0;
    height: 100px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.water-drop {
    width: 30px;
    height: 40px;
    background: var(--water-blue);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: drop 1s ease-in-out infinite;
}

.water-drop:nth-child(2) {
    animation-delay: 0.3s;
}

.water-drop:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes drop {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50px) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100px) scale(0.6);
        opacity: 0;
    }
}

.modal-close {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
}

.modal-close:hover {
    background: var(--dark-green);
}

@media (max-width: 768px) {
    .plant-status {
        flex-direction: column;
        text-align: center;
    }

    .care-actions {
        flex-direction: column;
    }

    .care-btn {
        width: 100%;
        justify-content: center;
    }

    .sensor-grid {
        grid-template-columns: 1fr;
    }
}