﻿:root { --fires-blue: #0a6fb9; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.topbar-brand { display:flex; align-items:center; gap:.5rem; font-weight:600; color: var(--fires-blue); }
.topbar-brand img { height:28px; width:auto; }

/* Top bar container */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
}

/* Brand */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: #0a6fb9;
    text-decoration: none;
}

    .topbar-brand img {
        height: 28px;
        width: auto;
    }

.brand-suffix {
    font-weight: 400;
    color: #6b7280;
}

/* Right alignment (desktop) */
.navbar-menu {
    margin-left: auto; /* pushes the menu to the right */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #111827;
    padding: .5rem .25rem;
}

    .nav-link:hover {
        text-decoration: underline;
    }

/* Toggler button */
.navbar-toggler {
    margin-left: auto;
    border: 1px solid #ddd;
    background: #f8f9fa;
    padding: .25rem .5rem;
    border-radius: .375rem;
    display: none;
}

/* Mobile behavior */
@media (max-width: 768px) {
    .navbar-row {
        position: relative;
    }
    /* anchor for the dropdown */
    .navbar-toggler {
        display: block;
    }
    /* show burger */
    .navbar-menu {
        position: absolute;
        right: 1rem;
        top: 100%;
        display: none; /* hidden until toggled */
        flex-direction: column;
        align-items: flex-end; /* keep links right-aligned */
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        padding: .5rem;
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

        .navbar-menu.open {
            display: flex;
        }
}

/* Compact controls */
:root {
    /* desktop defaults (compact) */
    --nav-y: .35rem; /* vertical padding of the bar */
    --nav-x: .75rem; /* horizontal padding */
    --nav-gap: .5rem; /* space between items */
    --nav-link-y: .25rem; /* vertical padding on links */
    --nav-font: .95rem; /* link font size */
    --nav-logo-h: 22px; /* brand logo height */
}

/* Make the bar shorter */
.navbar-row {
    padding: var(--nav-y) var(--nav-x);
    gap: var(--nav-gap);
}

/* Smaller logo */
.topbar-brand img {
    height: var(--nav-logo-h);
}

/* Tighten link area */
.navbar-menu {
    gap: var(--nav-gap);
}

.nav-link {
    padding: var(--nav-link-y) .25rem;
    font-size: var(--nav-font);
    line-height: 1.2; /* reduces vertical height */
}
.nav-link.disabled {
        pointer-events: none;
        opacity: 0.6;
        cursor: not-allowed;
}

/* Smaller burger button */
.navbar-toggler {
    padding: .15rem .4rem;
}

/* Keep it accessible on phones/tablets (larger tap targets) */
@media (max-width: 768px) {
    :root {
        --nav-y: .6rem;
        --nav-link-y: .45rem;
        --nav-font: 1rem;
        --nav-logo-h: 26px;
    }
}

/* Sticky-footer shell */
html, body {
    height: 100%;
    margin: 0;
}

.app-shell {
    min-height: 100dvh; /* fills viewport, mobile-safe */
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 1 auto; /* grow and allow shrinking */
    min-height: 0; /* avoids overflow issues in some layouts */
    padding: 1rem;
}
/* consumes remaining space */

body {
    margin: 0;
}

/* Let content grow to fill the space between header and footer */
.page-content {
    flex: 1 0 auto;
    padding: 1rem;
}

/* 3-column footer with true center */
.app-footer {
    margin-top: auto;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: .75rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | center | right */
    align-items: center;
    gap: .75rem;
}

.footer-left {
    justify-self: start;
    text-align: left;
}

.footer-center {
    justify-self: center;
    text-align: center;
}

.footer-right {
    justify-self: end;
    text-align: right;
}

/* Stack nicely on small screens */
@media (max-width: 600px) {
    .app-footer {
        grid-template-columns: 1fr; /* single column */
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        justify-self: center;
    }
}

.hero {
    /* stop forcing a big empty area */
    min-height: 0;
    /* reduce top padding; keep a little breathing room */
    padding-block: 1.5rem 3.5rem;
    display: flex;
    margin-top: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* don't center vertically on small screens */
    text-align: center;
    gap:5.5rem; /* use gap instead of margins between children */
}

/* On larger screens, add some vertical breathing room and (optionally) center */
@media (min-width: 500px) {
    .hero {
        min-height: 20vh; /* was likely 55vh; tune to taste */
        justify-content: center; /* center only on desktop if you like */
    }
}

/* 3) Kill heading's default top margin so it doesn't look like space above the image */
.hero h1 {
    margin-top: 0.1rem;
}

/* 4) Ensure the image itself isn't adding spacing via margins */
.hero img.logo-large {
    display: block;
    margin: 0;
}
/* Fluid, capped, and centered logo */
.hero .logo-large {
    display: block;
    /* Never exceed container; keep aspect ratio */
    max-width: 100%;
    height: auto;
    /* Scale with viewport but clamp to sensible bounds */
    width: clamp(160px, 55vw, 520px);
    margin-inline: auto; /* center */
}

/* Optional: slightly larger on big desktops */
@media (min-width: 1400px) {
    .hero .logo-large {
        width: clamp(200px, 40vw, 640px);
    }
}

/* (Optional) Prevent margin-collapsing if you keep margins on the first child */
.hero {
    overflow: auto;
}
/* or add a 1px transparent top border */

/* Login layout */
.login-wrap {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

    .login-card h2 {
        margin: 0 0 .75rem;
        text-align: center;
    }

.field {
    margin-bottom: .75rem;
}

    .field label {
        display: block;
        font-weight: 600;
        margin-bottom: .25rem;
    }

.input {
    width: 95%;
    padding: .5rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: .5rem;
}

.btn {
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    padding: .5rem .9rem;
    background: #fff;
    cursor: pointer;
}

    .btn.primary {
        background: var(--fires-blue);
        color: #fff;
        border-color: var(--fires-blue);
    }

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.error {
    color: #b91c1c;
    margin-top: .5rem;
    text-align: center;
}

.success {
    color: #065f46;
    margin-top: .5rem;
    text-align: center;
}

/* Responsive tiled menu */
.menu-wrap {
    padding: 2rem;
}

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

.menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* space for icon + caption */
    aspect-ratio: 1 / 1; /* keep them square */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding: 1rem;
}

    .menu-tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }

    /* ✅ BIG ICONS */
    .menu-tile i {
        flex: 1 1 auto;
        font-size: clamp(4rem, 60%, 12rem); /* minimum 4rem, grows to ~60% of tile, capped at 12rem */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111;
        line-height: 1;
    }

    /* Caption stays readable below the icon */
    .menu-tile span {
        margin-top: 0.5rem;
        font-size: clamp(1rem, 3vw, 1.6rem);
        font-weight: 600;
        color: #0284c7;
    }
