/* styles.css */
/* Theme (muted grayscale) */
:root{
  --bg: #f6f6f7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;

  --btn: #222;
  --btn-hover: #111;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --radius: 10px;
}

/* Base */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{ height:100%; margin:0; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* Container */
.container{
  max-width: 1040px;
  margin: 32px auto;
  padding: 0 16px;
}

/* Header */
header{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: center;
}

header h1{
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

header p{
  margin: 0;
  color: var(--muted);
}

/* Card */
.card{
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card .inner{ padding: 18px; }

/* Table */
.table-container{ overflow-x: auto; }

table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 700px;
  font-size: 0.96rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f4f6; /* soft gray */
  color: #1f2937;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  background: #fff;
}

tbody tr:nth-child(2n) td{ background: #fbfbfc; }

tbody tr:hover td{ background: #f7f7f8; }

/* Program name */
.prog-name{
  font-weight: 700;
  color: #111827;
}

/* Links */
.links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons (muted, invert on hover) */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--btn);
  background: #fff;
  color: var(--btn);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}

.btn:hover{
  background: var(--btn);
  color: #fff;
  border-color: var(--btn-hover);
  transform: translateY(-1px);
}

.icon{ width: 16px; height: 16px; }

/* Focus */
a:focus-visible, .btn:focus-visible{
  outline: 2px solid #9ca3af; /* neutral gray */
  outline-offset: 2px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 720px){
  .container{ padding: 0 12px; }
  table{ font-size: .92rem; }
  thead th, tbody td{ padding: 10px 12px; }
  .btn{ padding: 7px 12px; }
}



/* Rainbow RGB Highlight Effect 
@keyframes rainbow-spin {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.highlight-row {
  position: relative;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3,
    #ff0000,
    #ff7f00,
    #ffff00
  );
  background-size: 200% 100%;
  animation: rainbow-spin 1s linear infinite;
}

.highlight-row td {
  position: relative;
  padding: 15px 14px;
  border: 1.5px solid transparent;
  background: transparent;
  background-clip: padding-box;
}

.highlight-row td::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 0;
  transition: background 0.2s ease;
}

.highlight-row td > * {
  position: relative;
  z-index: 1;
}



.highlight-row:hover td::before {
  background: #fafafa;
}*/

/* Add padding effect to show the rainbow border 
.highlight-row td {
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.highlight-row td:first-child {
  border-left: 1.5px solid transparent;
}

.highlight-row td:last-child {
  border-right: 1.5px solid transparent;
}*/

