.uci-cal { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.uci-top {
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; flex-wrap:wrap; padding:12px 0;
  border-bottom:1px solid #eee;
}

.uci-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.uci-tab {
  display: block;
  color: var(--heading-font-color);
  padding: 15px 20px;
  transition: all 300ms ease-out 0s;
  position: relative;
  z-index: 1;
  background: var(--bg-silver);
  margin-bottom: 10px;
  font-weight: 500;
  overflow: hidden;
  border-radius: 10px;

  border: none;
  cursor: pointer;
}

/* Hover effect */
.uci-tab:hover {
  color: #fff;
  background: var(--webex-primary-color);
  filter: brightness(0.96);
}

/* Actieve tab */
.uci-tab[aria-selected="true"] {
  color: #fff;
  background: var(--webex-primary-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Focus (toegankelijkheid) */
.uci-tab:focus-visible {
  outline: 2px solid var(--text-webex-primary-color);
  outline-offset: 2px;
}

.uci-nav { display:flex; align-items:center; gap:10px; }

.uci-btn {
  color: #ccc;
  font-weight: 500;
  font-size: 20px;
  height: 40px;
  width: 40px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 15px;
  background: var(--bg-silver);
  border-radius: 3px;
  cursor: pointer;
}

/* FIX: .uci-btn is button, geen <a> */
.uci-btn:hover {
  border: 1px solid transparent;
  background: var(--webex-primary-color);
  color: #fff;
}
.uci-btn:active {
  border: 1px solid transparent;
  background: var(--webex-primary-color);
  color: #fff;
}

.uci-title {
  font-weight:700;
  font-size:18px;
  height: 40px;
  line-height: 30px;
  text-transform: uppercase;
}

.uci-loading { padding:12px 0; color:#666; }

.uci-list { padding:14px 0; display:flex; flex-direction:column; gap:18px; }

.uci-dayhdr {
  font-weight:700;
  margin-bottom:8px;
  color: var(--webex-primary-color);
  text-transform: uppercase;
}

.uci-row {
  display:grid;
  grid-template-columns: 25px 120px 1fr 220px; /* desktop */
  gap:14px;
  align-items:center;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.uci-accent {
  width: 25px;
  height: 100%;
  align-self: stretch;
}

.uci-date,
.uci-main,
.uci-meta {
  padding: 10px 0;
}

.uci-date { padding-left: 12px; color:#111; font-weight:600; font-size:14px; }
.uci-date small { display:block; color:#666; font-weight:500; }

.uci-main { display:flex; align-items:center; gap:10px; min-width:0; }
.uci-flag { width:18px; height:13px; border:1px solid #eee; border-radius:2px; object-fit:cover; }

.uci-name {
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color: var(--webex-primary-color);
  text-transform: uppercase;
}

.uci-sub { color:#666; font-size:12px; margin-top:2px; }

.uci-meta { padding-right: 12px; text-align:right; }
.uci-cat { font-weight:700; font-size:13px; color: var(--webex-primary-color); text-transform: uppercase; }
.uci-tags { margin-top:2px; color:#666; font-size:12px; }

/* =========================
   Responsive improvements
   ========================= */

/* Tablets + phones */
@media (max-width: 768px) {
  .uci-top {
    gap: 10px;
    padding: 10px 0;
  }

  /* Tabs horizontaal scrollbaar */
  .uci-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 6px;
    scrollbar-width: none;
  }
  .uci-tabs::-webkit-scrollbar { display: none; }

  .uci-tab {
    flex: 0 0 auto;
    padding: 12px 14px;
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 14px;
  }

  /* Nav op 1 lijn, titel in midden */
  .uci-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .uci-title {
    font-size: 16px;
    height: auto;
    line-height: 1.2;
    text-align: center;
  }

  .uci-btn {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
  }

  /* BELANGRIJK: mobiele row layout met aparte areas (geen overlap) */
  .uci-row {
    grid-template-columns: 25px 1fr;
    grid-template-areas:
      "accent date"
      "accent main"
      "accent meta";
    gap: 8px;
  }

  .uci-accent { grid-area: accent; }

  .uci-date {
    grid-area: date;
    padding: 12px 12px 0 12px;
    font-size: 13px;
  }

  .uci-main {
    grid-area: main;
    padding: 0 12px 0 12px;
    align-items: flex-start;
  }

  .uci-meta {
    grid-area: meta;
    padding: 10px 12px 12px 12px;
    text-align: left;
    border-top: 1px solid #f2f2f2;
  }

  /* Naam moet altijd zichtbaar zijn op mobiel */
  .uci-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    font-size: 13px;
  }

  .uci-cat { font-size: 12px; }
  .uci-tags { font-size: 12px; }

  .uci-flag { width: 20px; height: 14px; }
}

/* Extra small phones */
@media (max-width: 420px) {
  .uci-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .uci-row { border-radius: 12px; }

  .uci-date {
    padding: 10px 10px 0 10px;
    font-size: 12px;
  }

  .uci-main {
    padding: 0 10px 0 10px;
    gap: 8px;
  }

  .uci-meta {
    padding: 8px 10px 10px 10px;
  }

  .uci-title { font-size: 15px; }
}