.register-wrap {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.register-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

    .register-card h2 {
        margin-bottom: 1rem;
        text-align: center;
    }

.field {
    margin-bottom: .75rem;
}

    .field label {
        display: block;
        font-weight: 600;
        margin-bottom: .25rem;
    }

.input {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: .5rem;
}

.actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.btn.primary {
    background: var(--fires-blue);
    color: #fff;
    border: 1px solid var(--fires-blue);
    padding: .5rem 1rem;
    border-radius: .5rem;
    cursor: pointer;
}

.alert.error {
    color: #b91c1c;
    margin-top: .5rem;
}

.alert.success {
    color: #065f46;
    margin-top: .5rem;
}
.password-rules {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0 0;
    font-size: 0.9rem;
}

    .password-rules li {
        margin-bottom: 0.25rem;
    }

.rule-pass {
    color: #065f46; /* green */
}

.rule-fail {
    color: #b91c1c; /* red */
}
.checkbox-field {
    display: flex;
    align-items: center; /* vertically align checkbox + label */
    gap: 0.5rem; /* space between them */
}
.btn.ghost {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: .5rem 1rem;
    border-radius: .5rem;
    cursor: pointer;
}

    .btn.ghost:hover {
        background: #f3f4f6;
    }
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 9; /* below the nav menu */
}

.navbar-menu {
    position: relative;
    z-index: 10; /* ensures it stays above the backdrop */
}
.fires-logo {
    max-height: 60px;
    margin: 0 auto 1rem auto;
    display: block;
}

.input-with-button {
    display: flex;
    align-items: center;
}

.btn-forgot {
    background: #f3f4f6;
    border: 1px solid #ccc;
    border-left: none;
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 0 .5rem .5rem 0;
}

    .btn-forgot:hover {
        background: #e5e7eb;
    }

/* Modal styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-dialog {
    background: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.password-requirements-box {
    border: 1px solid #0284c7;
    background: #f0f9ff;
    padding: 1rem;
    margin-bottom: 1rem;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    color: #0a6fb9;
    cursor: pointer;
    font-size: 1.2rem;
}

    .info-icon:hover {
        color: #084d82;
    }

.password-rules {
    list-style: none;
    padding: 0;
    margin: .5rem 0 1rem 0;
    font-size: 0.9rem;
}

.rule-pass {
    color: #065f46;
}

.rule-fail {
    color: #b91c1c;
}
.pitscout-wrap {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.pitscout-card {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.report-group h3 {
    margin-top: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: .25rem;
    color: #0a6fb9;
}

.field {
    margin-bottom: 1rem;
}

    .field label {
        display: block;
        font-weight: 600;
        margin-bottom: .25rem;
    }

.input, textarea, select {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: .5rem;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}

.actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.alert.success {
    color: #065f46;
}

.alert.error {
    color: #b91c1c;
}

@media (max-width: 600px) {
    .pitscout-card {
        padding: 1rem;
    }

    .btn.primary {
        width: 100%;
    }
}
/* ===== Modal Styling ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: #fff;
    padding: 2rem;
    border-radius: .75rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

    .modal-dialog h3 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
        font-weight: 600;
        text-align: center;
    }

/* ===== General Layout ===== */
.lobby-card {
    background: #fff;
    padding: 2rem;
    border-radius: .75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: auto;
    max-width: 800px;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    margin-bottom: .5rem;
}

