/* SERVER CONTROL OVERRIDES */

.server-card{
    width:100%;
    display:block;
    box-sizing:border-box;
    text-align:left;
    color:var(--text) !important;
    background:linear-gradient(
        145deg,
        rgba(16,29,45,.95),
        rgba(9,20,32,.95)
    ) !important;
    border:1px solid var(--border) !important;
    border-radius:18px;
    padding:22px;
    margin-bottom:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
    appearance:none;
    -webkit-appearance:none;
    font:inherit;
}

.server-card:hover{
    color:var(--text) !important;
    border-color:rgba(22,131,255,.35) !important;
    transform:translateY(-2px);
}

.server-card *,
.server-card-header *,
.server-stats *,
.server-stat *{
    color:inherit;
}

.server-name{
    color:var(--text) !important;
    font-size:20px;
    font-weight:700;
}

.server-meta{
    color:var(--muted) !important;
    font-size:13px;
    margin-top:4px;
}

.server-online{
    color:#20c77a !important;
    font-weight:700;
}

.server-status{
    display:inline-block;
    width:10px;
    height:10px;
    margin-right:8px;
    border-radius:50%;
    background:#20c77a;
    box-shadow:0 0 10px rgba(32,199,122,.6);
}

.server-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.server-stat{
    background:rgba(255,255,255,.025);
    border:1px solid var(--border);
    border-radius:12px;
    padding:14px;
}

.server-stat-label{
    color:var(--muted) !important;
    font-size:12px;
    margin-bottom:6px;
}

.server-stat-value{
    color:var(--text) !important;
    font-size:20px;
    font-weight:700;
}

.server-progress{
    height:5px;
    background:rgba(255,255,255,.06);
    border-radius:999px;
    overflow:hidden;
    margin-top:10px;
}

.server-progress > div{
    height:100%;
    background:var(--blue);
    border-radius:999px;
}

.server-detail{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.pi-server-controls,
.server-control-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:16px;
}

.pi-server-controls > .card,
.server-control-cards > .card{
    min-width:0;
    margin:0;
}

.server-control-cards-single{
    grid-template-columns:minmax(0,1fr);
}

.server-detail-header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:14px;
}

.server-detail-header h2{
    color:var(--text) !important;
    margin:0 0 4px 0;
}

.server-detail-header .muted{
    color:var(--muted) !important;
}

.server-back{
    border:1px solid var(--border);
    background:rgba(255,255,255,.04);
    color:var(--text) !important;
    padding:9px 14px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    transition:.15s ease;
}

.server-back:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(22,131,255,.35);
}

.server-detail-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.server-detail-stats .card{
    margin:0;
    color:var(--text) !important;
}

.server-detail-stats .card strong{
    display:block;
    color:var(--text) !important;
    font-size:20px;
    margin-top:6px;
}

.server-detail-stats .muted{
    color:var(--muted) !important;
}

.server-containers{
    display:flex;
    flex-direction:column;
}

.server-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 0;
    border-bottom:1px solid var(--border);
    color:var(--text) !important;
}

.server-container:last-child{
    border-bottom:0;
}

.server-container-name{
    color:var(--text) !important;
    font-weight:700;
    margin-bottom:5px;
}

.server-container-meta{
    color:var(--muted) !important;
    font-size:13px;
}

.container-dot{
    display:inline-block;
    width:9px;
    height:9px;
    border-radius:50%;
    margin-right:7px;
}

.container-dot.online{
    background:#42d392;
    box-shadow:0 0 8px rgba(66,211,146,.5);
}

.container-dot.offline{
    background:#e05252;
}

.server-container .secondary{
    color:var(--text) !important;
}

@media(max-width:800px){
    .server-detail-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .server-detail-header{
        grid-template-columns:1fr;
    }
}

@media(max-width:520px){
    .server-detail-stats{
        grid-template-columns:1fr;
    }

    .server-stats{
        grid-template-columns:1fr;
    }

    .server-container{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:900px){
    .pi-server-controls,
    .server-control-cards{
        grid-template-columns:1fr;
    }
}

/* BRAND BUTTON FIX */
.brand{
    border:0 !important;
    background:transparent !important;
    color:var(--text) !important;
    width:100%;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
}

.brand:hover{
    background:rgba(255,255,255,.04) !important;
    border-radius:12px;
}

.brand span{
    color:inherit;
}

/* SERVER DETAIL BUTTON FIX */

.server-back-button{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    min-width:110px !important;
    height:44px !important;
    padding:0 16px !important;

    border:1px solid var(--border) !important;
    border-radius:12px !important;

    background:#101e2f !important;
    color:#dce6f2 !important;

    font-size:14px !important;
    font-weight:600 !important;
    line-height:1 !important;

    cursor:pointer !important;
    box-shadow:none !important;
    opacity:1 !important;
}

.server-back-button:hover{
    background:#182b42 !important;
    border-color:#2b4664 !important;
    color:#ffffff !important;
    transform:translateY(-1px);
}

.server-back-button:active{
    transform:translateY(0);
}


/* HERSTART BUTTON */

.server-container .secondary,
.container-actions .secondary{
    appearance:none !important;
    -webkit-appearance:none !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    min-width:120px !important;
    height:42px !important;
    padding:0 16px !important;

    border:1px solid #2b4664 !important;
    border-radius:11px !important;

    background:#14263a !important;
    color:#e6eef8 !important;

    font-size:14px !important;
    font-weight:600 !important;
    line-height:1 !important;

    cursor:pointer !important;
    box-shadow:none !important;
    opacity:1 !important;
}

.server-container .secondary:hover,
.container-actions .secondary:hover{
    background:#1b3550 !important;
    border-color:#1683ff !important;
    color:#ffffff !important;
}

.server-container .secondary:active,
.container-actions .secondary:active{
    transform:translateY(1px);
}


/* Mobiel netjes */

@media(max-width:520px){

    .server-back-button{
        width:100% !important;
    }

    .server-container .secondary{
        width:100% !important;
    }

}
