/* =========================================================
   SIPEM FEB UM - Colourful, Elegant & Interactive Stylesheet
   ========================================================= */

:root {
  --sipem-primary: #2563eb;
  --sipem-indigo: #4f46e5;
  --sipem-purple: #7c3aed;
  --sipem-teal: #0d9488;
  --sipem-emerald: #10b981;
  --sipem-amber: #f59e0b;
  --sipem-coral: #f43f5e;
  --sipem-navy: #0f172a;
  --sipem-slate: #334155;
  --sipem-muted: #64748b;
  --sipem-bg: #f8fafc;
  --sipem-card: #ffffff;
  --sipem-border: #e2e8f0;
  --sipem-radius: 18px;
  --sipem-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.sipem-theme-wrapper {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--sipem-navy);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.84) 0%, rgba(248, 250, 252, 0.88) 45%, rgba(253, 244, 255, 0.86) 100%),
    url('../cakra/Stock3.jpg') center center / cover fixed no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: clip;
}

.sipem-theme-wrapper *, .sipem-theme-wrapper *::before, .sipem-theme-wrapper *::after {
  box-sizing: border-box;
}

.sipem-is-wp-admin {
  min-height: auto;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 12px;
}

.sipem-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 28px clamp(16px, 2.5vw, 40px) 56px;
  flex: 1;
}

/* =========================================================
   ANIMATED HEADER & COLLAPSIBLE NAVBAR
   ========================================================= */
.sipem-header-animated {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(120deg, #1e3a8a, #2563eb, #7c3aed, #0d9488);
  background-size: 250% 250%;
  animation: sipemGradientShift 12s ease infinite;
  box-shadow: 0 6px 24px rgba(30, 58, 138, 0.22);
}

@keyframes sipemGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sipem-navbar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px clamp(14px, 2.2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sipem-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none !important;
}

.sipem-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), 0 6px 16px rgba(0, 0, 0, 0.2);
  animation: sipemFloat 4s ease-in-out infinite;
}

@keyframes sipemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.sipem-brand-text {
  display: flex;
  flex-direction: column;
}

.sipem-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.sipem-brand-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.sipem-brand-sub {
  font-size: 0.78rem;
  color: #e0f2fe;
}

.sipem-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sipem-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
}

.sipem-hamburger,
.sipem-hamburger::before,
.sipem-hamburger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  position: relative;
}

.sipem-hamburger::before {
  top: -6px;
}

.sipem-hamburger::after {
  top: 4px;
}

.sipem-nav-toggle.is-open .sipem-hamburger {
  background: transparent;
}
.sipem-nav-toggle.is-open .sipem-hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.sipem-nav-toggle.is-open .sipem-hamburger::after {
  top: -2.5px;
  transform: rotate(-45deg);
}

.sipem-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.sipem-nav-menu.is-open {
  display: flex;
}

@keyframes sipemSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sipem-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sipem-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.sipem-nav-link.is-active {
  background: #ffffff;
  color: #1e3a8a !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.sipem-nav-admin:not(.is-active) {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.sipem-nav-admin:not(.is-active):hover {
  background: rgba(251, 191, 36, 0.3);
}

.sipem-nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* =========================================================
   HERO & DASHBOARD
   ========================================================= */
.sipem-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  animation: sipemFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sipemFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sipem-hero::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 70%);
  pointer-events: none;
}

.sipem-badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: var(--sipem-indigo);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sipem-hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--sipem-navy);
}

