* {
  box-sizing: border-box;
  font-family: 'arial', sans-serif;
}

body {
  background: #f6f8fb;
  margin: 0;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-title i {
  font-size: 25px;
  color: #3b82f6;
}

.page-title h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #1f2937;
}


/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

.search-box {
  position: relative;
  width: 380px;
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

.legend span {
  margin-right: 15px;
  font-size: 14px;
}

.legend i {
  margin-right: 5px;
}

.year {
  font-weight: bold;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1200px;
  width: 100%;
}

th, td {
  border: 1px solid #e1e1e1;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f1f3f6;
  text-align: center;
}

.agenda-col {
  width: 370px;
  min-width: 370px;
  text-align: left;
}

/* Sticky column */
.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
}

.agenda-text {
  white-space: normal;      /* teks boleh turun baris */
  line-height: 1.5;
  font-size: 16px;
}

/* Date badge */
.date-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;              /* font putih */
  text-decoration: none;
  transition: all 0.25s ease;
}

.date-badge.upcoming {
  background: #9adad8;
  color: #000000;
}

.date-badge.past {
  background: #f25f5c;
  color: #ffffff;
}

/* Hover effect */
.date-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  opacity: 0.9;
}

/* Legend colors */
.upcoming {
  color: #9adad8;
}

.past {
  color: #f25f5c;
}

.archive-dropdown {
  position: relative;
}

.archive-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease;
}

.archive-btn:hover {
  background: #2563eb;
}

.archive-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  min-width: 160px;
  display: none;
  z-index: 10;
  overflow: hidden;
}

.archive-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.2s ease;
}

.archive-menu a:hover {
  background: #f1f5f9;
}

/* Show dropdown */
.archive-dropdown.active .archive-menu {
  display: block;
}

