body,
.form-control {
  font-weight: 300;
}

h1 {
  font-weight: 900 !important;
}

/* PANDUAN DAN CHANGE MODE */
.manual {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  padding: 4px 8px !important;
  border-radius: 10px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-size: 14px;
  color: var(--default-color);
  transition: all 0.25s ease;
}

.manual i {
  transition: 0.25s;
}

/* hover */
.manual:hover {
  transform: translateY(-2px);
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* icon follows text */
.manual:hover i {
  color: var(--contrast-color);
}

.theme-switch {
  width: 50px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px !important;
  transition: all 0.25s ease;
}

/* icon */
.theme-switch i {
  position: absolute;
  left: 4px;
  font-size: 14px;
  transition: all 0.25s ease;
  color: var(--accent-color);
}

/* hover effect */
.theme-switch:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* dark state */
.theme-switch.dark i {
  left: 26px;
  color: var(--accent-color);
  /* use system color */
}

.theme-switch:hover i {
  color: var(--contrast-color);
}

.theme-switch.dark:hover i {
  color: var(--contrast-color);
}

/* LIGHT-DARK MODE */
body.light {
  --accent-color: #136ad5;
  /* blue */
}

body.dark {
  --accent-color: #e59d02;
  /* gold */
}

/* OUTLINE */
.btn-outline-theme {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  transition: 0.25s;
}

.btn-outline-theme:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* SOLID BUTTON */
.btn-theme {
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.25s;
}

/* HOVER */
.btn-theme:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(-1deg);
  }

  75% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.btn:not(.position-relative) {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  z-index: 1;
}

/* subtle lift */
.btn:not(.position-relative):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


/* ✨ SHINE EFFECT (UPGRADED) */
.btn:not(.position-relative)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;

  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 30%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.15) 70%,
      transparent 100%);

  transform: skewX(-20deg);
  transition: none;
}

/* trigger animation */
.btn:not(.position-relative):hover::before {
  animation: btn-shine 0.75s ease forwards;
}


/* 🎬 smoother animation */
@keyframes btn-shine {
  0% {
    left: -120%;
  }

  100% {
    left: 130%;
  }
}

