html, body {
    background-color: #18282C;
    color: #FFFFFF;
    font-family: "Press Start 2P", system-ui;
    font-style: normal;
}

.text-shadow{
    text-shadow: 2px 2px 2px #3C3C3C;
}

.no-text-shadow{
    text-shadow: 0px 0px 0px #000000!important;
}

.bg_blue{
    background-color: #497582;
}

.bg_black{
    background-color: #000000;
}

.bg_dark_blue{
    background-color: #000000;
}

.fc_yellow{
    color: #FFFF82!important;
}   

.footer{
    background-color: #497582 !important;
    color: #ffffff !important;
    --bs-navbar-padding-x: 0!important;
    --bs-navbar-padding-y: 0!important;
    --bs-navbar-brand-padding-y: 0!important;
}

.navbar{
    background-color: #497582 !important;
    color: #ffffff !important;
    --bs-navbar-padding-x: 0!important;
    --bs-navbar-padding-y: 0!important;
    --bs-navbar-brand-padding-y: 0!important;
}
.navbar-brand{
    font-size: unset;
}

li.nav-item{
    margin-left:1px;
    text-shadow: unset;
}

.logo_brand {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 2px #3C3C3C;
}

.border_default{
    border-top: 2px outset #8ADBF3;
    border-left: 2px outset #8ADBF3;
    border-bottom: 2px outset #45707C;
    border-right: 2px outset #45707C;
}

.border_default_inner{
    border-bottom: 2px outset #8ADBF3;
    border-right: 2px outset #8ADBF3;
    border-top: 2px outset #45707C;
    border-left: 2px outset #45707C;
}

.border_button_outer{
    border: 2px solid #000000;
}

.border_button_inner{
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    border-bottom: 2px outset #3c3c3c;
    border-right: 2px outset #3c3c3c;
    color:#000000;
    padding: 2px;
    background-color: #9E9E9E;
    cursor: pointer;
}
p {
    margin:0;
    padding:5px;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    padding:5px;
    margin-top: 0;
    margin-bottom: 0;
}

a, .nav-link{
	color:#FFFF82;
}
a:hover, .nav-link:hover{
	color:#FFFF82;
}
a:active{
	color:#FFFF82;
}
a:visited{
	color:#FFFF82;
}

canvas {
  display: block;
  width: 100%;
  height:75px;
  border: 2px solid #000000;
}

.no-padding {
    padding:0!important;
}

.btn-default{
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    border-bottom: 2px outset #3c3c3c;
    border-right: 2px outset #3c3c3c;
    color:#000000;
    padding: 2px;
    background-color: #9E9E9E;
    border-radius: unset;
    transition: unset;
}
.btn-default:hover{
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    border-bottom: 2px outset #3c3c3c;
    border-right: 2px outset #3c3c3c;
    color:#FFFF82;
    padding: 2px;
    background-color: #000000;
    border-radius: unset;
    transition: unset;
}
.btn-default:active:focus{
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    border-bottom: 2px outset #3c3c3c;
    border-right: 2px outset #3c3c3c;
    color:#FFFFFF;
    padding: 2px;
    background-color: #000000;
    border-radius: unset;
    transition: unset;
}

.nav-link{
    color:#000000;
}
.nav-link:hover{
    color:#FFFF82;
}
.nav-link:active:focus{
    color:#ffffff;
}

/* Match nav hover/active behavior for all button-like controls */
.border_button_inner:hover{
    color:#FFFF82;
    background-color: #000000;
}
.border_button_inner:active,
.border_button_inner:focus{
    color:#ffffff;
    background-color: #000000;
    outline: none;
}

/* Make content buttons full width without affecting navbar/sidebar links */
.tab-content button.border_button_inner{
    display: block;
    width: 100%;
    text-align: center;
}
.tab-content .border_button_outer{
    display: block;
    width: 100%;
}


/* Active state: make nav-like buttons white */
.nav .nav-link.border_button_inner.active,
.navbar .nav-link.border_button_inner.active {
    color: #ffffff;
}

#map { height: 500px; }

/* --- Form Defaults (global) --- */
/* Square corners, black background, yellow input text for all form fields */
.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
    background-color: #000000;
    color: #FFFF82;
    border-radius: 0 !important;
    border: 1px solid #3c3c3c;
    caret-color: #FFFF82;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: #FFFF82;
    opacity: 0.7;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus {
    background-color: #000000;
    color: #FFFF82;
    border-color: #FFFF82;
    box-shadow: none;
    outline: none;
}

/* Checkboxes/radios: square corners and theme colors */
.form-check-input {
    background-color: #000000;
    border: 1px solid #FFFF82;
    border-radius: 0 !important;
    accent-color: #FFFF82; /* modern browsers */
}

.form-check-input:focus {
    border-color: #FFFF82;
    box-shadow: none;
    outline: none;
}

.form-check-input:checked {
    background-color: #FFFF82;
    border-color: #FFFF82;
}

.form-control:disabled,
.form-select:disabled,
textarea:disabled,
input:disabled,
select:disabled {
    background-color: #0a0a0a;
    color: #a7a767;
    border-color: #333333;
    opacity: 1; /* keep readable */
}

/* Override Bootstrap muted text to be white */
.text-muted {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* URL column removed from Stations table; no CSS hiding needed */

/* Make all tables background transparent and add subtle hover effect */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #ffffff !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06) !important;
    --bs-table-hover-color: inherit !important;
}

.table tbody tr {
    transition: background-color 0.12s ease;
}

/* Highlight the currently playing station */
.table-stations tbody tr.is-playing {
    background-color: rgba(255, 255, 130, 0.16) !important; /* theme yellow, dimmed */
}
.table-stations tbody tr.is-playing:hover {
    background-color: rgba(255, 255, 130, 0.22) !important;
}

/* Yellow play/stop button when playing */
.border_button_inner.is-playing {
    background-color: #FFFF82;
    color: #000000;
}
.border_button_inner.is-playing:hover {
    color: #000000;
    background-color: #FFFF82;
}


/* --- Stations Status Indicator --- */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.status-online {
    background-color: #28a745; /* Bootstrap green */
}
.status-offline {
    background-color: #dc3545; /* Bootstrap red */
}

/* --- Mobile-friendly stacked layout for Stations table --- */
@media (max-width: 576px) {
    .table-stations thead {
        display: none;
    }
    .table-stations tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        overflow: hidden;
    }
    .table-stations tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
        width: 100%;
    }
    .table-stations tbody td::before {
        content: attr(data-label);
        color: #FFFF82;
        margin-right: 1rem;
        text-align: left;
    }
    .table-stations tbody td:last-child .border_button_outer {
        width: 100%;
    }

    /* Center Status and remove its label on mobile */
    .table-stations tbody td[data-label="Status"] {
        justify-content: center;
    }
    .table-stations tbody td[data-label="Status"]::before {
        display: none;
    }
    .table-stations .status-dot {
        margin-right: 0;
    }

    /* Hide Bitrate cell on very small screens to reduce height */
    .table-stations tbody td[data-label="Bitrate"] {
        display: none;
    }
}

/* Sidebar layout reverted to original grid behavior */

/* Sidebar control buttons: make them block and full-width */
#station_details_info .border_button_outer {
    display: block;
    width: 100%;
}
#station_details_info .border_button_inner {
    display: block;
    width: 100%;
    text-align: center;
}


