/* Reset & базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f7f0;
    color: #2c3e2f;
    line-height: 1.6;
    padding-bottom: 20px;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1 i {
    font-size: 2rem;
}

/* Навигация */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav a:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Карточки растений */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.plant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e8f0e8;
}

.plant-info {
    padding: 20px;
}

.plant-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1b5e20;
}

.plant-species {
    color: #6b7b6b;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.watering-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid #e0e7e0;
    border-bottom: 1px solid #e0e7e0;
}

.water-badge {
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.light-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.plant-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f0e8;
    color: #2c3e2f;
}

.btn-primary {
    background: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background: #1b5e20;
    transform: scale(1.02);
}

.btn-danger {
    background: #fdecea;
    color: #c62828;
}

.btn-danger:hover {
    background: #ffcdd2;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Формы */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1b5e20;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e7e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .plant-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Уведомления */
.alert {
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c8e6c9;
    color: #1b5e20;
    border-left: 5px solid #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 5px solid #c62828;
}