body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 20px;
    background-color: #f0f2f5;
    color: #333;
}
h1 {
    text-align: center;
    margin-bottom: 15px;
}

/* Layout */
.container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Left side: cards */
.card {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.card:hover {
    transform: translateY(-1px);
}
.card-header {
    cursor: pointer;
}
.meta {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 3px;
}
.headline {
    font-weight: 500;
    font-size: 0.85em;
}
.card-body {
    display: none;
    margin-top: 5px;
    font-size: 0.8em;
    line-height: 1.2em;
    color: #444;
}

/* Zebra striping for cards */
.card:nth-child(even) {
    background-color: #dbdbdb; /* light grey for alternate cards */
}

/* Highlight HOT CALL cards */
.card[data-category="HOT CALL"] {
    background-color: #ffe5e5 !important; /* light red */
    border-left: 5px solid #d32f2f;
}

/* Right column wrapper */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Top box / sidebar styling */
.top-box, .sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sidebar h2 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 5px;
}
.sidebar ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.7em;
}
.sidebar li {
    margin-bottom: 4px;
}
.sidebar li a {
    text-decoration: none;
    font-size: 1.2em;
}
.sidebar a:hover {
    text-decoration: underline;
}
.sidebar hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Colored sidebars */
.sidebar.dispatch {
    background-color: #4d4d4d; /* steel blue */
    color: #f0f0f0;
}
.sidebar.dispatch a {
    color: #dfe68c;
}
.sidebar.tactical {
    background-color: #5c5c5c; /* dark grey */
    color: #e8e8e8;
}
.sidebar.tactical a {
    color: #dfe68c;
}
.sidebar.units {
    background-color: #333333; /* dark grey */
    color: #ffffff;
}
.sidebar.units a {
    color: #ffffff;
}

/* Tactical Sidebar - grid layout + status colors */
.sidebar.tactical ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    padding: 0;
    list-style: none;
    color: #000000; /* This will apply to the <li> text inside the <ul> */
}
.sidebar.tactical li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    background: #f5f5f5;
    transition: background-color 0.3s;
}
.sidebar.tactical li.status-gray   { background-color: #e0e0e0; }
.sidebar.tactical li.status-green  { background-color: #31a84d; }

/* Plain list items (no box) */
.sidebar.tactical li.plain {
    border: none;
    background: none;
    padding: 4px 0;
    font-size: 0.9em;
}

/* Tactical links */
.sidebar.tactical li a {
    text-decoration: none;
    color: inherit;
}

/* Radio system load widget - boxes */
.radio-load {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.radio-load .load-box {
    flex: 1;
    margin: 0 3px;
    padding: 5px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    font-size: 0.75em;
    color: #fff;
    background-color: #ccc;
    transition: background-color 0.3s ease;
}
.radio-load .active-low { background-color: #4caf50; }
.radio-load .active-medium { background-color: #ff9800; }
.radio-load .active-high { background-color: #f44336; }

/* PulsePoint box specific */
.pulsepoint-box {
    background-color: #d32f2f;
    color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pulsepoint-box img {
    height: 40px;
    width: auto;
}
.pulsepoint-box a {
    color: white;
    text-decoration: underline;
}
.pulsepoint-box p {
    margin: 5px 0 0 0;
    font-size: 0.75em;
}

/* OpenMHz box */
.openmhz-box {
    background-color: #f0f0f0;
    color: black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.openmhz-box img {
    height: 40px;
    width: auto;
}
.openmhz-box a {
    color: black;
    text-decoration: underline;
}
.openmhz-box p {
    margin: 5px 0 0 0;
    font-size: 0.75em;
}

/* Category dropdown */
#categoryFilter {
    margin-bottom: 15px;
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
}

/* Active filter state */
#categoryFilter.active-filter {
    background-color: #000; /* black background */
    color: #fff;             /* white text */
}

#refreshInfo {
    text-align: center;
    font-size: 0.8em; /* smaller text */
    color: #555;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#categoryList {
    display: inline-block;
    margin-top: 5px;
}

#categoryList span {
    background-color: #444; /* dark grey background */
    color: #fff;             /* white text */
    padding: 4px 10px;       /* padding inside box */
    border-radius: 8px;      /* rounded corners */
    margin: 3px;             /* spacing between boxes */
    display: inline-block;
    font-size: 0.75em;       /* slightly smaller for categories */
}

#jumpToSidebar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    display: none; /* hidden by default */
}

@media (max-width: 768px) and (orientation: portrait) {
    #jumpToSidebar {
        display: block;
    }
}

/* ---------- Dispatch Sidebar Boxes ---------- */
.sidebar.dispatch .hotcall-box,
.sidebar.dispatch .madison-box,
.sidebar.dispatch .county-box {
    background-color: #a6a6a6;   /* light blue background for boxes */
    border: 1px solid #c4cdd8;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

/* Pills / buttons */
.sidebar.dispatch .pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar.dispatch .pill {
    background-color: #4d4d4d; /* dark blue buttons */
    color: #ffffff !important; /* yellow text */
    font-weight: bold;
    font-size: 0.75em;      /* smaller font */
    text-decoration: none;
    padding: 5px 10px;      /* slightly smaller padding */
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    min-width: 60px;
    transition: background-color 0.3s ease;
}

.sidebar.dispatch .pill:hover {
    background-color: #223b8f;
}

/* Informational text */
.sidebar.dispatch .description,
.sidebar.dispatch .description ul,
.sidebar.dispatch .description li {
    font-size: 0.75em; /* test */
    color: #111 !important; /* force dark text */
    margin: 0;
    padding: 0;
    line-height: 1.2em;
}

.sidebar.dispatch .description ul {
    list-style-type: disc;
    margin-left: 18px;
}

/* Divider */
.sidebar.dispatch .divider {
    border: none;
    border-top: 1px solid #c4cdd8;
    margin: 6px 0;
}

/* Self Dispatch label */
.sidebar.dispatch .self-dispatch-label {
    font-weight: bold;
    color: #111 !important;
    margin-bottom: 6px;
    font-size: 0.78em; /* slightly smaller */
}

/* Search input with clear button */
.search-wrapper {
    position: relative;
    display: inline-block;
}

#searchInput {
    padding: 5px 28px 5px 10px; /* extra right padding for X */
    font-size: 0.85em;
    border-radius: 5px;
    width: 200px;
}

#clearSearch {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #999;
    display: none; /* hidden until input has text */
}
#clearSearch:hover {
    color: #333;
}

.call-link {
    text-decoration: none;  /* removes underline */
    color: #1a73e8;         /* optional: nice link color */
}

.call-link:hover {
    text-decoration: underline; /* optional: underline on hover for clarity */
}
