* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;

        }

        body {
             font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
/*            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            min-height: 80vh;
            padding: 20px;
            /*font-weight: bold;*/
            background: white;
            /*#EEE5D3*/
        }
        .container {
            max-width:100%;
            background: white;
            /*#F5F1DC*/
            border-radius:20px;
            padding:20px;
            box-shadow:0 20px 40px rgba(0,0,0,.1);
        }

        .header {
            margin-bottom: 30px;
        }

        .header h1 {
            font-size:clamp(1.6rem,4vw,2.9rem);
            color: black;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .header h5 {
            color: #7f8c8d;
            font-size:clamp(1rem,2.5vw,1.4rem);
        }

        .dashboard {
            display: grid;
            gap: 25px;
            /*margin-bottom: 1px;*/
        }

        .top-section {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 25px;
        }
        .level-container:hover {
             transform: translateY(-5px);
             cursor: pointer;
             transition: all 0.4s ease;
        }
        .level-container {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border: 2px solid #144fc6;
            border-radius: 0 0 40px 40px;
            position: relative;
            height: 300px;
            /*top: 100px;*/
            /*padding-bottom: 297px;*/
           
        }
        .level-container h3,
        .level-container i {
            font-size:clamp(1.2rem,3vw,1.4rem);
           /* margin-top: -1px;
            margin-right: 5px;
            margin-left: 3px;*/
            /*font-size: 1.3rem;*/
        }

        .water-level {
            border-radius: 0 0 40px 40px;
            /*max-height: 100%;*/
            /*top: 12%;*/
            width: 100%;
            /*background: black;*/
            height: 100%;
            max-height: 88%;
            transform: translate(-50%);
            left: 50%;
            bottom: 0px;
            /*background: linear-gradient(to top, #3498db 0%, #85c1e9 100%);*/
/*            border: 3px solid #2980b9;*/
/*            border-radius: 10px;*/
            /*margin: 0 auto;*/
            position: absolute;
            overflow: hidden;
           
        }
        .water-level2{
            position: absolute;
            background: linear-gradient(to top, #3498db 0%, #85c1e9 100%);
            height: 0%; 
            /*<?php echo $air; ?>%*/
            width:100%;
            transform: rotate(180deg);
            bottom: 0px;
            overflow: auto;
            border-radius: 15px 15px 0 0 ;
             animation: wave 2s ease-in-out infinite;
            animation: slideInLeft 3s ease-out;
            justify-content: center;
            display: flex;
        }

        .water-level2::before {
            overflow: hidden;
            border-radius: 15px 15px 0 0 ;
            content: '';
            position: absolute;
            top: 5%;
            left: 0;
            right: 0;
            bottom: 0px;
            background: linear-gradient(to top, #2980b9 0%, #5dade2 100%);
            animation: wave 2s ease-in-out infinite;
        }

        @keyframes wave {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .bubuk-section {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .bubuk-container:hover {
            transform: translateY(-5px);
            cursor: pointer;
             transition: all 0.4s ease;
        }
        .bubuk-container {
            /*background: linear-gradient(145deg, #fff3e0, #ffe0b2);*/
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            border: 2px solid #5a3905;
            /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
            position: sticky;
            height: 300px;
        }

        /*.bubuk-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }*/

        .bubuk-container h4,i {    
            margin-right: -16px;
            margin-top: -17px;
            margin-left: -16px;
            color: black;
             /*#663300*/
             font-size:clamp(1.2rem,3vw,1.4rem);
        }

        .bubuk-level {
            border-radius: 0 0 15px 15px;
            max-height: 88%;
            width: 100%;
            height: 100%;
            bottom: 0px;
            /*background: linear-gradient(to top, #753D05 0%, #753D05 100%);*/
            /*background: linear-gradient(45deg, #5e2b06, #8b4716, #a06125, #6d3209);*/
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
            /*border: 2px solid #a0522d;*/
            /*border-radius: 8px;*/
            left: 50%;
            /*margin: 0 auto;
            bottom: 0px;
*/          position: absolute;
            transform: translate(-50%);
        }
        .bubuk-level2{
            position: absolute;
            background: linear-gradient(45deg, #5e2b06, #8b4716, #a06125, #6d3209);
            height: 100%;
            max-height: 100%;
            width:100%;
            transform: rotate(180deg);
            bottom: 0px;
            overflow: hidden;
            border-radius: 15px 15px 0 0 ;
            justify-content: center;
            display: flex;
        }
        #bubuk1{
            height: <?php echo $bubukk1 ?>%; ;
        }
        #bubuk2{
            height: <?php echo $bubukk2 ?>%; ;
        }
        #bubuk3{
            height: <?php echo $bubukk3 ?>%; ;
        }

        .bubuk-level2::before {
            content: '';
            position: absolute;
            top: 30%;
            left: 0;
            right: 0;
            bottom: 0;
            /*background: linear-gradient(to top, #5C3106 0%, #5C3106 100%);*/
            
        }

        .bottom-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;

        }

        .temperature-container {
            /*background: linear-gradient(145deg, #fce4ec, #f8bbd9);*/
            border-radius: 15px;
            padding: -2px;
            text-align: center;
            /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
            border: 2px;

        }

        .temperature-circle h3 {
            position: absolute;
            color: black;
            margin-bottom: 140px;
            font-size:clamp(1.3rem,3vw,1.7rem);
        }
         .temperature-circle p{
            position: absolute;
            color: gray;
            bottom: 45px;

         }

        .temperature-circle {
            cursor: pointer;
            width: 250px;
            height: 250px;
            border-radius: 50%;
            background: conic-gradient(
                from 135deg,
                #4ade80 0deg,
                #fbbf24 90deg,
                #fb923c 180deg,
                #ef4444 270deg
            );
            /*background: conic-gradient(#ff6b6b 0deg, #ff8e8e 120deg, #ffb3b3 240deg, #ff6b6b 360deg);*/
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            box-shadow: 0 0 300px rgba(255, 27, 27, 0.62);
            position: relative;
            /*animation: rotate 10s linear infinite;*/
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .temperature-circle::before {
            content: '';
            position: absolute;
            width: 220px;
            height: 220px;
            background: white;
            border-radius: 50%;

        }

        .temp-text {
            position: relative;
            z-index: 1;
            font-size:clamp(1.3rem,4vw, 2.2rem);
            /*font-weight: bold;*/
            color: black;
            /*#c2185b*/

        }

        .stats-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .stat-box {
            position: relative;
            background: linear-gradient(145deg, #e8f5e8, #c8e6c9);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            border: 2px solid #4caf50;
            transition: all 0.3s ease;
        }

        .stat-box:hover {
            transform: translateX(5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            cursor: pointer;
        }

        .stat-box h4 {
            color: black;
            margin-bottom: 10px;
             font-size:clamp(1.3rem,3vw,1.7rem);
        }

        .stat-value {
            font-size:clamp(1.3rem,4vw,1.8rem);
            /*font-weight: bold;*/
            color: black;
            margin-left: 45px;
        }

        .status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #4caf50;
            animation: pulse 2s infinite;
        }
        .penutup{
            position: absolute;
            right: 0px;
            top: 35px;
            height: 2px;
            width: 100%; 
            background-color: blue;
            z-index: 3;
            }
        /*.penutup p{
            margin-left: 135px;
        }*/
        .penutupkopi{
            position: absolute;
            right: 0.5px;
            top: 35px;
            height: 2px;
            width: 100%; 
            background-color: #5a3905;
            z-index: 3;
        }
        .stats-container form{
            /*osition: sticky;
            margin-right: 10px;*/
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
            100% { transform: scale(1); opacity: 1; }
        }

        .percentage {
            font-size:clamp(1rem,4vw,1.4rem);

            position: absolute;
            top: 10px;
            left: 43%;
            /*margin-top: 5px;*/
            /*margin: 25px auto 0 auto;*/


            /*bottom: 20px;*/

            /*text-align: center;*/
            /*max-height: 70px;   */
            /*overflow: auto;*/
            /*transform: rotate(180deg);*/
            /*left: 33%;*/
            
        }
        .header-air {
            display: flex;              /* sejajarkan */
            align-items: center;        /* tengah vertikal */
            gap: 20px;
            margin-top: 6px;                 /* jarak antar elemen */
            margin-left: 5px;
        }
        .header-air i{
            position: relative;
            top: 4px;
        }
        .formair{
            margin-top: 4px;
            margin-left: auto;
            margin-right: 19px;
       
        }
        .formGelas{
            position:absolute;
            top:20px;
            right:20px;
            background: red;  
        }
        button{
           background: none;
            border: none;
            cursor: pointer;
        }
        button:hover{
            transform: scale(1.25);
        }
        @media (max-width: 600px) {
            .top-section, .bottom-section {
                grid-template-columns: 1fr;
                max-width: 100%;
                gap: 15px;
            }
            
            .bubuk-section {
                grid-template-columns: 1fr;
            }
             .container{
                padding:25px;
            }
            #pemeliharaan{
                font-size: 11px;
            }
            lord-icon{
                top: 53px !important;
                width: 50px !important;
                height: 50px !important;
            }
            ./*maintenance-row .label {
               font-size: 0.8rem ;
               margin-bottom: 40px !important;
            }

            .maintenance-row .value {
                 text-align: left;
                font-size: 0.7rem !important;
                color: #555;
                margin-bottom: 40px !important;
            }*/
            .logout-btn{
                font-size:18px;
                top: 88px !important;
              }

              .logout-btn span{
                font-size:10px;
              }
               /*.user-info {
                display: none !important;
                width: 0;
                padding: 0;
                margin: 0;
              }*/
              .label{
                    font-size: 11px;
                }
              .metric-row {
                flex-direction: column;
              }

              .user-info {
                display: none;
              }
        }
       /* ===== MODAL ===== */
        .modal-overlay {
           position: fixed;
          inset: 0;
          background: rgba(0,0,0,0.55);
          backdrop-filter: blur(6px);
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          pointer-events: none;
          transition: .3s;
          z-index: 999999; /* 🔥 PENTING */
        }

        .modal-overlay.active {
          opacity: 1;
          pointer-events: auto;
        }

        .popup-box {
          background: #fff;
          width: 320px;
          padding: 22px;
          border-radius: 16px;
          text-align: center;
          box-shadow: 0 20px 40px rgba(0,0,0,.2);
          transform: scale(.8);
          transition: .3s;
        }

        .modal-overlay.active .modal {
          transform: scale(1);
        }

        .modal h3 {
          margin-bottom: 8px;
        }

        .modal p {
          font-size: 14px;
          color: #555;
        }

        /* ===== BUTTON ===== */
        .modal-actions {
          display: flex;
          gap: 10px;
          margin-top: 20px;
        }

        .btnn {
          flex: 1;
          padding: 10px;
          border: none;
          border-radius: 10px;
          cursor: pointer;
          /*font-weight: bold;*/
        }

        .batal{
            background: indianred;
            color: white;
        }

        .ya {
          background: #2caa84 ;
          color: white;
        }

        .btnn:hover {
          opacity: .85;
        }

        /* ===== NOTIF ===== */
        .notif {
          position: fixed;
          top: 20px;
          right: -300px;
          padding: 14px 20px;
          border-radius: 12px;
          color: white;
          font-weight: bold;
          box-shadow: 0 10px 30px rgba(0,0,0,.2);
          transition: .4s;
          z-index: 1000;
        }

        .notif.show {
          right: 20px;
        }

        .notif.success { background: #2caa84; }
        .notif.error { background: #e74c3c; }

        .slow{
             --fa-animation-duration: 14.5s;
        }
        .interval{
            --fa-animation-duration: 0.1s;  /* lama animasi */
            --fa-animation-delay: 10s;     /* jeda antar animasi */
        }

        .metric-card {
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
            cursor: pointer;
            top: 20px;
        }
        .metric-card:hover {
            transform: translateY(-5px);
        }

         lord-icon {
            position: absolute;
            top: 20px;
            right: 53px;
            width: 130px;
            height: 130px;
        }

       .maintenance-row { 
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 8px;
          width: 100%;
        }

        .maintenance-row .label {
          font-weight: 600;
        }

        .maintenance-row .value {
          font-weight: 600;
          text-align: right;
        }


            /*logout*/
        .top-bar{
           
        }

        .logout-btn{
            position: absolute;
          top: 93px;
          right: 30px;
          display:flex;
          flex-direction:column;
          align-items:center;
          text-decoration:none;
          color:#6b4119;
          font-size:22px;
        }

        .logout-btn i{
          transition:.3s;
        }

        .logout-btn span{
          font-size:12px;
          margin-top:4px;
          opacity:0;
          transform:translateY(-5px);
          transition:.3s;
        }

        .logout-btn:hover i{
          transform:scale(1.3);
        }

        .logout-btn:hover span{
          opacity:1;
          transform:translateY(0);
        }

        .user-box i {
          font-size: 20px;
          line-height: 1;
        }

        .user-box span {
          line-height: 1;
        }
        .metric-wrapper {
            margin-top: 10px;
  width: 100%;
}

.metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.metric-row {
  display: flex;
  gap: 16px;
}

.metric-col {
  flex: 1;
}

.metric-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.metric-user i{
    margin-top: 4px;
}
.badge {
  background: #28a745;
  /*color: #fff;*/
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.valuee {
  font-size: clamp(12px, 3vw, 16px);
  white-space: nowrap;
}

