.customAlert{
    position:fixed;
    top:30px;
    left:30px;
    z-index:2000;
    box-shadow:0 0 10px black;
}

.customAlert_X{
    margin-left:25px;
    cursor:pointer;
    float:right;
}

.customAlert_X:hover{
    opacity:0.7;
}


:root {
    --sidebar-w: 220px;
    --bg: #f4f6f8;
    --sidebar-bg: #1e2530;
    --sidebar-active: #2c3646;
    --accent: #3d7cf4;
    --temp: #e07a3f;
    --humidity: #3d8cc9;
}
body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: #cfd6e0;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.sidebar .brand {
    padding: 22px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar .brand i {
    color: var(--accent);
    margin-right: 8px;
}
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cfd6e0;
    text-decoration: none;
    font-size: 14.5px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
}
.sidebar-nav li a i {
    width: 18px;
    text-align: center;
    opacity: 0.85;
}
.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.sidebar-nav li a.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: var(--accent);
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfd6e0;
    text-decoration: none;
    font-size: 14.5px;
}
.sidebar-footer a:hover {
    color: #fff;
}

.main {
    margin-left: var(--sidebar-w);
    padding: 30px 34px 50px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}
.topbar h4 {
    margin: 0;
    font-weight: 600;
    color: #23293a;
}
.topbar .meta {
    font-size: 13px;
    color: #8a92a3;
}
.topbar .meta .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38c172;
    margin-right: 6px;
}

.room-card {
    cursor: pointer;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.room-card:hover {
    box-shadow: 0 6px 18px rgba(30,40,60,0.08);
    transform: translateY(-2px);
}
.room-card .card-body {
    padding: 20px;
}
.room-card .room-title {
    font-size: 14px;
    font-weight: 600;
    color: #23293a;
    display: flex;
    justify-content: space-between;
}
.room-card .room-title .id {
    font-size: 11px;
    color: #b0b6c0;
    font-weight: 400;
}

.reading-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.reading {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    border-radius: 8px;
}
.reading + .reading {
    margin-left: 8px;
}
.reading.temp {
    background: rgba(224,122,63,0.08);
}
.reading.humidity {
    background: rgba(61,140,201,0.08);
}
.reading .val {
    font-size: 22px;
    font-weight: 700;
}
.reading.temp .val {
    color: var(--temp);
}
.reading.humidity .val {
    color: var(--humidity);
}
.reading .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a92a3;
    margin-top: 2px;
}

.chart-block {
    margin-bottom: 20px;
}
.chart-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a92a3;
    margin-bottom: 6px;
    font-weight: 600;
}