.sipem-hero-title span {
  background: linear-gradient(135deg, var(--sipem-primary), var(--sipem-purple), var(--sipem-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sipem-hero-desc {
  color: var(--sipem-slate);
  font-size: 1rem;
  margin: 0 0 24px;
}

.sipem-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sipem-building-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(30, 58, 138, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.95);
}

.sipem-building-img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sipem-building-frame:hover .sipem-building-img {
  transform: scale(1.05);
}

.sipem-building-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* =========================================================
   SECTIONS, CARDS & GRIDS
   ========================================================= */
.sipem-section {
  margin-bottom: 40px;
}

.sipem-section-header {
  margin-bottom: 20px;
}

.sipem-section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.sipem-section-header p {
  margin: 0;
  color: var(--sipem-muted);
}

.sipem-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--sipem-radius);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
  margin-bottom: 22px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.sipem-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sipem-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.sipem-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sipem-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sipem-feature-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sipem-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.sipem-accent-top-blue { border-top: 5px solid var(--sipem-primary); }
.sipem-accent-top-purple { border-top: 5px solid var(--sipem-purple); }
.sipem-accent-top-teal { border-top: 5px solid var(--sipem-teal); }

.sipem-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sipem-primary), var(--sipem-purple));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.sipem-guide-steps {
  padding-left: 20px;
  margin: 12px 0 0;
}

.sipem-guide-steps li {
  margin-bottom: 10px;
  color: var(--sipem-slate);
}

/* =========================================================
   EVENT SPOTLIGHT & HEADER BOX
   ========================================================= */
.sipem-event-spotlight {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #f5f3ff 100%);
  border-radius: 22px;
  padding: 28px;
  border: 2px solid #bfdbfe;
  box-shadow: var(--sipem-shadow);
}

.sipem-event-spotlight-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.sipem-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.sipem-status-chip.is-open {
  background: #d1fae5;
  color: #065f46;
}
.sipem-status-chip.is-closed {
  background: #ffe4e6;
  color: #9f1239;
}
.sipem-status-chip.is-upcoming {
  background: #fef3c7;
  color: #92400e;
}

.sipem-radius-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 700;
}

.sipem-event-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.sipem-event-theme {
  color: var(--sipem-purple);
  font-weight: 600;
  margin: 0 0 20px;
}

.sipem-event-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.sipem-meta-item {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--sipem-border);
}

.sipem-meta-blue { border-left: 4px solid var(--sipem-primary); }
.sipem-meta-purple { border-left: 4px solid var(--sipem-purple); }
.sipem-meta-amber { border-left: 4px solid var(--sipem-amber); }

.sipem-meta-label {
  display: block;
  font-size: 0.78rem;
  color: var(--sipem-muted);
  margin-bottom: 4px;
}

.sipem-meta-value {
  font-size: 0.96rem;
  color: var(--sipem-navy);
}

.sipem-event-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.sipem-portal-note {
  margin: 0;
  color: var(--sipem-slate);
  font-size: 0.92rem;
}

/* Presensi Header Box */
.sipem-event-header-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 55%, #0d9488 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.24);
}

.sipem-event-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sipem-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: sipemPulse 1.6s infinite;
}

@keyframes sipemPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.sipem-event-header-title {
  margin: 0 0 6px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
}

.sipem-event-header-theme {
  margin: 0 0 18px;
  color: #e0f2fe;
}

.sipem-event-header-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sipem-eh-item {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  border-radius: 12px;
}

.sipem-eh-item span {
  display: block;
  font-size: 0.76rem;
  color: #bae6fd;
}

.sipem-eh-item strong {
  font-size: 0.95rem;
  color: #ffffff;
}

/* =========================================================
   FORMS, INPUTS & BUTTONS
   ========================================================= */
.sipem-form-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.sipem-form-top-bar h2 {
  margin: 0 0 4px;
}

.sipem-form-top-bar p {
  margin: 0;
  color: var(--sipem-muted);
}

.sipem-geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.sipem-geo-pill.is-checking { background: #fef3c7; color: #92400e; }
.sipem-geo-pill.is-valid { background: #d1fae5; color: #065f46; }
.sipem-geo-pill.is-invalid { background: #ffe4e6; color: #9f1239; }

.sipem-geo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.sipem-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sipem-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.sipem-form-group {
  margin-bottom: 16px;
}

.sipem-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--sipem-navy);
}

.sipem-form-group .req {
  color: var(--sipem-coral);
}

.sipem-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--sipem-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sipem-input:focus {
  outline: none;
  border-color: var(--sipem-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.sipem-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--sipem-muted);
}

.sipem-input-with-btn {
  display: flex;
  gap: 8px;
}

.sipem-verify-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.sipem-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--sipem-slate);
}

