body{
    background-color: rgb(222, 247, 247);
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.sidebar{
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.6);
    width: 190px;
    height: 100vh;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s;
    transform: translateX(0);
    opacity: 1;
}

.border{
    position: fixed;
    left: 210px;
    width: calc(100vw - 230px);
    top: 20px;
    backdrop-filter: blur(1px);
    background: rgba(220, 240, 255, 0.5);
    box-shadow:0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    transition: left 0.4s cubic-bezier(.4,0,.2,1), width 0.4s;
    opacity: 1;
    box-sizing: border-box;
}

.maincontent {
    position: relative;
    width: calc(100% - 40px);
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px;
    overflow: auto;
    max-height: calc(100vh - 40px);
}

#bgVideo {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.sidebar > h3{
    text-align: center;
}

.sidebar ul li#active::marker {
    color: #ffdd80;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar ul li a:hover {
    background: #ffdd80;
    color: #fff;
}

.sidebar.hide {
    transform: translateX(-100%);
    opacity: 1;
}

#toggleBtn {
    z-index: 1;
    position: fixed;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    border-radius: 15px;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.border h1 {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
}

.border.hide {
    left: 20px;
    width: calc(100vw - 40px);
}

.maincontent a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.maincontent a:hover {
    background: #ffdd80;
    color: #fff;
}

.border + .border {
    margin-top: 20px;
}

#diary {
    position: absolute;
    bottom: 40px;
    opacity: 0;
    transition: opacity 0.2s;
    background: #ffdd80;
    color: #fff;
    padding: 1px 6px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

#diary1:hover #diary {
    visibility: visible;
    opacity: 1;
    color: #fff;
}

#diary a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 6px;
}

.monitor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.server-status-bar {
    background: rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #555;
}

.monitor-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}
/* 
.monitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.7);
} */

.monitor-title {
    font-size: 1.8em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.monitor-value {
    font-size: 3.5em;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin: 10px 0;
}

.monitor-unit {
    font-size: 1em;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin: 10px 0;
}


.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}

.status-dot.connected { background-color: #4caf50; box-shadow: 0 0 8px rgba(76, 175, 80, 0.4); }
.status-dot.error { background-color: #f44336; box-shadow: 0 0 8px rgba(244, 67, 54, 0.4); }
.status-dot.connecting { background-color: #ff9800; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}


.monitor-location {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,0,0,0.4);
    padding-bottom: 10px;
}

