/* ===================================================== */
/*  DASHBOARD CHARTS – LIGHT THEME (CLEAN & FINAL)       */
/* ===================================================== */

/* Κάθε chart μέσα σε wrapper με σταθερό ύψος */
.softgraph-wrapper {
    position: relative;
    width: 100%;
    height: 300px;                 /* standard height */
    margin-top: 8px;
}

/* Θερμοκρασία – λίγο πιο ψηλό */
#tempChart-wrapper {
    height: 360px;
}

/* Το canvas πρέπει να γεμίζει πλήρως */
.softgraph-wrapper canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Softcard — παντα σταθερή */
.softcard {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #e5e7eb;
    display: block !important;
    height: auto !important;
    overflow: hidden !important;
}

/* Header της κάρτας */
.softcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.softcard-header {
    font-weight: 600;
    font-size: 16px;
}

.chart-dates {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Χρωματικές γραμμές πάνω */
.soft-blue   { border-top-color: #3b82f6; }
.soft-green  { border-top-color: #22c55e; }
.soft-yellow { border-top-color: #eab308; }
.soft-red    { border-top-color: #ef4444; }
.soft-orange { border-top-color: #fb923c; }

/* ============================================= */
/* FIX: Μην επιτρέπεις flex σε chart columns     */
/* ============================================= */
#graphs .col-md-6,
#graphs .col-md-12 {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

#graphs {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 2rem !important;
}

/* ============================================= */
/* WIND DIRECTION TIMELINE                       */
/* ============================================= */
#windDirTimeline {
    height: 260px !important;
}

.winddir-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 6px;
    padding: 0 4px;
}

/* ============================================= */
/* Responsive                                     */
/* ============================================= */
@media (max-width: 768px) {
    .softgraph-wrapper {
        height: 240px;
    }
    #tempChart-wrapper {
        height: 300px;
    }
}
