/* css/modal-gas.css - SCOPED */

/* --- LAYOUT --- */
#modal_gas .modal-top-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 15px; margin-bottom: 10px; flex-shrink: 0;
}

#modal_gas .detail-card {
    background: #252527; border-radius: 18px; padding: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); min-height: 140px;
}

/* Akzentfarbe Orange */
#modal_gas .detail-card.gas-accent {
    border-color: rgba(230, 126, 34, 0.4);
}

#modal_gas .detail-title {
    font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px;
    position: absolute; top: 10px; left: 0; width: 100%; text-align: center;
    z-index: 10;
}

/* --- FLASCHEN VISUALISIERUNG (Dashboard Style) --- */
/* Wrapper für Flasche + Text nebeneinander */
#modal_gas .bottle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

#modal_gas .gas-bottle-visual {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    width: 50px; /* Breite fixieren */
}

/* Kopf */
#modal_gas .gas-bottle-head {
    width: 26px; height: 12px;
    background: #444;
    border: 2px solid #555; border-bottom: none;
    border-radius: 4px 4px 0 0;
    position: relative; z-index: 2;
}
#modal_gas .gas-bottle-head::after {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 5px; background: #666; border-radius: 2px;
}

/* Körper */
#modal_gas .gas-bottle-body {
    width: 45px; height: 80px;
    background: #222;
    border: 2px solid #555;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px #000;
}

/* Flüssigkeit */
#modal_gas .gas-liquid {
    position: absolute; bottom: 0; left: 0; width: 100%;
    height: 0%; /* JS steuert das */
    background: linear-gradient(to top, #2ecc71, #27ae60);
    transition: height 1.0s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}
/* Farbe bei wenig Inhalt (wird per JS Klasse .low gesteuert oder direkt CSS var) */
#modal_gas .gas-liquid.low { background: linear-gradient(to top, #e74c3c, #c0392b); }


/* --- INFO SPALTE NEBEN DER FLASCHE --- */
#modal_gas .gas-info-col {
    display: flex; flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#modal_gas .main-percent {
    font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1;
}
#modal_gas .sub-info {
    font-size: 0.8rem; color: #aaa; margin-top: 4px;
    display: flex; align-items: center; gap: 5px;
}
#modal_gas .sub-info i { color: #e67e22; font-size: 0.7rem; }


/* --- CHART CONTAINER --- */
#modal_gas .chart-container {
    position: relative; width: 100%;
    min-height: 250px;
    background: rgba(230, 126, 34, 0.05);
    border-radius: 15px; padding: 10px; margin-bottom: 5px;
    flex-grow: 1;
    border: 1px solid rgba(230, 126, 34, 0.1);
}

/* Responsive */
@media (min-width: 1000px) {
    #modal_gas .chart-container { min-height: 40vh; }
    #modal_gas .modal-top-grid { grid-template-columns: 1fr 1fr 1fr; }
}