/* =========================================================
   W9ILS / Indiana Link South
   XLXILS Dashboard Theme
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #050910 !important;
    color: #dbeafe !important;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 15px;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

#top {
    height: auto !important;
    min-height: 170px;
    padding: 20px 15px 18px;
    box-sizing: border-box;

    background:
        radial-gradient(circle at center top, #10233f 0%, #081321 45%, #03070c 100%) !important;

    color: #dbeafe !important;
    text-align: center;

    display: block !important;

    border-bottom: 2px solid #20d9ff;
    box-shadow:
        0 0 22px rgba(32, 217, 255, 0.22),
        inset 0 -1px 0 rgba(32, 217, 255, 0.25);
}

#top img {
    display: block;
    max-height: 115px !important;
    max-width: 90%;
    width: auto;
    height: auto;

    margin: 0 auto 12px !important;

    border: 1px solid #20d9ff !important;
    border-radius: 10px !important;

    box-shadow:
        0 0 16px rgba(32, 217, 255, 0.28);
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

#menubar {
    height: auto !important;
    min-height: 52px;

    width: 100%;
    box-sizing: border-box;

    padding: 7px 10px !important;

    background: #07111d !important;

    border-bottom: 1px solid #18c7eb;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(32, 217, 255, 0.12);

    overflow-x: auto;
}

#menubar table {
    margin: 0 auto;
}

#menubar td {
    padding: 3px;
}

.menulink {
    display: inline-block;

    color: #bdefff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    padding: 9px 13px !important;
    margin: 0 2px !important;

    border: 1px solid transparent;
    border-radius: 6px;

    transition: all 0.18s ease;
}

.menulink:hover {
    color: #ffffff !important;

    background: #0d2537 !important;

    border-color: #20d9ff !important;

    box-shadow:
        0 0 10px rgba(32, 217, 255, 0.28);
}

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

    color: #05090d !important;
    background: #20d9ff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    text-decoration: none !important;

    padding: 9px 13px !important;
    margin: 0 2px !important;

    border: 1px solid #79efff !important;
    border-radius: 6px;

    box-shadow:
        0 0 12px rgba(32, 217, 255, 0.38);
}

/* ---------------------------------------------------------
   MAIN CONTENT
   --------------------------------------------------------- */

#content {
    width: 100% !important;

    padding: 24px 18px 40px !important;

    box-sizing: border-box;

    background:
        linear-gradient(180deg, #07101b 0%, #04080e 100%) !important;

    color: #dbeafe !important;
}

/* Links */

#content a {
    color: #63e7ff;
}

#content a:visited {
    color: #9defff;
}

#content a:hover {
    color: #ffffff;
}

/* ---------------------------------------------------------
   DASHBOARD TABLES
   --------------------------------------------------------- */