.sipem-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--sipem-primary);
}

.sipem-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.sipem-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, opacity 0.2s ease, filter 0.2s ease;
}

.sipem-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transition: left 0.48s ease;
  pointer-events: none;
}

.sipem-btn:hover:not(:disabled)::after {
  left: 140%;
}

.sipem-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.sipem-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.sipem-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sipem-btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.sipem-btn-primary {
  background: linear-gradient(135deg, var(--sipem-primary), var(--sipem-purple));
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.sipem-btn-accent {
  background: linear-gradient(135deg, var(--sipem-amber), #ea580c);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.sipem-btn-success {
  background: linear-gradient(135deg, var(--sipem-emerald), var(--sipem-teal));
  color: #ffffff !important;
}

.sipem-btn-danger {
  background: var(--sipem-coral);
  color: #ffffff !important;
}

.sipem-btn-outline {
  background: #ffffff;
  color: var(--sipem-primary) !important;
  border: 1.5px solid #bfdbfe;
}

/* =========================================================
   ADMIN TABS, STATS & TABLES
   ========================================================= */
.sipem-admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.sipem-admin-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.sipem-admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sipem-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sipem-tab-panel.is-active {
  animation: sipemFadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sipem-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sipem-tab-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--sipem-border);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sipem-slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sipem-tab-btn.is-active {
  background: linear-gradient(135deg, var(--sipem-primary), var(--sipem-purple));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}

.sipem-tab-panel {
  display: none;
  animation: sipemFadeIn 0.28s ease;
}

.sipem-tab-panel.is-active {
  display: block;
}

@keyframes sipemFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sipem-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.sipem-stat-card {
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.sipem-stat-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.sipem-stat-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.sipem-stat-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.sipem-stat-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }

.sipem-stat-card span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.9;
}

.sipem-stat-card strong {
  font-size: 1.7rem;
  font-weight: 800;
}

.sipem-sync-fieldset {
  background: #f8fafc;
  border: 1px dashed #93c5fd;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0 18px;
}

.sipem-sync-fieldset h4 {
  margin: 0 0 12px;
  color: var(--sipem-indigo);
}

.sipem-switch-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.sipem-tag-radius {
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.sipem-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sipem-filter-bar .sipem-input {
  width: auto;
  min-width: 220px;
}

.sipem-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sipem-border);
  border-radius: 14px;
  background: #ffffff;
}

.sipem-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sipem-table th {
  background: #f1f5f9;
  color: var(--sipem-navy);
  text-align: left;
  padding: 13px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 2px solid var(--sipem-border);
}

.sipem-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--sipem-border);
  vertical-align: middle;
  color: var(--sipem-slate);
}

.sipem-table tbody tr:last-child td {
  border-bottom: none;
}

.sipem-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.sipem-table tbody tr:hover {
  background: #eff6ff;
}

.sipem-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sipem-toggle-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  background: #e2e8f0;
  color: #475569;
}

.sipem-toggle-pill.is-active {
  background: #10b981;
  color: #ffffff;
}

.sipem-offering-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 700;
}

.sipem-code-box {
  width: 100%;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.82rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  border: none;
}

.sipem-agenda-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--sipem-border);
  margin-bottom: 10px;
}

.sipem-agenda-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sipem-agenda-sub {
  margin: 4px 0;
  font-size: 0.86rem;
  color: var(--sipem-slate);
}

.sipem-agenda-meta {
  font-size: 0.8rem;
  color: var(--sipem-muted);
}

.sipem-mini-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.sipem-mini-badge.is-active {
  background: #d1fae5;
  color: #065f46;
}

