/* ==========================================================================
   PPATD DIGITAL PLATFORM - DARK THEME PALETTE
   Primary: #0B132B (Deep Navy Space)
   Surface: #16203A (Navy Card) / #1E293B (Slate Dark)
   Border:  #334155 (Subtle Divider)
   Gold:    #D4AF37 / #F59E0B (Royal Gold Brand Accent)
   Cyan:    #38BDF8 (Cyber Info Glow)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #0B132B;
  --bg-surface: #16203A;
  --bg-card: #1E293B;
  --bg-card-hover: #26354D;
  --border-color: #334155;
  --border-focus: #D4AF37;
  --gold-primary: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
  --cyan-primary: #38BDF8;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B132B;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Cards & Containers */
.pp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pp-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.pp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--gold-primary);
}

.text-cyan {
  color: var(--cyan-primary);
}

.text-muted {
  color: var(--text-muted);
}

/* Buttons */
.btn-pp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0B132B;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #F8FAFC;
}

.btn-outline-cyan {
  background: transparent;
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}
.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.1);
}

.btn-dark {
  background: #16203A;
  border-color: #334155;
  color: #F8FAFC;
}
.btn-dark:hover {
  background: #26354D;
  border-color: #475569;
}

.btn-success {
  background: #10B981;
  color: #FFFFFF;
}
.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #EF4444;
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #DC2626;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-aktif {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-nonaktif, .badge-ditolak {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: #16203A;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Modern Dark Table */
.pp-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pp-table th {
  background: #16203A;
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.pp-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  font-size: 0.875rem;
  vertical-align: middle;
}

.pp-table tbody tr:hover {
  background: rgba(38, 53, 77, 0.6);
}

/* ==========================================================================
   KTA DIGITAL 3D FLIP CARD (Mirip Android KtaDigitalActivity)
   ========================================================================== */
.kta-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.kta-card {
  width: 100%;
  aspect-ratio: 1.586 / 1; /* Standard ID-1 Credit/ID Card ratio */
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.kta-card.flipped {
  transform: rotateY(180deg);
}

.kta-side {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  border-radius: 16px;
  padding: 0;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
}

.kta-side::before {
  display: none;
}

.kta-front {
  transform: rotateY(0deg);
  background: url('/images/kd.png') no-repeat center center;
  background-size: 100% 100%;
}

.kta-back {
  transform: rotateY(180deg) !important;
  background: url('/images/kb.png') no-repeat center center;
  background-size: 100% 100%;
}

.kta-gold-ribbon {
  height: 4px;
  background: var(--gold-gradient);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   COLLAPSIBLE SIDEBAR (DESKTOP SLIDE & MOBILE DRAWER)
   ========================================================================== */
#adminSidebar {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: margin-left, transform;
}

@media (min-width: 768px) {
  #adminSidebar.collapsed {
    margin-left: -16rem !important;
  }
}

html.sidebar-is-collapsed #adminSidebar {
  margin-left: -16rem !important;
}

@media (max-width: 767px) {
  #adminSidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.6);
  }
  #adminSidebar.mobile-open {
    transform: translateX(0) !important;
  }
}

#sidebarBackdrop {
  transition: opacity 0.3s ease;
}
#sidebarBackdrop.active {
  display: block !important;
  opacity: 1;
}

/* ==========================================================================
   LANDING HERO RESPONSIVE BANNER
   ========================================================================== */
.hero-responsive-banner {
  background-image: url('/images/banner-mobile-941x1672.png?v=2');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .hero-responsive-banner {
    background-image: url('/images/banner-desktop-1672x941.jpeg?v=2');
    background-position: center center;
    background-size: cover;
  }
}

/* ==========================================================================
   EMBLEM CSS ANIMATIONS
   ========================================================================== */
@keyframes emblemFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.emblem-floating {
  animation: emblemFloat 5s ease-in-out infinite;
}

@keyframes goldPulseGlow {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.04);
  }
}

.emblem-glow {
  animation: goldPulseGlow 4s ease-in-out infinite;
}