.listingtable {
    margin: 14px auto !important;

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

    background: #08121e !important;

    color: #dcecff !important;

    border: 1px solid #159fbd !important;
    border-radius: 8px !important;

    overflow: hidden;

    box-shadow:
        0 0 14px rgba(32, 217, 255, 0.10),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.listingtable th {
    padding: 10px 12px !important;

    background:
        linear-gradient(180deg, #12324a 0%, #0a2031 100%) !important;

    color: #7deaff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    border-right: 1px solid #16455b !important;
    border-bottom: 1px solid #20d9ff !important;

    text-shadow: 0 0 7px rgba(32, 217, 255, 0.25);
}

.listingtable td {
    padding: 9px 11px !important;

    color: #d8e7f5 !important;

    background-color: #0a1521 !important;

    border-right: 1px solid #122c3c !important;
    border-bottom: 1px solid #122c3c !important;

    font-size: 14px !important;
}

.listingtable tr:nth-child(even) td {
    background-color: #0c1926 !important;
}

.listingtable tr:hover td {
    background-color: #10293b !important;
}

/* Callsign / station links */

.listingtable a,
.listingtable a.pl {
    color: #65e8ff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.listingtable a:hover,
.listingtable a.pl:hover {
    color: #ffffff !important;
    text-shadow: 0 0 7px rgba(32, 217, 255, 0.7);
}

/* ---------------------------------------------------------
   FORMS / FILTERS
   --------------------------------------------------------- */

.FilterField,
input[type="text"],
select {
    background: #06101a !important;

    color: #e8f6ff !important;

    border: 1px solid #187a91 !important;
    border-radius: 5px !important;

    padding: 7px 9px !important;
}

.FilterField:focus,
input[type="text"]:focus,
select:focus {
    outline: none !important;
    border-color: #20d9ff !important;

    box-shadow:
        0 0 8px rgba(32, 217, 255, 0.30);
}

.FilterSubmit,
input[type="submit"],
button {
    background: #0c293b !important;

    color: #8beeff !important;

    border: 1px solid #20d9ff !important;
    border-radius: 5px !important;

    padding: 7px 12px !important;

    font-weight: 700 !important;

    cursor: pointer;
}

.FilterSubmit:hover,
input[type="submit"]:hover,
button:hover {
    background: #123c51 !important;
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   GENERAL LEGACY CONTENT
   --------------------------------------------------------- */

table {
    color: #dbeafe;
}

.smalllink {
    color: #66e8ff !important;
}

.error {
    background: #321018 !important;
    color: #ffd4d8 !important;

    border: 1px solid #dc4050 !important;
    border-radius: 6px;

    padding: 12px;
}

/* Preserve status colors while fitting dark theme */

td[style*="background:#1d1"],
td[style*="background: #1d1"] {
    color: #001a08 !important;
    font-weight: 800 !important;
}

td[style*="background:#f33"],
td[style*="background: #f33"] {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ---------------------------------------------------------
   MOBILE / SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 900px) {

    #top {
        min-height: 140px;
    }

    #top img {
        max-height: 90px !important;
    }

    #content {
        padding: 14px 8px 30px !important;
        overflow-x: auto;
    }

    .listingtable td,
    .listingtable th {
        padding: 7px 8px !important;
        font-size: 13px !important;
    }

    .menulink,
    .menulinkactive {
        font-size: 13px !important;
        padding: 8px 9px !important;
    }
}

/* W9ILS branded header text */

.w9ils-header-title {
    margin-top: 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.w9ils-header-subtitle {
    margin-top: 4px;
    color: #20d9ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.w9ils-header-status {
    margin-top: 8px;
    color: #a9bfd1;
    font-size: 13px;
    font-weight: 500;
}

.w9ils-header-status #suptime {
    color: #7ee787;
    font-weight: 700;
}


/* =========================================================
   USERS / MODULES DASHBOARD POLISH
   ========================================================= */

.w9ils-users-layout {
    width: 100%;
    border-collapse: separate;
    border-spacing: 18px 0;
    margin: 0 auto;
}

.w9ils-users-layout > tbody > tr > td {
    vertical-align: top;
}

/* Main station activity panel */

.w9ils-stations {
    min-width: 760px;
}

.w9ils-stations > tbody > tr:first-child th {
    background:
        linear-gradient(180deg, #102b40 0%, #091c2b 100%) !important;
}

/* Make the currently transmitting indicator stand out */

.w9ils-stations img[src*="tx.gif"] {
    filter: drop-shadow(0 0 5px #39ff88);
}

/* Filter bar */

.w9ils-stations form {
    margin: 0;
}

.w9ils-stations .FilterField {
    min-width: 125px;
}

.w9ils-stations .FilterSubmit {
    margin-left: 4px;
}

/* Module panel */

.w9ils-modules-column {
    padding-left: 20px !important;
}

.w9ils-module-panel {
    min-width: 220px;
}

.w9ils-module-panel th {
    text-align: center;
    color: #ffd76a !important;
    letter-spacing: 0.4px;
}

.w9ils-module-panel > tbody > tr > td {
    padding: 0 !important;
    vertical-align: top;
}

.w9ils-module-panel td table {
    width: 100% !important;
    min-width: 115px;
}

.w9ils-module-panel td table td {
    padding: 7px 9px !important;
    text-align: center;
    border-bottom: 1px solid #123447 !important;
}

.w9ils-module-panel td table tr:hover td {
    background: #12364a !important;
}

/* Slight green accent for callsigns/activity */

.w9ils-stations a.pl {
    color: #63e7ff !important;
}

.w9ils-module-panel a.pl {
    color: #8cf5ae !important;
}

.w9ils-module-panel a.pl:hover {
    color: #ffffff !important;
    text-shadow: 0 0 7px rgba(90, 255, 150, 0.65);
}

/* Give the two areas a little breathing room */

.w9ils-stations,
.w9ils-module-panel {
    margin-top: 8px !important;
}

/* Responsive layout */

@media (max-width: 1150px) {

    .w9ils-users-layout,
    .w9ils-users-layout > tbody,
    .w9ils-users-layout > tbody > tr,
    .w9ils-users-layout > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .w9ils-users-layout {
        border-spacing: 0;
    }

    .w9ils-users-layout > tbody > tr > td {
        overflow-x: auto;
    }

    .w9ils-modules-column {
        padding-left: 0 !important;
        padding-top: 22px !important;
    }

    .w9ils-module-panel {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* W9ILS dashboard section title bars */

.w9ils-section-title {
    margin: 8px 0 10px;
    padding: 10px 14px;

    background:
        linear-gradient(90deg, #0b2638 0%, #07131f 100%);

    color: #65e8ff;

    border: 1px solid #20d9ff;
    border-left: 5px solid #20d9ff;

    border-radius: 6px;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-align: left;

    box-shadow:
        0 0 12px rgba(32, 217, 255, 0.18);
}

.w9ils-section-title-gold {
    color: #ffd76a;

    border-color: #d9a928;
    border-left-color: #ffd34f;

    box-shadow:
        0 0 12px rgba(255, 208, 70, 0.15);
}

/* Make legacy DPRS/APRS icon visible on dark theme */
.w9ils-stations img[src*="sat.png"] {
    filter:
        invert(86%)
        sepia(42%)
        saturate(1200%)
        hue-rotate(155deg)
        brightness(110%)
        contrast(105%)
        drop-shadow(0 0 4px rgba(32, 217, 255, 0.65));
}

/* APRS map button */

.w9ils-aprs-button {
    display: inline-block;
    padding: 5px 8px;

    background: #082532 !important;
    color: #63e7ff !important;

    border: 1px solid #20d9ff;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;

    text-decoration: none !important;
    white-space: nowrap;

    box-shadow: 0 0 6px rgba(32, 217, 255, 0.18);
}

.w9ils-aprs-button:hover {
    background: #20d9ff !important;
    color: #041018 !important;

    box-shadow: 0 0 10px rgba(32, 217, 255, 0.45);
}

/* =========================================================
   REPEATERS / NODES PAGE
   ========================================================= */

.w9ils-repeaters-table {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.w9ils-repeaters-table th {
    color: #7deaff !important;
}

.w9ils-repeaters-table td:nth-child(3) a {
    color: #8cf5ae !important;
    font-weight: 800;
}

.w9ils-repeaters-table td:nth-child(7) {
    color: #ffd76a !important;
    font-weight: 700;
}

.w9ils-repeaters-table td:nth-child(8) {
    color: #63e7ff !important;
    font-weight: 800;
    text-align: center;
}

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

.w9ils-peers-table {
    max-width: 1000px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.w9ils-peers-table td:nth-child(2) {
    color: #8cf5ae !important;
    font-weight: 800;
}

.w9ils-peers-table td:nth-child(5) {
    color: #ffd76a !important;
    font-weight: 700;
}

.w9ils-peers-table td:nth-child(6) {
    color: #63e7ff !important;
    font-weight: 800;
}

/* =========================================================
   MODULE LIST
   ========================================================= */

.w9ils-modules-list {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.w9ils-modules-list th {
    text-align: center;
}

.w9ils-modules-list td {
    text-align: center;
    font-size: 15px !important;
}

.w9ils-module-letter {
    color: #63e7ff;
    font-size: 18px;
    font-weight: 900;
}

/* Primary operating module - Module B */

.w9ils-modules-list tr.w9ils-main-module td {
    background:
        linear-gradient(90deg, #0b2c25 0%, #0d3440 50%, #0b2c25 100%) !important;

    border-top: 1px solid #5cf29a !important;
    border-bottom: 1px solid #5cf29a !important;

    color: #ffffff !important;

    font-weight: 800 !important;

    box-shadow:
        inset 0 0 18px rgba(92, 242, 154, 0.08);
}

.w9ils-main-module .w9ils-module-letter {
    color: #76f7a5 !important;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(92, 242, 154, 0.55);
}

.w9ils-main-badge {
    display: inline-block;

    margin-bottom: 4px;
    padding: 2px 7px;

    background: #65f29a;
    color: #03120a;

    border-radius: 4px;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;

    box-shadow:
        0 0 8px rgba(92, 242, 154, 0.45);
}

.w9ils-module-note {
    max-width: 760px;

    margin: 16px auto 0;
    padding: 10px 14px;

    background: #071723;

    color: #a9bfd1;

    border: 1px solid #16475c;
    border-radius: 6px;

    text-align: center;
    font-size: 13px;
}

.w9ils-module-note strong {
    color: #7deaff;
}

/* Keep WIRES-X panel title on one line */
.w9ils-modules-column .w9ils-section-title:first-of-type {
    font-size: 18px;
    white-space: nowrap;
}