/* =========================================================
   LOADING SCREEN & POPUP NOTIFICATION (WITH CAKRA)
   ========================================================= */
.sipem-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
}

.sipem-loading-overlay.is-visible {
  display: flex;
}

.sipem-loading-box {
  background: #ffffff;
  padding: 28px 36px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.sipem-spinner-ring {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid #e0e7ff;
  border-top-color: var(--sipem-primary);
  border-right-color: var(--sipem-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sipemSpin 1s linear infinite;
}

.sipem-loading-cakra {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  animation: sipemSpinReverse 1s linear infinite;
}

@keyframes sipemSpin {
  to { transform: rotate(360deg); }
}

@keyframes sipemSpinReverse {
  to { transform: rotate(-360deg); }
}

.sipem-loading-text {
  margin: 0;
  font-weight: 700;
  color: var(--sipem-navy);
}

.sipem-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sipem-popup-modal.is-visible {
  display: flex;
}

.sipem-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.sipem-popup-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 24px;
  max-width: 430px;
  width: 100%;
  padding: 32px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  border-top: 6px solid var(--sipem-primary);
  animation: sipemPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sipem-popup-card.is-success { border-top-color: var(--sipem-emerald); }
.sipem-popup-card.is-error { border-top-color: var(--sipem-coral); }
.sipem-popup-card.is-warning { border-top-color: var(--sipem-amber); }

@keyframes sipemPopIn {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}

.sipem-popup-cakra-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.sipem-popup-cakra {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
  padding: 6px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.sipem-popup-badge {
  position: absolute;
  bottom: -4px;
  right: -10px;
  background: var(--sipem-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid #ffffff;
}

.sipem-popup-card.is-success .sipem-popup-badge { background: var(--sipem-emerald); }
.sipem-popup-card.is-error .sipem-popup-badge { background: var(--sipem-coral); }
.sipem-popup-card.is-warning .sipem-popup-badge { background: var(--sipem-amber); }

.sipem-popup-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.sipem-popup-message {
  margin: 0 0 22px;
  color: var(--sipem-slate);
  font-size: 0.95rem;
}

.sipem-popup-btn {
  width: 100%;
}

/* =========================================================
   ANIMATED FOOTER
   ========================================================= */
.sipem-footer-animated {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.sipem-footer-wave {
  height: 5px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f472b6, #fbbf24, #34d399);
  background-size: 200% 100%;
  animation: sipemGradientShift 8s linear infinite;
}

.sipem-footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 38px clamp(14px, 2.2vw, 32px) 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.sipem-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sipem-footer-cakra {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.sipem-footer-logo-row h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.sipem-footer-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: #38bdf8;
}

.sipem-footer-desc {
  font-size: 0.86rem;
  margin: 0;
  color: #94a3b8;
}

.sipem-footer-col h5 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.sipem-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.sipem-footer-list li {
  margin-bottom: 8px;
}

.sipem-footer-list a {
  color: #7dd3fc;
  text-decoration: none;
}

.sipem-social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sipem-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sipem-social-pill svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sipem-social-pill:hover {
  transform: translateY(-3px);
}

.sipem-pill-web {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
}
.sipem-pill-web:hover {
  background: rgba(56, 189, 248, 0.38);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.28);
}

.sipem-pill-ig {
  background: rgba(244, 114, 182, 0.22);
  border: 1px solid rgba(244, 114, 182, 0.45);
}
.sipem-pill-ig:hover {
  background: rgba(244, 114, 182, 0.38);
  box-shadow: 0 8px 18px rgba(244, 114, 182, 0.28);
}

.sipem-pill-yt {
  background: rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.sipem-pill-yt:hover {
  background: rgba(248, 113, 113, 0.38);
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.28);
}

.sipem-footer-bottom {
  text-align: center;
  padding: 14px 20px;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sipem-auth-card,
.sipem-portal-closed-card {
  max-width: 480px;
  margin: 36px auto;
  text-align: center;
}

.sipem-auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.sipem-auth-header h2 {
  margin: 12px 0 6px;
}

.sipem-auth-header p {
  margin: 0;
  color: var(--sipem-muted);
  font-size: 0.9rem;
}

.sipem-auth-form {
  text-align: left;
}

.sipem-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sipem-pass-wrap .sipem-input {
  padding-right: 108px;
}

.sipem-pass-toggle {
  position: absolute;
  right: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--sipem-border);
  background: #f1f5f9;
  color: var(--sipem-slate);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.sipem-pass-toggle:hover {
  background: #e2e8f0;
}

.sipem-auth-remember {
  margin: 4px 0 18px;
  font-size: 0.88rem;
  color: var(--sipem-slate);
}

.sipem-auth-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  text-align: left;
}

.sipem-btn-block {
  width: 100%;
  justify-content: center;
}

.sipem-admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sipem-auth-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
}

.sipem-closed-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.sipem-text-center { text-align: center; }
.sipem-muted { color: var(--sipem-muted); font-size: 0.86rem; }

/* =========================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 900px) {
  .sipem-nav-toggle {
    display: inline-flex;
  }

  .sipem-nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    margin-top: 4px;
    animation: sipemSlideDown 0.25s ease;
  }

  .sipem-nav-menu.is-open {
    display: flex;
  }

  .sipem-hero,
  .sipem-grid-3,
  .sipem-grid-2,
  .sipem-stats-grid,
  .sipem-event-meta-grid,
  .sipem-event-header-grid,
  .sipem-footer-inner {
    grid-template-columns: 1fr;
  }

  .sipem-form-row,
  .sipem-row-3 {
    grid-template-columns: 1fr;
  }

  .sipem-card-head,
  .sipem-students-toolbar,
  .sipem-admin-topbar,
  .sipem-form-top-bar,
  .sipem-event-cta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sipem-filter-bar {
    width: 100%;
    flex-wrap: wrap;
  }

  .sipem-filter-bar .sipem-input {
    flex: 1 1 200px;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .sipem-container {
    padding: 18px 14px 42px;
  }

  .sipem-navbar {
    padding: 10px 14px;
  }

  .sipem-brand-title {
    font-size: 1rem;
  }

  .sipem-brand-sub {
    font-size: 0.72rem;
  }

  .sipem-hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  }

  .sipem-hero-actions,
  .sipem-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sipem-hero-actions .sipem-btn,
  .sipem-event-cta-bar .sipem-btn,
  .sipem-form-actions .sipem-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .sipem-card,
  .sipem-event-spotlight,
  .sipem-event-header-box {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .sipem-admin-title {
    font-size: 1.25rem;
  }

  .sipem-admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
  }

  .sipem-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sipem-footer-inner {
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .sipem-admin-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .sipem-admin-hero-mascot {
    width: 68px;
    height: 68px;
  }
}

/* =========================================================
   ADMIN HERO BANNER & CAKRA MASCOTS
   ========================================================= */
.sipem-admin-hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
  min-height: 170px;
  display: flex;
  align-items: center;
  box-shadow: var(--sipem-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sipem-admin-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sipem-admin-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.86) 0%, rgba(30, 58, 138, 0.78) 55%, rgba(124, 58, 237, 0.65) 100%);
}

.sipem-admin-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.sipem-admin-hero-content h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
}

.sipem-admin-hero-content p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.92);
  max-width: 680px;
}

.sipem-admin-hero-mascot {
  width: 86px;
  height: 86px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  animation: sipemFloat 4s ease-in-out infinite;
}

.sipem-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sipem-feature-mascot {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
  transition: transform 0.25s ease;
}

.sipem-feature-card:hover .sipem-feature-mascot {
  transform: scale(1.08) rotate(-3deg);
}

.sipem-guide-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.sipem-guide-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.15));
}
