/* ---------------------------------------------------
   STRUCTURE GLOBALE DU DASHBOARD
--------------------------------------------------- */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ---------------------------------------------------
   CARTES (BRIQUES)
--------------------------------------------------- */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.card h3 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 20px;
}

/* ---------------------------------------------------
   STATISTIQUES
--------------------------------------------------- */
.stat {
    font-size: 18px;
    margin: 8px 0;
}

/* ---------------------------------------------------
   TÂCHES
--------------------------------------------------- */
.task-item {
    padding: 8px;
    border-left: 4px solid #4caf50;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* ---------------------------------------------------
   MINIATURES PLANTES
--------------------------------------------------- */
.plant-mini {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.plant-mini img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ---------------------------------------------------
   NOTES
--------------------------------------------------- */
.note-mini {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-style: italic;
}

/* ---------------------------------------------------
   MÉTÉO
--------------------------------------------------- */
#weather {
    background: #f1f8f4;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
}

/* ---------------------------------------------------
   CALENDRIER PREMIUM
--------------------------------------------------- */
#calendar {
    max-height: 360px;
    overflow-y: auto;
    padding: 5px;
}

/* Table */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    font-size: 14px;
}

/* En-têtes */
.calendar-table th {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    padding: 10px 0;
    border-radius: 10px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Cellules */
.calendar-table td {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    height: 90px;
    vertical-align: top;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    border: 1px solid #e0e0e0;
}

/* Survol */
.calendar-table td:hover {
    transform: scale(1.03);
    background: #f1f8f4;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Numéro du jour */
.calendar-table td strong {
    font-size: 16px;
    color: #2e7d32;
    font-weight: 700;
}

/* Liste des tâches */
.calendar-table ul {
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style: none;
}

/* Tâche */
.calendar-table li {
    font-size: 12px;
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #1b5e20;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

/* Pastille */
.calendar-table li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #4caf50;
}

/* Urgent */
.calendar-table li.urgent {
    background: #ffebee;
    color: #b71c1c;
}

.calendar-table li.urgent::before {
    background: #f44336;
}

/* Terminé */
.calendar-table li.done {
    background: #eeeeee;
    color: #616161;
    text-decoration: line-through;
}

.calendar-table li.done::before {
    background: #9e9e9e;
}

.plant-mini img {
    max-width: 55px !important;
    max-height: 55px !important;
    width: 55px !important;
    height: 55px !important;
}
.card.calendar-large { grid-column: span 2; }

.form-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    max-width: 500px;
}

.form-card input,
.form-card textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.btn {
    background: #4caf50;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #43a047;
}