@keyframes wipe {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

/* GRID TABEL*/
.table {
  text-align: left;
}

.kv-grid-table th {
  vertical-align: middle !important;
}

.user-link {
  text-decoration: none;
}

.badge-hari-ini {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: inline-block;
  animation: scalePulse 0.5s ease-in-out infinite;
}

@keyframes scalePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

tr:hover .badge-besok {
  transform: scale(1.25);
  transition: 0.2s ease;
}


/* BADGE PEGAWAI */
/* container */
.user-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* avatar image */
.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

/* fallback avatar */
.user-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #1c1e20;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* name */
.user-name {
  transition: 0.2s;
}

.user-inline:hover {
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.user-inline:hover .user-name {
  color: var(--accent-color);
}

.user-inline:hover .user-avatar-img {
  transform: scale(1.05);
}

.profile-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.profile-fallback {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #1c1e20;
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* DETAIL TIM */
.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 3px 5px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;

  border: 1px solid transparent;
  transition: 0.2s;
}

.badge-year {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
}

.badge-project,
.badge-team-lead {
  background: rgba(var(--accent-rgb), 0.12);
  color: rgb(var(--accent-rgb));
  border-color: rgba(var(--accent-rgb), 0.3);
}

.badge-modern:hover {
  transform: translateY(-1px);
}

.badge-sub {
  opacity: 0.7;
  font-size: 0.7rem;
  margin-left: 4px;
}

.empty-state {
  font-size: 0.8rem;
  opacity: 0.6;
  padding: 6px 2px;
}

.team-group {
  line-height: 1.2;
}

.team-name {
  font-weight: 600;
}

.team-leader {
  font-size: 0.75rem;
  opacity: 0.7;
}

.info-section {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  margin-bottom: 8px;
}

.info-section+.info-section {
  margin-top: 12px;
}

.info-section:not(:last-child) {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.bg-dark .info-section:not(:last-child) {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.bg-dark .info-section {
  background: rgba(255, 255, 255, 0.03);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title-fi {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  /* slightly bigger */
  flex-wrap: wrap;
  /* important when small screen */
}

.section-meta {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.15);
  color: rgb(var(--accent-rgb));
}

/* FORM AGENDA DLL */
.select2-container {
  display: inline !important;
}

.select2-container .select2-selection--single {
  height: 36px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-right: 8px !important;
}

/* GAYA */
.section h1 {
  text-align: center;
}

.section h1::before,
.section h1::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
  vertical-align: middle;
  /* 🔥 THIS */
  margin: 0 10px;
}

/* PELAKSANA*/
.pelaksana-badge {
  padding: 0px !important;
  font-size: small !important;
}

.pelaksana-badge .feature-item {
  padding: 0.1rem 0.3rem !important;
  border-radius: 0.2rem !important;
}

.pelaksana-eksternal {
  opacity: 0.75;
}

.pelaksana-eksternal .feature-item {
  background: rgba(156, 163, 175, 0.15);
  /* neutral gray */
}

/* optional icon tone */
.pelaksana-eksternal .feature-item i {
  color: #9ca3af !important;
}

.pelaksana-badge span {
  font-weight: 300 !important;
}

/*COPY CLIPBOARD*/
.custom-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: rgba(var(--accent-rgb), 0.95);
  color: #fff;

  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;

  display: flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  opacity: 0;
  transition: all 0.3s ease;

  z-index: 9999;
}

.custom-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  /* 🔥 prevents wrapping */
}

.copy-btn {
  padding: 2px 6px;
  border: 0;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}

/*KEYWORD LINK APLIKASI DAN SHARING*/
.keyword-badge {
  display: inline-block;
  padding: 3px 8px;
  margin: 2px;
  font-size: 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: default;

  background: rgba(var(--accent-rgb), 0.12);
  color: rgb(var(--accent-rgb));

  transition: all 0.2s ease;
}

/* Hover */
.keyword-badge:hover {
  background: rgba(var(--accent-rgb), 0.25);
  color: rgb(var(--accent-rgb));
  transform: translateY(-1px);
}

/* Dark mode tweak */
.bg-dark .keyword-badge {
  background: rgba(var(--accent-rgb), 0.2);
  color: rgb(var(--accent-rgb));
}

.bg-dark .keyword-badge:hover {
  background: rgba(var(--accent-rgb), 0.35);
}

/* DETAIL VIEW*/
.detail-modern {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.bg-dark .detail-modern {
  background: rgba(30, 30, 30, 0.9);
}

.detail-modern td,
.detail-modern th {
  border: none !important;
  padding: 12px 16px !important;
}

.detail-modern tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-dark .detail-modern tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-modern th {
  width: 220px;
  font-weight: 600;
  color: #6c757d;
}

.detail-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-dark .detail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  font-weight: 600;
  color: #6c757d;
  min-width: 20%;
  max-width: 20%;
}

.detail-value {
  flex: 1;
  font-weight: 500;
}

/* spacing consistency */
.detail-row:last-child {
  border-bottom: none;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.participant-chip {
  display: inline-block;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 6px;
  /* less rounded = more readable */

  font-size: 0.78rem;
  font-weight: 500;

  background: rgba(var(--accent-rgb), 0.12);
  color: rgb(var(--accent-rgb));

  border: 1px solid rgba(var(--accent-rgb), 0.25);

  transition: all 0.2s ease;
}

.participant-chip:hover {
  background: rgba(var(--accent-rgb), 0.25);
}

.participant-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.participant-chip.highlight {
  background: rgba(var(--accent-rgb), 0.4);
}

/* KALENDER AGENDA */
.page-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#calendar {
  padding: 6px;
}

/* cleaner calendar look */
.fc {
  font-size: 0.85rem;
}

/* soften event look */
.fc-h-event {
  background: rgba(var(--accent-rgb), 0.85);
  border: none;
  border-radius: 6px;
  padding: 2px 4px;
}

/* hover effect */
.fc-event:hover {
  filter: brightness(1.1);
}

.event-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-row {
  display: flex;
  flex-direction: column;
  /* 👈 key change */
  gap: 2px;

  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-dark .event-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-label {
  font-size: 0.75rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-value {
  font-weight: 500;
  text-align: left;
}

#event-details {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

#event-details.show {
  opacity: 1;
  transform: translateY(0);
}

.card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* BATAS BPS */
hr.bps {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

/* DROPDOWN MENU DI AGENDA UTAMA */
.hover-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  /* remove jump */
}

/* smooth feel */
.dropdown-menu {
  transition: all 0.2s ease;
}

.toast {
  width: 100% !important;
}

.redactor-editor {
  color: #1c1e20 !important;
}

/* Tampilan PDF HP */

.pdf-wrapper {
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.pdf-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .pdf-wrapper {
        height: 500px;
    }
}