.d-none {
    display: none !important;
}

body {
    font-size: 14px;
    /* Adjust the base font size */
}

h2,
h4,
h5 {
    font-size: 1.25rem;
    /* Adjust heading sizes */
}

.form-label,
.form-select,
.card p,
.card h5 {
    font-size: 0.9rem;
    /* Adjust form and card text sizes */
}

/* reduce the line space between the text */
.card.p-3 p {
    line-height: 1.2;
    /* Adjust the line height (default is usually 1.5) */
    margin-bottom: 0.5rem;
    /* Optional: Reduce the bottom margin of paragraphs */
}

.container {
    margin: 20px;
}

#cpu-memory {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

#buttons {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    margin-right: 10px;
}

.table-responsive-sm {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive-sm th,
.table-responsive-sm td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table-responsive-sm th {
    background-color: #f2f2f2;
}

.increased {
    background-color: #dff0d8;
    /* Light green */
    transition: background-color 0.9s;
}

.decreased {
    background-color: #f2dede;
    /* Light red */
    transition: background-color 0.9s;
}


.chart-container {
    position: relative;
}

/* Add to dashboard.css or within a <style> tag */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Dim charts container during loading */
.charts-container.loading-dimmed {
    opacity: 0.5 !important;
    pointer-events: none;
    /* Disable interactions */
}

/* LOADER ############################################*/
.loader {
    display: block;
    position: relative;
    height: 20px;
    width: 140px;
    background-image:
        linear-gradient(#FFF 20px, transparent 0),
        linear-gradient(#FFF 20px, transparent 0),
        linear-gradient(#FFF 20px, transparent 0),
        linear-gradient(#FFF 20px, transparent 0);
    background-repeat: no-repeat;
    background-size: 20px auto;
    background-position: 0 0, 40px 0, 80px 0, 120px 0;
    animation: pgfill 1s linear infinite;
}

@keyframes pgfill {
    0% {
        background-image: linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    25% {
        background-image: linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    50% {
        background-image: linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    75% {
        background-image: linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FFF 20px, transparent 0);
    }

    100% {
        background-image: linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0), linear-gradient(#FF3D00 20px, transparent 0);
    }
}
