@font-face {
    font-family: 'Adwaita Sans';
    src: url('/0/fonts/AdwaitaSans-Regular.woff2') format('woff2'),
         url('/0/fonts/AdwaitaSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Adwaita Sans';
    src: url('/0/fonts/AdwaitaSans-Italic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Regular.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Bold.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Italic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-BoldItalic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

html {
    font-family: 'Adwaita Sans', sans-serif;
}



body {
    margin: 0;
    background: #d3e7fb;
    color: #222;
}

header {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center;
    background: #2c3e50;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 2rem;
    letter-spacing: 2px;
    position: relative; /* Needed for absolute positioning */
}

.header-title {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    width: fit-content;
    pointer-events: none; /* Allows logout button to be clickable */
}

.header-logout {
    margin-left: auto;
    font-size: 1rem;
    z-index: 1;
    position: relative;
}

main {
    max-width: 1200px;
    width: 95%;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    min-height: 400px;
    transition: box-shadow 0.2s;
}

main:focus-within, main:hover {
    box-shadow: 0 6px 24px rgba(44,62,80,0.13);
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(44,62,80,0.07);
}

@media (max-width: 1000px) {
    main {
        padding: 1rem;
        min-width: unset;
        max-width: 100vw;
    }
    .titlebar {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 700px) {
    main {
        padding: 0.5rem;
    }
    footer {
        font-size: 0.9rem;
        padding: 0.5rem;
        position: static;
        box-shadow: none;
    }
}

.titlebar {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f6fafd;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(44,62,80,0.04);
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
}

.collapsed-info {
    margin-top: 1rem;
    transition: max-height 0.3s ease;
}

table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
    background: #fafdff;
    border-radius: 6px;
    overflow: hidden;
    font-size: 1rem;
}

table, th, td {
    font-family: 'Adwaita Mono', monospace;
    font-weight: 400; /* Ensure normal weight for all table text */
}

th, td {
    border: 1px solid #e0e6ed;
    padding: 0.7rem 0.5rem;
    text-align: left;
}

th {
    background: #f1f5fa;
    font-weight: 700; /* Only headers are bold */
    letter-spacing: 0.5px;
}

tr:nth-child(even) td {
    background: #f7fafd;
}

tr:hover td {
    background: #e9f3ff;
}

.letitscroll {
    width: 100%;
    overflow-x: auto;
}

th:focus, td:focus {
    outline: 2px solid #2c3e50;
    outline-offset: -2px;
}



/*  Div Collapse - Without breaking images */
[data-collapse="true"] .collapsed-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    visibility: visible;
    position: relative;
}