/* ===== Setup Summary ===== */
.setup-summary {
    text-align: center;
}

    .setup-summary h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: .25rem;
    }

    .setup-summary .highlight {
        font-weight: bold;
        color: #b91c1c; /* default red alliance */
    }

        .setup-summary .highlight.Blue {
            color: #1d4ed8; /* blue alliance */
        }

/* ===== Buttons ===== */
.btn {
    padding: .5rem 1rem;
    margin: .25rem;
    border-radius: .5rem;
    border: 1px solid #ccc;
    background: #f8f9fa;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border .2s ease;
}

    .btn:hover {
        background: #e5e7eb;
    }

    .btn.primary {
        background: var(--fires-blue, #0a6fb9);
        border-color: var(--fires-blue, #0a6fb9);
        color: #fff;
    }

    .btn.ghost {
        background: #fff;
        border: 1px solid #ccc;
        color: #333;
    }

    .btn.selected {
        background: var(--fires-blue, #0a6fb9);
        color: #fff;
        border-color: var(--fires-blue, #0a6fb9);
    }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: .25rem;
}

.page-btn {
    padding: .5rem .9rem;
    border-radius: .4rem;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .page-btn.active {
        background: #1d4ed8;
        color: #fff;
        border-color: #1d4ed8;
    }

    .page-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* ===== Separator ===== */
hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ===== Scouting Info ===== */
.scouting-info {
    margin-top: 1rem;
    text-align: center;
}

    .scouting-info h3 {
        font-size: 1.3rem;
        margin-bottom: .5rem;
    }

    .scouting-info img {
        margin-top: 1rem;
        border-radius: .5rem;
        border: 1px solid #ccc;
    }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .modal-dialog {
        padding: 1.2rem;
    }

    .btn, .page-btn {
        font-size: .9rem;
        padding: .4rem .7rem;
    }
}
/* Alliance button highlights */
.btn.red-selected {
    background-color: #dc2626; /* red */
    color: #fff;
    border-color: #dc2626;
}

.btn.blue-selected {
    background-color: #2563eb; /* blue */
    color: #fff;
    border-color: #2563eb;
}

/* Neutral selection (for slots) */
.btn.selected {
    background-color: #0a6fb9;
    color: #fff;
    border-color: #0a6fb9;
}

/* Match selector pagination */
.page-btn.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn-red {
    background-color: #dc2626; /* red */
    color: #fff;
    border-color: #dc2626;
}

.btn-green {
    background-color: #16a34a; /* green */
    color: #fff;
    border-color: #16a34a;
}

.btn-grey {
    background-color: #e5e7eb; /* grey */
    color: #111;
    border-color: #ccc;
}
.btn.start-match {
    display: block;
    width: 100%;
    max-width: 600px; /* matches your card width */
    margin: 1rem auto;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: .5rem;
    background-color: #16a34a; /* green */
    color: #fff;
    border: 1px solid #16a34a;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

    .btn.start-match:hover:not(:disabled) {
        background-color: #15803d; /* darker green */
    }

    .btn.start-match:disabled {
        background-color: #9ca3af; /* grey */
        border-color: #9ca3af;
        cursor: not-allowed;
    }
.match-scout {
    padding: 1rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.status-line {
    font-weight: 600;
}

    .status-line .holding {
        color: green;
    }

    .status-line .not-holding {
        color: red;
    }

.undo-btn {
    background-color: orange;
    color: white;
}

.last-event {
    font-size: .9rem;
}

.scout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.left-col, .right-col {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.field-container {
    position: relative;
    text-align: center;
}

    .field-container img {
        max-width: 100%;
        height: auto;
    }

.dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: yellow;
    border: 2px solid black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.bottom-row {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.btn {
    padding: .5rem .75rem;
    border: 1px solid #ccc;
    border-radius: .5rem;
    cursor: pointer;
}

.auto-btn.flashing {
    animation: flash 1s infinite;
}

.auto-btn.ended {
    background-color: red;
    color: #fff;
}

@keyframes flash {
    0% {
        background-color: red;
        color: #fff;
    }

    50% {
        background-color: #fff;
        color: red;
    }

    100% {
        background-color: red;
        color: #fff;
    }
}
