/* Loaded on every page. Defines the landing menu plus the base table / select /
   typography styles that report pages inherit. Everything reads from the design
   tokens in theme.css, so the whole app follows the light/dark toggle. */

html, body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    padding: 0;
    margin: 0;
    height: 100%;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
iframe {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
img {
    float: left;
}
.landing-body {
    background-color: var(--bg);
    color: var(--text);
}

/* ---- Top bar ---------------------------------------------------------- */
/* Flex row: [menu icon] [dropdown] [contextual title], vertically centred. The
   `gap` gives the title a consistent distance from the dropdown on every page,
   and centring gives it a consistent distance from the top. min-height keeps
   the bar the same height everywhere. (Burndown opts out in burndown.css -- its
   dropdown is positioned absolutely and it has no title.) */
.menuHeader {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 20px;
    background: var(--header-grad);
    margin-bottom: 22px;
    color: var(--header-text);
    min-height: 84px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
/* Neutralise the legacy per-page offsets so flex controls the layout. */
.menuHeader .b-menu {
    margin: 0;
}
.menuHeader .fleft {
    margin: 0;
    float: none;
}
.menuHeader .select,
.menuHeader #sprint-select,
.menuHeader #epic-select,
.menuHeader #user-select {
    position: relative;
    top: 0;
    margin-left: 0;
    flex: 0 0 auto;
}
.menuHeader .assigneeHeader,
.menuHeader .pieHeader,
.menuHeader .epicHeader,
.menuHeader .mainmenu-head {
    position: static;
    top: 0;
    left: 0;
    margin: 0;
    min-width: 0;
}

/* Project-wide health stats strip (above the menu). */
#project-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 22px 24px 0;
}
.proj-stat {
    flex: 1 1 240px;
    min-width: 230px;
    max-width: 350px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.proj-stat:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.ps-label {
    font-size: 10pt;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-value {
    font-size: 26pt;
    font-weight: 700;
    color: var(--brand);
    margin-top: 6px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.ps-pct {
    font-size: 14pt;
    font-weight: 600;
    color: var(--success);
    margin-left: 6px;
}

/* ---- Cache footer + refresh link (bottom of the main menu) ------------ */
#cache-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 18px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 10pt;
    text-align: center;
    z-index: 10;
}
#cache-footer-text {
    margin-right: 12px;
}
#cache-refresh-link {
    color: var(--brand);
    text-decoration: none;
    font-size: 10pt;
    font-weight: 600;
    margin-left: 0;
    padding-left: 0;
}
#cache-refresh-link:hover {
    color: var(--warn);
    text-decoration: underline;
}

/* ---- Refresh overlay -------------------------------------------------- */
.cache-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 11, 18, 0.66);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.cache-overlay-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cache-overlay-box img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto 12px auto;
    float: none;
}
.cache-overlay-text {
    color: var(--text);
    font-size: 14pt;
    font-weight: 600;
    margin-bottom: 4px;
}
.cache-overlay-sub {
    color: var(--text-subtle);
    font-size: 10pt;
}

/* ---- Top-right icon buttons (account + settings gear) ----------------- */
.settings-gear {
    position: fixed;
    top: 16px;
    right: 142px;
    z-index: 1000;
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.85;
    float: none;
    fill: var(--header-text);
    transition: opacity var(--transition), transform var(--transition);
}
.settings-gear:hover {
    opacity: 1;
    transform: rotate(30deg);
}
.settings-gear.account-icon {
    right: 178px;
}
.settings-gear.account-icon:hover {
    transform: scale(1.12);
}

/* ---- Main menu cards -------------------------------------------------- */
.menu-container {
    margin-top: 34px;
    text-align: center;
    box-sizing: border-box;
    height: 100%;
}
.menu-block {
    width: 300px;
    height: 380px;
    background-color: var(--surface);
    margin: 18px;
    display: inline-block;
    border-radius: var(--radius-lg);
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border);
    overflow: hidden;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    vertical-align: top;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}
/* Accent bar that wipes in on hover, signalling interactivity. */
.menu-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.menu-block:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    cursor: pointer;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.menu-block:hover::before {
    transform: scaleX(1);
}
.menu-block img {
    display: block;
    margin-bottom: 25px;
    margin-top: 14px;
    float: none;
}
.menu-block > div {
    margin: 22px 18px 0 18px;
    text-align: left;
    font-size: 13pt;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}
/* End: Main Menu  */

