:root{
  --bg:#f7fbff;
  --bg2:#eef6ff;

  --card:#ffffff;
  --text:#0a1533;
  --muted:#51618a;

  --line: rgba(20, 40, 120, .14);
  --shadow: 0 18px 60px rgba(10, 25, 70, .10);

  --accent:#2f7dff;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(47,125,255,.18) 0%, rgba(47,125,255,0) 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(123,61,255,.14) 0%, rgba(123,61,255,0) 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand{
  font-weight: 1000;
  letter-spacing: .20em;
  font-size: 13px;
  color: rgba(10,21,51,.90);
}

.nav{ display:flex; gap:10px; align-items:center; }

.navlink{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration:none;
  color: rgba(10,21,51,.92);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(10,25,70,.06);
}

.navlink.active{
  border-color: rgba(47,125,255,.35);
  box-shadow: 0 16px 36px rgba(47,125,255,.14);
}

/* Layout */
.wrap{
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 14px;
}
.wrap.wide{ max-width: 1500px; }

/* Card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.cardhead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(20,40,120,.10);
}

.actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

h2{ margin: 0; font-size: 22px; letter-spacing:.01em; }

.muted{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.msg{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(10,21,51,.75);
  min-height: 18px;
}

/* Buttons */
.btn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(47,125,255,.95), rgba(47,125,255,.72));
  color: #fff;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 16px 36px rgba(47,125,255,.18);
}
.btn.ghost{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  color: rgba(10,21,51,.92);
  box-shadow: 0 14px 30px rgba(10,25,70,.06);
}
.btn.small{ padding: 8px 10px; border-radius: 12px; font-weight: 900; }

/* ===== Calendar FULLSCREEN ===== */
.wrap.wide.fullPage{
  height: calc(100vh - 64px);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  display: flex;
}
.wrap.wide.fullPage > .card{
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.calendarFull{
  margin-top: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 18px 50px rgba(10,25,70,.06);
  flex: 1;
  min-height: 520px;
  display:block;
}
#calendar{ height:100% !important; }
#calendar .fc{ height:100% !important; }
#calendar .fc-view-harness{ height: calc(100% - 52px) !important; }
#calendar .fc-scroller{ height:100% !important; overflow:auto !important; }

/* FullCalendar light */
.fc .fc-toolbar-title{ font-weight: 1000; letter-spacing: .02em; }
.fc .fc-button{
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.82) !important;
  color: rgba(10,21,51,.92) !important;
  box-shadow: 0 10px 22px rgba(10,25,70,.06) !important;
}
.fc .fc-daygrid-day{ background: rgba(255,255,255,.65); }
.fc .fc-day-today{ background: rgba(47,125,255,.10) !important; }
.fc .fc-event{
  cursor:pointer;
  border: 1px solid rgba(47,125,255,.35) !important;
  background: rgba(47,125,255,.14) !important;
  color: rgba(10,21,51,.95) !important;
  border-radius: 12px !important;
  padding: 2px 6px !important;
}
.fc .fc-event .fc-event-title{ font-weight: 900; }

/* ===== Popup Dialog (seperti contoh) ===== */
.dlg{ position: fixed; inset: 0; z-index: 9999; }
.dlg__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(3px);
}
.dlg__box{
  position: relative;
  width: min(680px, 92vw);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
}
.dlg__head{ padding: 18px 20px 8px; }
.dlg__title{
  font-size: 20px;
  font-weight: 900;
  color: #2e9f3d;
}
.dlg__x{
  position:absolute; right: 10px; top: 8px;
  width: 32px; height: 32px;
  border: none; background: transparent;
  font-size: 22px; color: rgba(0,0,0,.35);
  cursor:pointer;
}
.dlg__x:hover{ color: rgba(0,0,0,.55); }
.dlg__body{
  padding: 6px 20px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.dlg__row{ display:flex; align-items:flex-start; gap:10px; padding:7px 0; }
.dlg__ico{ width:18px; text-align:center; opacity:.85; margin-top:1px; }
.dlg__text{ font-size:14px; color: rgba(0,0,0,.78); line-height: 1.35; }
.dlg__foot{ padding: 12px 20px 16px; display:flex; justify-content:flex-end; }
.dlg__ok{
  border: 2px solid #1a73e8;
  background:#fff;
  color:#1a73e8;
  font-weight:900;
  padding: 8px 16px;
  border-radius: 4px;
  cursor:pointer;
}
.dlg__ok:hover{ background: rgba(26,115,232,.08); }

/* ===== Login (seperti gambar) ===== */
.loginWrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px;
  background: #ffffff;
}
.loginBox{
  width: min(560px, 94vw);
  background: #333a40;
  border-radius: 0px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.loginDivider{
  margin: 18px 0 14px;
  border: none;
  border-top: 1px solid rgba(255,255,255,.18);
}
.loginRow{
  display:flex;
  align-items:stretch;
  gap: 0;
  margin: 10px 0;
}
.loginIcon{
  width: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  font-size: 18px;
  user-select:none;
}
.loginIcon.user{ background:#2dbf76; }
.loginIcon.key{ background:#f0b43a; }
.loginField{
  flex:1;
  border:none;
  outline:none;
  background:#ffffff;
  padding: 12px 14px;
  font-size: 16px;
}
.loginField.pass{ background:#fff8c9; }
.loginBottom{ display:flex; justify-content:flex-end; align-items:center; }
.loginBtn{
  background:#2dbf76;
  border:none;
  color:#fff;
  font-weight:900;
  padding: 10px 18px;
  cursor:pointer;
}
.loginBtn:hover{ filter: brightness(1.03); }
.loginErr{ margin-top: 10px; color:#ffd6d6; font-size: 13px; }
/* ===== Modern Form (Input Agenda) ===== */
.formGrid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.field.full{ grid-column: 1 / -1; }

.field label{
  font-size: 13px;
  color: rgba(10,21,51,.70);
  font-weight: 800;
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid rgba(20,40,120,.18);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.86);
  outline: none;
  box-shadow: 0 12px 30px rgba(10,25,70,.05);
  font-size: 14px;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(47,125,255,.45);
  box-shadow: 0 18px 46px rgba(47,125,255,.14);
}

.formActions{
  grid-column: 1 / -1;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding-top: 6px;
}

@media (max-width: 760px){
  .formGrid{ grid-template-columns: 1fr; }
}
