:root {
  --primary:   #0056b3;     /* CFMQ blue */
  --accent:    #ffcc00;     /* CFMQ yellow */
  --text:      #222;
  --light:     #fdfdfd;
  --dark:      #003366;
  --error:     #721c24;
  --success:   #155724;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 110%;          /* Slightly larger base – good for seniors */
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

.site-header {
  background: var(--primary) url('../assets/radio-bg.png') center/cover no-repeat;
  color: white;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding-left: 50px;
  border-bottom: 8px solid var(--accent);
}

.header-text h1 {
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.header-text p {
  font-size: 1.4rem;
  font-weight: 600;
}

.tab-header {
  display: flex;
  flex-wrap: wrap;
  background: var(--dark);
  border-bottom: 3px solid var(--accent);
}

.tab-link {
  flex: 1;
  min-width: 120px;
  padding: 1.1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-link:hover,
.tab-link.active {
  background: var(--accent);
  color: var(--dark);
}

main {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1.8rem;
  margin-top: 3rem;
}

/* Cards & sections */
.card {
  background: var(--accent);
  color: #000;
  padding: 1.6rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  margin-bottom: 1.8rem;
}

/* Forms – unified look */
form {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid var(--accent);
  max-width: 600px;
  margin: 1.5rem auto;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: var(--dark);
  color: white;
}

button {
  background: var(--accent);
  color: #000;
  padding: 1rem 2.2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #ffd633;
}

.success-msg {
  background: #d4edda;
  color: var(--success);
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: bold;
}

.error-msg {
  background: #f8d7da;
  color: var(--error);
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: bold;
}

/* Responsive tabs on small screens */
@media (max-width: 600px) {
  .tab-link {
    flex: 1 1 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}
.section-card {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}
th {
    background: #222;
    color: var(--accent);
    padding: 12px;
    text-align: left;
}
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    max-width: 0;                  /* key for ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
td[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
    max-width: 380px;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-top: -35px;
    margin-left: 15px;
}
.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.song-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.song-list li:last-child {
    border-bottom: none;
}

tr.handled { display: none; }
