/* =======================
   RESET
======================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#f5f7fb;
    overflow:hidden;
}

/* =======================
   CONTAINER
======================= */

.container{
    display:flex;
    width:100%;
    height:100vh;
}

/* =======================
   SIDEBAR
======================= */

.sidebar{
    width:220px;
    background:#ffffff;
    border-right:3px solid #d90429;
    padding:15px;
    box-shadow:2px 0 10px rgba(0,0,0,.1);
}

.logo{
    text-align:center;
    padding:10px;
    margin-bottom:20px;
}

.logo h2{
    color:#d90429;
    font-size:24px;
}

.menu{
    width:100%;
    padding:12px;
    margin-bottom:10px;
    border:none;
    border-radius:10px;
    background:white;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:.3s;
}

.menu:hover{
    background:#d90429;
    color:white;
}

/* =======================
   MAIN
======================= */

.main{
    flex:1;
    padding:15px 20px;
    position:relative;
}

/* =======================
   HEADER
======================= */

.header{
    text-align:center;
    border-bottom:3px solid #d90429;
    padding-bottom:8px;
}

.header h1{
    font-size:34px;
    color:#111;
}

/* =======================
   JAM
======================= */

.waktu{

    position:absolute;

    top:75px;
    right:20px;

    width:220px;
    height:50px;

    background:#d90429;
    color:white;

    border-radius:12px;

    display:flex;
    justify-content:center;
    align-items:center;

    gap:10px;

    font-size:15px;
    font-weight:bold;

    box-shadow:0 3px 10px rgba(0,0,0,.15);

}

/* =======================
   CARD SENSOR
======================= */

.sensor-row{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:80px;

}

.sensor{

    width:220px;
    height:105px;

    border-radius:15px;

    color:white;

    padding:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.15);

}

.sensor h3{
    font-size:17px;
}

.sensor h2{
    font-size:30px;
    margin-top:10px;
}

.suhu{
    background:linear-gradient(135deg,#ff5252,#d90429);
}

.rh{
    background:linear-gradient(135deg,#42a5f5,#1565c0);
}

.air{
    background:linear-gradient(135deg,#4caf50,#2e7d32);
}

/* =======================
   CONTENT
======================= */

.content-row{

    display:flex;

    justify-content:center;

    gap:15px;

    margin-top:20px;

}

/* =======================
   GRAFIK
======================= */

.grafik-box{

    width:760px;
    height:320px;

    background:white;

    border-radius:15px;

    padding:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

}

.grafik-box h3{
    color:#d90429;
    margin-bottom:10px;
    font-size:18px;
}

.grafik-box canvas{
    height:240px !important;
}

/* =======================
   STATUS
======================= */

.status-box{

    width:220px;
    height:320px;

    background:white;

    border-radius:15px;

    border:2px solid #d90429;

    text-align:center;

    padding:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

}

.status-box h3{
    color:#d90429;
    font-size:20px;
}

.status-icon{
    font-size:70px;
    margin-top:35px;
}

#status{

    margin-top:25px;

    padding:12px;

    background:#22c55e;

    color:white;

    border-radius:10px;

    font-weight:bold;

}

/* =======================
   PENGATURAN
======================= */

.setting-box{

    width:650px;

    margin:20px auto;

    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

}

.setting-box h2{
    color:#d90429;
    margin-bottom:15px;
}

.setting-box label{
    display:block;
    margin-top:10px;
}

.setting-box input{
    width:100%;
    padding:10px;
    margin-top:5px;
    border:1px solid #ccc;
    border-radius:8px;
}

.setting-box button{

    width:100%;

    margin-top:15px;

    padding:12px;

    border:none;

    border-radius:8px;

    background:#d90429;

    color:white;

    cursor:pointer;

}

/* =======================
   LOG DATA
======================= */

.log-box{

    background:white;

    margin-top:15px;

    padding:15px;

    border-radius:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

}

.log-box h2{
    color:#d90429;
    margin-bottom:15px;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#d90429;
    color:white;
    padding:10px;
}

table td{
    border:1px solid #ddd;
    padding:8px;
}

table tr:nth-child(even){
    background:#f8f8f8;
}