/* =========================================================
   StationPlaylist Listener Request System
   Mediabase-style layout (Modern, Hardened, PHP 8+ safe)
   ========================================================= */

/* RESET & SAFETY ---------------------------------------- */

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* BASE -------------------------------------------------- */

body {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 14px;
  background: #ffffff;
  color: #000000;
  padding: 20px;
  line-height: 1.35;
}

/* WRAPPER ----------------------------------- */

#request-app {
  max-width: 1400px;
  margin: 0 auto;
}

/* PAGE HEADER ------------------------------------------- */
.header {
background-color: #CDDBF7 !important;
}
.call_letters {
    color: #900 !important;
}

/* HEADINGS --------------------------------------------- */

h1 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px 0;
}

h2 {
  font-size: 16px;
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

/* TEXT ------------------------------------------------- */

p {
  margin: 6px 0;
}

em {
  font-style: italic;
  color: #900;
}

/* ===== TWO-COLUMN LAYOUT (FORCED) ===================== */

.tables {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

.table-box {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #444;
  background: #f9f9f9;
}

/* HEADER BAR ------------------------------------------- */

.table-header {
  background: #cddbf7;
  padding: 6px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #444;
}

/* SCROLLABLE BODY -------------------------------------- */

.table-scroll {
  max-height: 650px;
  overflow-y: auto;
}

/* TABLE STYLES ----------------------------------------- */

.song-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.song-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e5ecff;
  padding: 6px;
  border-bottom: 1px solid #999;
  text-align: left;
}

.song-table td {
  padding: 6px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

.song-table tr:nth-child(even) {
  background: #f1f1f1;
}

.song-table tr:hover {
  background: #eef3ff;
}

/* CHECKBOX COLUMN -------------------------------------- */

.song-table td.chk,
.song-table th.chk {
  width: 36px;
  text-align: center;
}

.song-table input[type="checkbox"] {
  transform: scale(1.1);
  cursor: pointer;
}

/* FORM ------------------------------------------------- */

form {
  margin: 0;
}

input[type="submit"] {
  display: block;
  margin: 20px auto 0;
  font-size: 14px;
  padding: 6px 18px;
  border: 1px solid #444;
  background: #f0f0f0;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #e0e0e0;
}

/* FOOTER ---------------------------------------------- */

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}

small {
  font-size: 12px;
  color: #333;
}

/* RESPONSIVE ------------------------------------------ */

@media (max-width: 900px) {
  .tables {
    flex-direction: column;
  }
}

/* ALERT BANNERS ------------------------------------------ */
.alert {
    max-width: 960px;
    margin: 15px auto;
    padding: 14px 18px;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* SUCCESS / OK */
.alert-success {
    background-color: #e6f6ea;
    color: #1d6b3e;
    border: 1px solid #9bd3b0;
}

/* WARNING */
.alert-warning {
    background-color: #fff8e5;
    color: #8a5d00;
    border: 1px solid #f1c40f;
}

/* DANGER / ERROR */
.alert-danger {
    background-color: #fdecea;
    color: #9b1c1c;
    border: 1px solid #e74c3c;
}

/* Optional icon spacing */
.alert strong {
    display: block;
    margin-bottom: 4px;
}