@charset "UTF-8";

:root {
    --primary-color: #2563eb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #ee9400;
    --radius: 0.75rem;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--text-primary);
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loadingScreen {
    opacity: 0.98;
    background: white;
    width: 100%;
    height: 100%;
    z-index: 10000;
    top: 0;
    left: 0;
    position: fixed;
    backdrop-filter: blur(4px);
}

#mainContainer {
    margin: auto;
    max-width: 70em;
}

#grid-container-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1em;
}

#grid-container-charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, 15em);
    gap: 10px;
}

.chartContainer {
    position: relative;
}

@media screen and (max-width: 800px) {
    #grid-container-main {
        grid-template-columns: 1fr;
    }

    #mainHeading {
        text-align: center;
    }
}

#justgage {
    height: 16em;
    overflow: hidden;
}

#prefixTableBox {
    max-height: 16em;
    overflow: auto;
}

#prefixTable {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: separate;
    border-spacing: 0;
}

#prefixTable thead {
    position: sticky;
    top: 0;
}

#prefixTable td,
#prefixTable th {
    border: 1px solid #ddd;
    padding: 8px;
}

#prefixTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#prefixTable tr:hover {
    background-color: #ddd;
}

#prefixTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background: var(--primary-color);
    color: white;
}


.footer {
    margin-top: 2em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.footer-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.4rem;
}

.footer-value {
    font-weight: 500;
    color: var(--text-primary);
}

.error {
    text-align: center;
    color: #ef4444;
    display: none;
    padding: 1rem;
    font-size: 1.2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.error p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.centerText {
    text-align: center;
}

a {
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}