/* Base Styles */
body {
    background-color: #000000; 
    color: #f5f5f5;           
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    margin: 0;
    padding: 20px;
    font-size: 22px; /* default for large screens */
}

/* Links outside tiles */
body a:not(.tile a) {
    color: #10A5F5;      
    text-decoration: none;
}
body a:not(.tile a):hover {
    text-decoration: underline;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}
table td, table th {
    border: none;
    padding: 10px;
    font-size: 1em; /* relative to body */
    transition: background-color 0.3s ease;
}
table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); 
}
table tr:nth-child(odd) {
    background-color: transparent;
}
table tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Centered Table */
.centered-table {
    margin-left: auto;
    margin-right: auto;
    width: 100%; 
    max-width: 1200px;
    font-size: 1em; /* relative to body */
}

/* Tiles */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;          /* gap between large tiles or general tiles */
    margin: 10px 0;    /* margin around tiles */
}

.tile {
    background-color: #10A5F5;
    color: #000000;        /* black text inside tiles */
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

/* Links inside tiles inherit black */
.tile a {
    color: inherit;
    text-decoration: none;
}
.tile a:hover {
    text-decoration: underline;
}

/* Large tiles (homepage) */
.large-tiles .tile {
    padding: 20px;          
    font-size: 1em;
    line-height: 1.5em;
    min-height: 70px;
    flex: 1 1 calc(33.333% - 5px);
}

/* Small tiles (report page) */
.small-tiles {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 3px;           /* reduced space between small tiles */
    margin: 5px 0;      /* reduced top/bottom space around small tiles row */
}
.small-tiles .tile {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    padding: 6px 10px;  /* keep text padding unchanged */
    font-size: 0.85em;
    line-height: 1.2em;
    min-height: 30px;
}

.tile:hover {
    background-color: #00DBFF;
    transform: scale(1.05);
}

/* Menu List */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.menu-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}
.menu-list li:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Tenant Logo */
#tenant-logo {
    max-height: 50px;
    height: auto;
    width: auto;
    display: block;
}

/* Responsive Styles */

/* Very small screens (353px width and down) */
@media (max-width: 353px) {
    body {
        font-size: 30px !important; 
        padding: 15px !important;
    }
    table, table td, table th {
        font-size: 30px !important; 
    }
    .tile {
        font-size: 3.5em !important; 
        padding: 15px !important;  
        min-height: 60px !important;
    }
    .centered-table {
        width: 100% !important;
    }
    table td, table th {
        padding: 15px !important;
    }
}

/* Small to medium screens (354px-599px) */
@media (min-width: 354px) and (max-width: 599px) {
    body { font-size: 20px; } 
    table td, table th { padding: 6px; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .tiles {
        gap: 5px;
        margin: 10px 0;
    }
    .tile { 
        flex: 0 0 100%; 
        max-width: 100%; 
        margin-bottom: 5px; 
        padding: 12px; 
        font-size: 1.5em;
    }
}

/* Medium screens (600px–799px) */
@media (min-width: 600px) and (max-width: 799px) {
    body { font-size: 18px; }
    table td, table th { padding: 8px; }
    .tile {
        font-size: 1.2em;
    }
}

/* Large screens (800px-1024px) */
@media (min-width: 800px) and (max-width: 1024px) {
    body { font-size: 20px; }
    table td, table th { padding: 10px; }
    .tile {
        font-size: 1.1em;
    }
}

/* Extra large screens (≥1025px) */
@media (min-width: 1025px) {
    body { font-size: 22px; }
    table td, table th { padding: 12px; }
}

/* Tiles stacking on narrow screens (≤800px) */
@media (max-width: 800px) {
    .tiles {
        flex-direction: column;
        gap: 5px;
        margin: 10px 0;
    }
    .tile {
        margin-bottom: 5px;
        padding: 12px;
    }
}
