/* GENEL */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #030303;
    font-family: "Courier New", monospace;
    color: #d4e9ff;
}

.title {
    text-align: center;
    margin: 18px 0;
    font-size: 24px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #0af;
}

/* Rack frame */
.rack-frame {
    width: 95%;
    max-width: 450px;
    margin: auto;
    background: #0b0b0b;
    padding: 0;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0,150,255,0.25);
}

/* Fanlar */
.fan-row {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: #000;
}
.fan {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #333;
    animation: spin 2.2s linear infinite;
}
@keyframes spin { from {transform: rotate(0);} to { transform: rotate(360deg);} }

/* Cam panel */
.rack-glass {
    padding: 10px;
    background: rgba(10,20,30,0.45);
    backdrop-filter: blur(4px);
    border-radius: 8px;
}

/* Her 1U satır */
.unit {
    background: rgba(5,5,5,0.55);
    border: 1px solid #111;
    border-radius: 6px;
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    padding: 6px 10px;
    height: 50px; /* Daha DAR */
}

/* Soldaki yatay barlar */
.activity-bars {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-right: 10px;
    width: 50px;
}

.bar-line {
    width: 8px;
    height: 28px;
    background: #0c1c23;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.bar-line .fill {
    width: 100%;
    height: 0;
    background: #00eaff;
    transition: height .12s;
}


/* Ortadaki isim + ping blok */
.center-block {
    flex: 1;
    text-align: center;
}
.server-name {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 6px #0af;
}
.ping {
    font-size: 11px;
    opacity: 0.8;
}

/* Sağdaki LED */
.right-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-led {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #444;
    box-shadow: 0 0 8px #000;
}
.status-led.online {
    background: #00ff40;
    box-shadow: 0 0 10px #00ff40;
}
.status-led.offline {
    background: #ff2525;
    box-shadow: 0 0 10px #ff2525;
}

/* Responsive */
@media(max-width:480px){
    .unit { height: 46px; }
    .server-name { font-size: 13px; }
}


/* ETH LEDLERİ */
.eth-panel {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.eth-led {
    width: 18px;
    height: 6px;
    background: #00caff;
    opacity: .3;
    border-radius: 2px;
    transition: .12s;
}

/* POPUP */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background: #0d0d0d;
    padding: 22px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 0 20px #000;
}
.popup-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}
.popup-content label {
    font-size: 13px;
}
.popup-content button {
    margin-top: 18px;
    width: 100%;
    padding: 10px;
    background: #0077ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* POPUP BARI */
.bar {
    width: 100%;
    height: 14px;
    background: #111;
    border-radius: 3px;
    margin-bottom: 10px;
}
.bar div {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #0af, #3ff);
    border-radius: 3px;
    transition: width .5s;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .server-name {
        font-size: 13px;
    }
}
@media (max-width: 600px) {

    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .rack-frame {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .rack-glass {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        border-radius: 0 !important;
    }
}

