* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    background-color: oklch(27.8% 0.033 256.848);
}

.container {
    width: 100%;
    max-width: 96rem;
    margin-inline: auto;
    margin-top: 1rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
    overflow: hidden;
}

h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: white;
}

p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: oklch(87.2% 0.01 258.338);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
}

table {
    width: 100%;
    min-width: 640px;
    background-color: white;
    /* border-style: solid;
  border-width: 1px;
  border-color: oklch(96.7% 0.003 264.542); */
    border-collapse: collapse;
}

thead {
    background-color: oklch(80.9% 0.105 251.813);
}

th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    color: oklch(27.8% 0.033 256.848);
    vertical-align: top;
}

.loading-data {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 10rem;
    padding-bottom: 10rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    text-align: center;
    color: oklch(0.87 0.01 258.338);
    white-space: nowrap;
    user-select: none;
}

.loading-data:hover {
    background-color: white;
}

.floating-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.5rem; /* Fixed width */
    height: 3.5rem; /* Fixed height */
    background-color: #3b82f6;
    color: white;
    border-radius: 50%; /* Fully circular */
    display: flex; /* Center icon inside */
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.floating-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.1);
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

#section_officer {
    text-transform: uppercase;
    text-align: left;
    color: oklch(21% 0.034 264.665);
}

.low-progress {
    background-color: oklch(88.5% 0.062 18.334);
}

.medium-progress {
    background-color: oklch(94.5% 0.129 101.54);
}

.high-progress {
    background-color: oklch(87.1% 0.15 154.449);
}

td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
    color: oklch(37.3% 0.034 259.733);
}

td > a {
    display: inline-block;
    width: 5rem;
    padding: 0.25rem 1.5rem;
    border-radius: 2rem;
    color: inherit;
    text-decoration: none;
}

tbody > tr:hover {
    background-color: oklch(92.8% 0.006 264.531);
    color: black;
}

tbody > tr:hover > td > .low-progress {
    background-color: oklch(80.8% 0.114 19.571);
    color: black;
    cursor: pointer;
}

tbody > tr:hover > td > .medium-progress {
    background-color: oklch(90.5% 0.182 98.111);
    color: black;
    cursor: pointer;
}

tbody > tr:hover > td > .high-progress {
    background-color: oklch(79.2% 0.209 151.711);
    color: black;
    cursor: pointer;
}

tfoot > tr > td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    white-space: nowrap;
    background-color: #f3f4f6;
}

.floating-btn:hover path {
    animation: moveArrow 1s infinite ease-in-out;
}

@keyframes moveArrow {
    0% {
        transform: translateY(-0.5rem);
    }
    100% {
        transform: translateY(0.5rem);
    }
}

@media only screen and (max-width: 600px) {
    table {
        min-width: 100%;
        background-color: transparent;
    }
    tbody > tr {
        display: block;
        background-color: white;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
    }
    th {
        display: none;
    }
    td {
        display: block;
        text-align: right;
    }
    td::before {
        content: attr(data-cell) " : ";
        font-weight: 700;
        float: left;
        color: oklch(27.8% 0.033 256.848);
        text-transform: capitalize;
    }
    .loading-data::before{
        content: "";
    }
    #section_officer {
        text-align: right;
    }
}
