/* ============================================================
   Appalachian Repeater Association
   XLX681 Dashboard Theme
   ============================================================ */

:root {
    --ara-bg: #07111f;
    --ara-bg-soft: #0c1828;
    --ara-panel: #101e30;
    --ara-panel-2: #15263a;

    --ara-blue: #2c8cff;
    --ara-blue-light: #68adff;
    --ara-blue-dark: #1768bd;

    --ara-text: #e8eef6;
    --ara-muted: #9eafc3;
    --ara-border: #263a50;

    --ara-green: #38c878;
    --ara-yellow: #f6c453;
    --ara-red: #f06464;

    --ara-radius: 12px;
}


/* ============================================================
   PAGE
   ============================================================ */

html,
body {
    background:
        radial-gradient(circle at top, #10243b 0, #07111f 520px);
    background-attachment: fixed;
}

body {
    margin: 0;
    color: var(--ara-text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    min-width: 0;
}


/* ============================================================
   TOP HEADER
   ============================================================ */

#top {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 118px;
    min-width: 0;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            rgba(21, 42, 66, .98),
            rgba(7, 17, 31, .98)
        );

    border-bottom: 1px solid var(--ara-border);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* Hide stock XLX banner image */
#top img {
    display: none;
}


/* Main title */
#top::before {
    content: "Appalachian Repeater Association";

    display: block;

    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.4px;

    color: #ffffff;

    text-align: center;
}


/* Reflector subtitle */
#top::after {
    content: "W8ARA • XLX681 Digital Reflector";

    position: absolute;

    top: 73px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: .8px;

    color: var(--ara-blue-light);
}


/* ============================================================
   ARA LOGO
   ============================================================ */

#ara-header-logo {
    position: absolute;

    top: 12px;
    left: 22px;

    z-index: 1000;

    height: 92px;

    display: flex;
    align-items: center;
}

#ara-header-logo img {
    display: block;

    max-height: 88px;
    max-width: 180px;

    width: auto;
    height: auto;

    object-fit: contain;

    filter: drop-shadow(0 4px 8px rgba(0,0,0,.30));
}


/* ============================================================
   SYSTEM TIME
   ============================================================ */

#ara-system-time {
    position: absolute;

    top: 18px;
    right: 24px;

    z-index: 1000;

    min-width: 190px;

    text-align: right;
}

#ara-system-time .time-label {
    margin-bottom: 2px;

    color: var(--ara-blue-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

#ara-clock {
    color: #ffffff;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.15;

    font-variant-numeric: tabular-nums;
}

#ara-date {
    margin-top: 3px;

    color: var(--ara-muted);

    font-size: 12px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

#menubar {
    position: absolute;

    top: 118px;
    left: 0;

    transform: none;

    width: 100%;
    max-width: none;
    min-width: 0;

    height: auto;
    min-height: 56px;

    box-sizing: border-box;

    display: flex;
    justify-content: center;

    background: rgba(7, 17, 31, .96);

    border-bottom: 1px solid var(--ara-border);

    padding: 9px 12px;
}


#menu {
    margin: 0;
    height: auto;
    float: none;
}


#menu table {
    border-spacing: 6px 0;
}


.menulink,
.menulinkactive {
    display: inline-block;

    box-sizing: border-box;

    margin: 0;

    padding: 9px 14px;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;
    border: 1px solid var(--ara-border);

    text-decoration: none;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}


.menulink {
    background: var(--ara-panel);
    color: var(--ara-muted);
}


.menulink:hover {
    background: var(--ara-panel-2);
    color: #fff;

    border-color: var(--ara-blue);

    font-weight: 600;

    transform: translateY(-1px);
}


.menulinkactive {
    background: var(--ara-blue);
    border-color: var(--ara-blue);

    color: #fff;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

#content {
    position: absolute;

    top: 200px;
    left: 50%;

    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 1250px;

    box-sizing: border-box;

    color: var(--ara-text);

    padding-bottom: 50px;
}


/* ============================================================
   TABLES / CARDS
   ============================================================ */