.headClear {
    clear: both;
    position: relative;
    vertical-align: bottom;
    height: 130px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.footer {
    clear: both;
    position: fixed;
    height: 28px;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    margin: 0;
    bottom: 0px;
    width: 100%;
}
p {
    padding-left: 30px;
    font-size: 9pt;
}
h1 {
    padding-top: 80px;
    color: var(--brand);
}
a {
    color: var(--link);
    font-size: 9pt;
}
a:hover {
    color: var(--link-hover);
}
.b-menu {
    height: 16px;
    width: 16px;
    margin: 20px 18px 0 18px;
    display: inline-block;
    cursor: pointer;
    opacity: 0.9;
    padding: 4px;
    border-radius: var(--radius-pill);
    transition: background var(--transition), opacity var(--transition);
}
.b-menu:hover {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
}
a.sactive {
    font-weight: 700;
}
#piebox, #piebox2, #piebox3, #piebox4 {
    width: 512px;
    height: 512px;
    border: 1px solid var(--border);
    padding: 0px;
}
#showpie {
    position: absolute;
    top: 145px;
    left: 10px;
}
#showpie2 {
    position: absolute;
    top: 145px;
    left: 530px;
}
#showpie3 {
    position: absolute;
    top: 710px;
    left: 10px;
}
#showpie4 {
    position: absolute;
    top: 710px;
    left: 530px;
    margin-bottom: 50px;
}
#currSprint {
    position: absolute;
    top: 680px;
    margin-top: 5px;
    left: 10px;
    border: 1px solid var(--border);
    height: 20px;
    width: 1024px;
    text-align: center;
}
#dl {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}
#dl:hover {
    top: 12px;
}
.headdiv {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 11pt;
    font-weight: 700;
    padding: 3px;
    width: 508px;
    background-color: var(--surface-2);
    color: var(--text);
}

.fleft {
    float: left;
    border: 0;
    margin: 4px 10px 0 0;
    display: inline-block;
}

.avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}

tbody tr td:first-child {
    width: 32px;
}

/* ---- Base table styling (inherited by report pages) ------------------- */
th, td {
    text-align: left;
    padding: 8px 12px;
}

tr:nth-child(even) {
    background-color: var(--row-even);
}

th {
    background-color: var(--table-head-bg);
    color: var(--table-head-text);
    font-size: 10pt;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

tr:hover {
    background-color: var(--row-hover);
}

table tfoot td {
    border-top: 1px solid var(--border-strong);
}

/* ---- Select control --------------------------------------------------- */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    outline: 0;
    box-shadow: none;
    border: 0 !important;
    background: transparent;
    background-image: none;
    font-family: var(--font-sans);
}
select::-ms-expand {
    display: none;
}
#sprint-select {
    position: relative;
    top: 15px;
}

/* Custom Select */
.select {
    position: relative;
    top: 154px;
    display: flex;
    width: 15em;
    height: 2.2em;
    line-height: 2.2;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-left: 100px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
select {
    flex: 1;
    padding: 0 0.6em;
    color: #fff;
    cursor: pointer;
}
.select option {
    color: var(--text);
    background: var(--surface);
}
/* Arrow */
.select::after {
    content: "\25BC";
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1em;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    cursor: pointer;
    pointer-events: none;
    display: flex;
    align-items: center;
    -webkit-transition: 0.25s all ease;
    -o-transition: 0.25s all ease;
    transition: 0.25s all ease;
    font-size: 8pt;
}
/* Transition */
.select:hover::after {
    color: var(--warn);
}

.assigneeHeader {
    font-weight: 700;
    font-size: 14pt;
    color: var(--header-text);
    display: inline-block;
    position: relative;
    top: -6px;
    left: 350px;
}

.mainmenu {
    margin: 40px 0 0 60px;
}
.mainmenu p {
    font-size: 18pt;
    color: var(--text);
    font-weight: 700;
    margin: 4px 0;
}
.mainmenu a {
    font-size: 12pt;
    margin: 4px 36px;
    padding: 4px 0 0 0;
    display: inline-block;
}
.mainmenu-head {
    font-weight: 700;
    font-size: 14pt;
    color: var(--header-text);
    display: inline-block;
    position: relative;
    top: 18px;
    letter-spacing: 0.2px;
}

p.mini-header {
    font-size: 14pt;
    font-weight: 700;
    padding: 0 0 4px 0;
    margin: 0;
    color: var(--text);
}

.blu {
    color: var(--brand);
}
