/* HydroScan Visual Vitals Styles (Ported from dashboard-test.css) */

.hydroscan-vitals-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
}

.hydroscan-vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.vital-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.vital-title {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

/* 1. Circular Progress (Plant Health) */
.circle-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.circle-inner {
    width: 80px;
    height: 80px;
    background: #f8f9fa; /* Match card bg */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.health-score {
    font-size: 1.5rem;
    color: #4caf50;
    font-weight: bold;
}

/* 2. Diet Level (3-Zone Scale) */
.diet-scale {
    height: 15px;
    background: linear-gradient(90deg, #ffeb3b 0% 33%, #4caf50 33% 66%, #f44336 66% 100%);
    border-radius: 10px;
    position: relative;
    margin: 20px 0 5px 0;
}
.diet-marker {
    position: absolute;
    top: -6px;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #333;
    transform: translateX(-50%);
}
.diet-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}
.diet-labels span {
    flex: 1;
    text-align: center;
}

/* 3. Foliage Density */
.density-visual {
    height: 100px;
    background: #e8f5e9;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}
.leaf-layer {
    position: absolute;
    bottom: 0;
    background: rgba(76, 175, 80, 0.6);
    width: 100%;
    border-radius: 50% 50% 0 0;
    transition: height 0.5s;
}
.leaf-1 { width: 80%; left: 10%; z-index: 1; background: rgba(76, 175, 80, 0.8); }
.leaf-2 { width: 90%; left: 5%; z-index: 2; background: rgba(76, 175, 80, 0.6); }
.leaf-3 { width: 60%; left: 20%; z-index: 3; background: rgba(76, 175, 80, 0.4); }

/* 4. Pest Risk */
.risk-meter {
    display: flex;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid #ddd;
}
.risk-segment {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.7rem;
    opacity: 0.3;
}
.risk-low { background: #4caf50; }
.risk-med { background: #ff9800; }
.risk-high { background: #f44336; }
.risk-segment.active { opacity: 1; font-weight: bold; transform: scale(1.05); }

/* Responsive titles for analysis pages */
@media (max-width: 768px) {
    body.single-ia_grow_analysis h1.entry-title,
    body.single-assisted_growth h1.entry-title,
    body.single-msg_crop h1.entry-title {
        font-size: 1.5em !important;
        line-height: 1.2;
    }

    .vitals-grid-compact {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        justify-items: center !important;
        align-items: stretch !important;
        max-width: 320px;
        margin: 0 auto;
    }

    .vitals-grid-compact > p,
    .vitals-grid-compact > br {
        display: none !important;
    }

    .vital-card-compact {
        width: 100% !important;
        max-width: 150px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
        margin: 0 auto !important;
    }

    .vital-title-compact {
        font-size: 0.78em !important;
        margin-bottom: 4px !important;
    }

    .vital-sub-compact {
        font-size: 0.78em !important;
    }

    .circle-chart-mini,
    .density-visual-mini {
        width: 44px !important;
        height: 44px !important;
    }

    .circle-inner-mini {
        top: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        left: 4px !important;
        font-size: 0.82em !important;
    }

    .diet-scale-mini {
        height: 7px !important;
    }

    .diet-marker-mini {
        height: 11px !important;
    }
}
/* Estilos para validaciones de Assisted Growth */  
.ag-validation-message {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    margin-top: 6px;  
    padding: 8px 12px;  
    border-radius: 6px;  
    font-size: 0.85em;  
    animation: agSlideDown 0.3s ease;  
}  
  
.ag-validation-message.ag-error {  
    background-color: #ffebee;  
    border-left: 3px solid #d32f2f;  
    color: #c62828;  
}  
  
.ag-validation-message.ag-warning {  
    background-color: #fff3e0;  
    border-left: 3px solid #f57c00;  
    color: #e65100;  
}  
  
input.ag-input-error {  
    border-color: #d32f2f !important;  
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1) !important;  
}  
  
input.ag-input-warning {  
    border-color: #f57c00 !important;  
    box-shadow: 0 0 0 2px rgba(245, 124, 0, 0.1) !important;  
}  
  
@keyframes agSlideDown {  
    from {  
        opacity: 0;  
        transform: translateY(-8px);  
    }  
    to {  
        opacity: 1;  
        transform: translateY(0);  
    }  
} 