.listingtable {
    width: 100%;

    margin-top: 14px;

    background: rgba(16, 30, 48, .93);

    color: var(--ara-text);

    border: 1px solid var(--ara-border);

    border-collapse: separate;
    border-spacing: 0;

    border-radius: var(--ara-radius);

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .18);

    font-size: 14px;
}


.listingtable th {
    height: 42px;

    padding: 7px 8px;

    background: var(--ara-panel-2);
    background-image: none;

    color: #fff;

    border: 0;
    border-bottom: 1px solid var(--ara-border);

    font-weight: 650;
}


.listingtable td {
    padding: 8px 9px;

    border: 0;
    border-bottom: 1px solid rgba(38, 58, 80, .65);

    color: var(--ara-text);
}


.listingtable tr:last-child td {
    border-bottom: none;
}


.listingtable tr:hover td {
    background: rgba(44, 140, 255, .07);
}


/* ============================================================
   LINKS
   ============================================================ */

a,
a.tip,
.pl,
.listinglink {
    color: var(--ara-blue-light);
}


a:hover,
a.tip:hover,
.pl:hover,
.listinglink:hover {
    color: #ffffff;
}


/* ============================================================
   FILTER CONTROLS
   ============================================================ */

.FilterField {
    width: 170px;
    height: 34px;

    box-sizing: border-box;

    padding: 5px 10px;

    background: #081421;

    color: var(--ara-text);

    border: 1px solid var(--ara-border);
    border-radius: 7px;

    font-family: inherit;
    font-size: 14px;
}


.FilterField:focus {
    outline: none;

    border-color: var(--ara-blue);

    box-shadow:
        0 0 0 3px rgba(44, 140, 255, .12);
}


/* Monitoring-only dashboard:
   hide Apply / Submit buttons */
.FilterSubmit {
    display: none !important;
}


.smalllink {
    color: var(--ara-red);
}


/* ============================================================
   ERRORS / WARNINGS
   ============================================================ */

.error {
    background: rgba(240, 100, 100, .10);

    border: 1px solid rgba(240, 100, 100, .5);
    border-radius: 9px;

    color: #ff9999;

    padding: 15px;
}


/* ============================================================
   ACTIVE TRANSMISSION HIGHLIGHT
   ============================================================ */

@keyframes txPulseARA {
    0% {
        background-color: rgba(246,196,83,.06);
    }

    50% {
        background-color: rgba(246,196,83,.22);
    }

    100% {
        background-color: rgba(246,196,83,.06);
    }
}


tr.tx-active {
    animation: txPulseARA 1.2s ease-in-out infinite;
}


tr.tx-active td {
    color: #ffe0a0 !important;
    font-weight: 700;
}


/* ============================================================
   FOOTER
   ============================================================ */

#content > div:last-child {
    color: var(--ara-muted) !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    body {
        min-width: 0;
    }

    #top {
        height: 100px;
    }

    #top::before {
        font-size: 21px;
    }

    #top::after {
        top: 62px;

        font-size: 12px;
    }

    #ara-header-logo {
        top: 12px;
        left: 10px;

        height: 65px;
    }

    #ara-header-logo img {
        max-height: 60px;
        max-width: 95px;
    }

    #ara-system-time {
        top: 16px;
        right: 10px;

        min-width: 125px;
    }

    #ara-system-time .time-label {
        font-size: 8px;
    }

    #ara-clock {
        font-size: 15px;
    }

    #ara-date {
        font-size: 9px;
    }

    #menubar {
        top: 100px;

        display: block;

        overflow-x: auto;

        white-space: nowrap;

        padding: 7px;
    }

    #menu {
        display: inline-block;
    }

    #menu td {
        display: inline-block;

        margin: 2px;
    }

    .menulink,
    .menulinkactive {
        padding: 8px 10px;

        font-size: 12px;
    }

    #content {
        top: 168px;

        width: calc(100% - 16px);

        overflow-x: auto;
    }

    .listingtable {
        min-width: 700px;

        font-size: 12px;
    }
}
