/* Home Button - Right Side of Header */
@font-face {
    font-family: 'CustomFont';
    src: url('../font/font.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'CustomFont', sans-serif;
    background-color: #f8fafc;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 12px 20px 20px 20px; /* Minimal top padding below sticky header */
    margin-top: 0; /* Header is in flow (sticky); no fixed offset needed */
    margin-bottom: 76px; /* Account for footer */
}
.icon {
    font-size: 20px;
    line-height: 1;
}
/* Lucide-rendered SVGs (replace <i data-lucide>) inherit text color */
.icon svg {
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

.demoarea {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 180px); /* Approximate; header + footer (flex layout) */
}

.content {
    width: 100%;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Full-width content for specific pages */
.content.full-width {
    width: 100%;
    padding: 10px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    table-layout: fixed;
}

th, td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

th.wide-col, td.wide-col {
    min-width: 300px;
    max-width: 500px;
}

th.narrow-col, td.narrow-col {
    min-width: 100px;
    max-width: 150px;
}

td.bands-col {
    white-space: pre-wrap;
    word-break: break-word;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #13294B;
    position: sticky;
    top: 0;
    z-index: 1;
}

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

tr:hover {
    background-color: #edf2f7;
}

td:hover {
    overflow: visible;
    white-space: normal;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.homepage.active {
    display: block;
}

.homepage-header {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-title {
    font-size: 2.5rem;
    color: #13294B;
    margin-bottom: 10px;
    font-weight: 600;
}

.homepage-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.homepage-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}



.loading-circle {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    will-change: auto;
}

.site-footer {
    background: #13294B;
    color: white;
    padding: 24px 0;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact {
    flex: 1;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a, .footer-links button {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-links button:hover {
    color: white;
}

.footer-links button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.header-strip {
    background-color: #FF5F05; /* UIUC orange */
    order:-3;
    height: 7px;
    width: 100%;
}
