/* =========== SCOPE =========== */
.sso-scope {
  --bg: linear-gradient(180deg, #fcfcfd 0%, #f3f4f6 100%);
  --card: #ffffff;
  --muted: #7f8081;
  --line: #c4c6c9;
  --ink: #0f172a;
  --ink-2: #243046;
  --brand: #2a74e0;

  background: var(--bg);
  min-height: 100svh;
}

.sso-scope * {
  box-sizing: border-box;
}
.sso-scope img {
  max-width: 100%;
  display: block;
}

/* =========== LAYOUT =========== */
.sso-scope .sso-container {
  max-width: 1400px; /* << kecil & rapih */
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr); /* kiri profil, kanan konten */
  gap: 20px;
}

/* Cards */
.sso-scope .sso-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin: 13px 0;
  box-shadow: 0 1px 8px rgba(40, 50, 70, 0.767);
}
/* =========== PROFIL =========== */
.sso-scope .sso-profile {
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  padding: 0; /* penting: header nempel dengan card */
  overflow: hidden;
  min-height: 560px; /* 5) profil dipanjangin */
}

/* ===== HEADER (brand + logout) ===== */
.sso-scope .profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0d2745, #133b67, #1e3c72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 1) SERVANDA lebih bagus */
.sso-scope .brand-title {
  margin: 0;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sso-scope .brand-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #010101;
  font-weight: 900;
  font-size: 19px;
}

/* Tombol logout (2) */
.sso-scope .action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #ffd8cc;
  background: #ffece6;
  color: #e44a3d;
}
.sso-scope .action:hover {
  background: #ffdcd5;
}

/* ===== BODY ===== */
.sso-scope .profile-body {
  padding: 18px 20px 20px; /* 6) teks tidak mepet kiri */
}

.sso-scope .sso-avatar {
  display: grid;
  place-items: center;
  margin: 8px 0 12px;
  position: relative;
}
.sso-scope .avatar-img {
  border-radius: 999px;
  border: 3px solid #e3e1e1;
  object-fit: cover;
}
/* tombol kamera kecil di pojok kanan-bawah */
.sso-scope .avatar-edit-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #133b67;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sso-scope .avatar-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: #f7f9fc;
}

.sso-scope .sso-name {
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  margin-top: 8px;
  font-size: 20px;
}
.sso-scope .sso-jabatan {
  text-align: center;
  color: var(--muted);
  font-weight: bold;
  font-size: 15px;
}

/* Tombol (3 & 4) */
.sso-scope .sso-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.sso-scope .sso-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: #fff;
  color: #0f172a;
}

/* Ganti password – berwarna & tidak mepet */
.sso-scope .btn-pass {
  background: #e8f0ff;
  border-color: #d8e3ff;
  color: #1e3a8a;
  font-weight: bold;
}

/* Ganti avatar – ikon user berwarna & tidak mepet */
.sso-scope .btn-avatar {
  background: #e8fff3;
  border-color: #ccf5e2;
  color: #047857;
  font-weight: bold;
}

/* Daftar info */
.sso-scope .sso-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 12px;
  color: var(--ink-2);
}

.sso-scope .sso-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sso-scope .sso-info .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sso-scope .sso-info li span:last-child {
  color: var(--ink);
}

/* ===== MODAL ===== */
.sso-scope .modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.sso-scope .modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.sso-scope .modal-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0f1c2e;
}
.sso-scope .modal-sub {
  margin: 0 0 16px;
  color: #475569;
}
.sso-scope .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.sso-scope .btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f1c2e;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
}
.sso-scope .btn-danger {
  background: #ef4444;
  border: 1px solid #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
}

/* =========== GREETING =========== */
.sso-scope .greet {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  background: linear-gradient(135deg, #0d2745, #133b67, #1e3c72);
}
@media (max-width: 900px) {
  .sso-scope .greet {
    grid-template-columns: 1fr;
  }
}
.sso-scope .g-title {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fcfcfd;
}
.sso-scope .g-date {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 14px;
}

.sso-scope .g-kpis {
  display: flex;
  gap: 14px;
}
.sso-scope .kpi {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 160px;
}
.sso-scope .kpi-val {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}
.sso-scope .kpi-lbl {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.sso-scope .g-art {
  position: relative;
  min-height: 180px;
}
.sso-scope .g-hero {
  object-fit: cover;
  border-radius: 10px;
}

/* =========== SSO GRID =========== */
.sso-scope .sso-section-title {
  margin: 17px 0; /* atas-bawah */
  font-size: 25px; /* kecilkan font */
  font-weight: 800;
}
.sso-scope .sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .sso-scope .sso-grid {
    grid-template-columns: 1fr;
  }
}

.sso-scope .app-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease;
}
.sso-scope .app-card:hover {
  transform: translateY(-7px);
}

.sso-scope .app-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #f2f6fb;
}
.sso-scope .thumb-img {
  object-fit: cover;
}

.sso-scope .app-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #467ebd, #133b67, #4b6ba7);
  color: #f3f4f8;
  border-radius: 0 0 14px 14px;
  padding: 12px 14px;
}
.sso-scope .app-title {
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
}
.sso-scope .app-sub {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}
.sso-scope .app-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* =========== RESPONSIVE KECIL =========== */
@media (max-width: 720px) {
  .sso-scope .sso-container {
    grid-template-columns: 1fr;
  }
}
