.myserverinfo-wrap {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    border-radius: 6px;
}

.myserverinfo-wrap h1, .myserverinfo-wrap h2 {
    text-align: center;
    margin-bottom: 20px;
}

.myserverinfo-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    table-layout: fixed;
}

.myserverinfo-table thead th {
    background-color: #f1f1f1;
    border-bottom: 2px solid #ddd;
}

.myserverinfo-table th, .myserverinfo-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.myserverinfo-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.myserverinfo-table td strong {
    font-weight: 600;
}

.resource-usage-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.resource-usage-item {
    flex: 1 1 30%;
    max-width: 30%;
    text-align: center;
    margin: 10px;
}

.resource-usage-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.resource-usage-item [role="progressbar"] {
    --percentage: var(--value);
    --primary: #369;
    --secondary: #adf;
    --size: 150px;
    animation: progress 2s 0.5s forwards;
    width: var(--size);
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    margin: 0 auto 10px;
}

.resource-usage-item [role="progressbar"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(var(--primary) calc(var(--percentage) * 1%), var(--secondary) 0);
    mask: radial-gradient(white 55%, transparent 0);
    mask-mode: alpha;
    -webkit-mask: radial-gradient(#0000 55%, #000 0);
    -webkit-mask-mode: alpha;
}

.resource-usage-item [role="progressbar"]::after {
    counter-reset: percentage var(--value);
    content: counter(percentage) '%';
    font-family: Helvetica, Arial, sans-serif;
    font-size: calc(var(--size) / 5);
    color: var(--primary);
}

.resource-usage-text {
    font-size: 1em;
    color: #333;
    margin-top: 10px;
}

.resource-usage-item p {
    margin: 0;
    padding-top: 5px;
}

.resource-usage-item label {
    font-size: 0.9em;
    color: #333;
}

.myserverinfo-wrap form {
    margin-bottom: 40px;
}

.myserverinfo-wrap form .submit {
    text-align: center;
    margin-top: 20px;
}

@keyframes progress {
    0% {
        --percentage: 0;
    }
    100% {
        --percentage: var(--value);
    }
}

@property --percentage {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

@media (max-width: 1024px) {
    .resource-usage-item {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .resource-usage-item [role="progressbar"] {
        --size: 130px;
    }

    .resource-usage-item [role="progressbar"]::after {
        font-size: calc(var(--size) / 6);
    }
}

@media (max-width: 768px) {
    .resource-usage-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .resource-usage-item [role="progressbar"] {
        --size: 120px;
    }

    .resource-usage-item [role="progressbar"]::after {
        font-size: calc(var(--size) / 6);
    }
}
