/* Reset and Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    padding: 3rem;
    font-size: 18px;
}

header {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

/* Main Layout */
.container {
    max-width: 2000px;
    margin: 0 auto;
}

.main {
    display: flex;
    gap: 2.5rem;
}

/* Left Column - CPU */
#cpu-box {
    flex: 1;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 10px #222;
}

#cpuheader {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #90caf9;
}

.core {
    background-color: #2a2a2a;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.core-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.singlecorename {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.singlecorespeed {
    font-size: 0.95rem;
    color: #bbb;
}

.usagemeter-wrap {
    position: relative;
    height: 30px;
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.usagemeter {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    width: 0%;
    background-color: #33cc33;
    border-radius: 6px 0 0 6px;
    transition: width 0.4s ease-in-out, background-color 0.3s ease-in-out;
    z-index: 1;
}

.singlecoreusage {
    position: absolute;
    margin-top: 2px;
    margin-left: 2px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    font-weight: bold;
    
}
.percentage-box {
    background-color: #444;       
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-block;
}





#cpuusage {
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    color: #ffb74d;
}

/* CPU Gesamtlast mit Übergang */
#cpuusagepercentage {
    transition: color 0.4s ease;
}

/* Right Column */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* RAM, Network, Disk Boxes */
#rambox,
#networkbox,
#diskbox {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 10px #222;
}

#ramheader,
#diskusageheader,
#networkheader {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #81c784;
}

#ramusage {
    font-size: 1.1rem;
}

/* RAM Prozentzahl mit Transition */
#ramusageprecentagebox {
    font-size: 1.2rem;
    margin-top: 0.8rem;
    color: #ffb74d;
}

#ramusageprecentage {
    display: inline-block;
    transition: color 0.4s ease;
}

/* RAM Zahlen mit Übergang */
#ramusage_MB,
#ramusage_max_MB {
    transition: color 0.4s ease;
}

/* Network */
#uploadbox,
#downloadbox,
.networktotal {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Netzwerk Zahlen mit Übergang */
#uploadMb,
#downloadMb,
#networkMb {
    transition: color 0.4s ease;
}

#uploadbox,
#downloadbox {
    color: #64b5f6;
}

.networktotal {
    color: #4db6ac;
}

/* Disk */
#diskusageboxREAD {
    font-size: 1.3rem;
    color: #f06292;
}

#diskusageboxWRITE {
    font-size: 1.3rem;
    color: #64b5f6;
}

/* Disk Zahlen mit Übergang */
#diskusageREAD,
#diskusageWRITE {
    transition: color 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }

    body {
        font-size: 16px;
        padding: 2rem;
    }
}


#corebox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}


/* Zusätzliche Anpassungen für Handy-Nutzer */
@media (max-width: 480px) {
    body {
        padding: 1rem;
        font-size: 14px;
    }

    header {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .main {
        flex-direction: column;
        gap: 1.5rem;
    }

    #cpu-box,
    .right-column > div {
        padding: 1rem;
        border-radius: 12px;
    }

    #corebox {
        grid-template-columns: 1fr; /* cores untereinander anzeigen */
        gap: 0.3rem;
    }

    .core {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    #cpuusage {
        font-size: 1.5rem;
    }

    #ramheader,
    #diskusageheader,
    #networkheader {
        font-size: 1.3rem;
    }

    #ramusageprecentagebox {
        font-size: 1rem;
    }

    #uploadbox,
    #downloadbox,
    .networktotal,
    #diskusageboxREAD,
    #diskusageboxWRITE {
        font-size: 0.95rem;
    }
}

.singlecorespeed {
    font-size: 0.95rem;
    color: #aaa;
    margin-top: 0.4rem;
}



/* GPU Usage Box */
#gpubox {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 10px #222;
}

#gpuheader {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #81c784;
}

#gpuname {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fe8205;
    font-weight: bold;
}

.gpuline {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #90caf9;
}

.gpuline.total {
    font-weight: bold;
    color: #4caf50;
}

/* GPU Zahlen Übergang */
#gpu3D,
#gpuCopy,
#gpuCompute,
#gpuMemoryUsed,
#gpuMemoryTotal,
#gpuUtilization {
    transition: color 0.4s ease;
}


/* Kopiere dies in die style.css der Server-Webseite (192.168.178.158) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666; 
}