
/*====================
Blok 1 — Layout Agenda: mengatur susunan daftar agenda dan jarak antarkartu.
======================*/

#kegiatanList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

/*====================
Blok 2 — Card Agenda: mengatur tampilan kartu informasi setiap kegiatan.
======================*/

.kegiatan-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
}

.kegiatan-card-content {
  flex: 1;
  min-width: 0;
}

.kegiatan-card-content h3 {
  margin: 0 0 8px;
  color: var(--text-primary, #1e293b);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.kegiatan-card-content p {
  margin: 0 0 14px;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/*====================
Blok 3 — Metadata Agenda: menata informasi tanggal dan waktu kegiatan.
======================*/

.kegiatan-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
}

.kegiatan-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  line-height: 1.5;
}

.kegiatan-card-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/*====================
Blok 4 — Aksi Agenda: mengatur tombol edit dan hapus pada kartu.
======================*/

.kegiatan-card-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.kegiatan-card-actions .btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

.kegiatan-card-actions .btn-action svg {
  width: 16px;
  height: 16px;
}

/*====================
Blok 5 — Kondisi Agenda: mengatur tampilan kosong dan pesan pemuatan.
======================*/

#kegiatanList > .empty-state,
#kegiatanList > .loading-state,
#kegiatanList > .error-state {
  grid-column: 1 / -1;
  width: 100%;
}


/*====================
Blok 6 — Card Agenda Hari Ini: menonjolkan tanggal dan daftar kegiatan hari ini.
======================*/

.agenda-today-card {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-top: 3px solid var(--primary, #2563eb);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(15 23 42 / 5%);
}

.agenda-today-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.agenda-today-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--primary, #2563eb);
  background: var(--primary-light, #eff6ff);
  border-radius: 12px;
}

.agenda-today-icon svg {
  width: 24px;
  height: 24px;
}

.agenda-today-label {
  display: block;
  margin-bottom: 4px;
  color: var(--primary, #2563eb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.agenda-today-header h3 {
  margin: 0;
  color: var(--text-primary, #1e293b);
  font-size: 20px;
  font-weight: 700;
}

.agenda-today-header p {
  margin: 5px 0 0;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  text-transform: capitalize;
}

.agenda-today-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agenda-today-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--text-muted, #64748b);
  background: var(--bg-secondary, #f8fafc);
  border: 1px dashed var(--border-color, #e2e8f0);
  border-radius: 12px;
}

.agenda-today-empty svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.agenda-today-empty p {
  margin: 0;
  font-size: 13px;
}

.agenda-today-item {
  min-width: 0;
  padding: 16px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
}

.agenda-today-item-time {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--primary, #2563eb);
  font-size: 12px;
  font-weight: 600;
}

.agenda-today-item-time svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.agenda-today-item-info h4 {
  margin: 0 0 6px;
  color: var(--text-primary, #1e293b);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.agenda-today-item-info p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/*====================
Blok 7 — Toolbar Histori Agenda: menata pencarian dan filter tanggal.
======================*/

.agenda-history-section {
  min-width: 0;
}

.agenda-history-header {
  margin-bottom: 18px;
}

.agenda-history-header h3 {
  margin: 0 0 5px;
  color: var(--text-primary, #1e293b);
  font-size: 18px;
  font-weight: 700;
}

.agenda-history-header p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 13px;
}

.agenda-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
}

.agenda-search {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.agenda-search > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-muted, #64748b);
  transform: translateY(-50%);
  pointer-events: none;
}

.agenda-search input,
.agenda-filter input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--text-primary, #1e293b);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.agenda-search input {
  padding-left: 38px;
}

.agenda-search input:focus,
.agenda-filter input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.agenda-filter {
  width: 200px;
  flex-shrink: 0;
}

.agenda-filter label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted, #64748b);
  font-size: 11px;
  font-weight: 600;
}

.agenda-toolbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  flex-shrink: 0;
}

.agenda-toolbar > button svg {
  width: 15px;
  height: 15px;
}
/*====================
Blok 8 — Label Divisi Histori Agenda: menampilkan divisi di bawah judul kegiatan dengan teks yang lebih halus.
======================*/
.kegiatan-item-division {
  display: block;
  margin-top: 5px;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}


/*====================
Blok 9 — Label Divisi Card Agenda Desktop: menampilkan divisi sebagai badge yang rapi di bawah deskripsi agenda.
======================*/
.agenda-today-item-division {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.agenda-today-item-division svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
