/* ==============================================================================
   SIBIMTEK TROPI - STYLESHEET (MATCHING IMAGE_C8A97B EXACTLY)
   ============================================================================== */

:root {
  --bg-body: #050505;
  --bg-panel: #141414;
  --bg-card: #181a20;
  --text-main: #f0f0f0;
  --text-muted: #9ca3af;
  --input-bg: #1f1f1f;
  --border: #333333;

  /* Brand Colors */
  --tropi-blue: #00AEEF;
  --tropi-green: #8CC63F;
  --tropi-orange: #F7941D;
  
  --primary: var(--tropi-blue);
  --success: var(--tropi-green);
  --danger: #ef4444;
  --warning: var(--tropi-orange);

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
   1. GLOBAL RESET & ZERO SCROLLBAR
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.hidden {
  display: none !important;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}

/* 3-Tier Layout Flex Binding */
.app-header.navbar {
  flex-shrink: 0;
}
.main-content.container {
  flex: 1 0 auto;
}
.app-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Glow Animation */
@keyframes glow-pulse {
  from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)); transform: scale(1); }
  to { filter: drop-shadow(0 0 15px rgba(0, 174, 239, 0.8)) drop-shadow(0 0 5px rgba(140, 198, 63, 0.6)); transform: scale(1.04); }
}
.glow-effect {
  animation: glow-pulse 2s infinite alternate;
  border-radius: 50%;
}

/* ==============================================================================
   2. NAVBAR & BRAND (EXACT MATCH IMAGE_C8A97B)
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--tropi-green), var(--tropi-blue), var(--tropi-orange)) 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  max-height: 48px;
  width: auto;
  border-radius: 50%;
}
.brand-titles {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.brand-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}
.brand-subtext {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tropi-blue);
  letter-spacing: 1px;
  line-height: 1.2;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

/* Mobile: Navbar stacks brand on top and 2 buttons side-by-side below */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 14px 16px;
  }
  .brand {
    justify-content: center;
  }
  .nav-buttons {
    width: 100%;
    justify-content: center;
  }
  .btn-nav {
    flex: 1;
    width: 100%;
  }
}

/* ==============================================================================
   3. BUTTON SYSTEM
   ============================================================================== */
button, .btn-lux, .btn-nav, .btn-full {
  border-radius: var(--radius-sm) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 10px 18px;
  min-height: 42px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  outline: none;
  color: #fff;
  background: #333;
}
button:active, .btn-lux:active {
  transform: scale(0.97);
}

.btn-nav {
  background: transparent;
  border: 1px solid var(--tropi-blue) !important;
  color: var(--tropi-blue);
  border-radius: 50px !important;
  padding: 8px 18px;
  min-height: 38px;
  font-size: 0.76rem;
}
.btn-nav:hover, .btn-nav:active {
  background: var(--tropi-blue);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.4);
}

.btn-gold { background: var(--tropi-blue); color: #fff; }
.btn-gold:hover { background: #009ad6; transform: translateY(-2px); }
.btn-reg { background: var(--tropi-green); color: #fff; }
.btn-reg:hover { background: #7ab536; }
.btn-cp { background: var(--tropi-orange); color: #fff; }
.btn-cp:hover { background: #e08316; }
.btn-blue { background: #3b82f6; color: #fff; }
.btn-red { background: var(--danger); color: #fff; }
.btn-disabled {
  background: #333 !important;
  color: #666 !important;
  border: 1px solid #444 !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}
.btn-full { width: 100%; margin-bottom: 8px; }

/* ==============================================================================
   4. FULLSCREEN CONTAINER
   ============================================================================== */
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 20px 20px 60px 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 25px 35px 60px 35px;
  }
}

/* ==============================================================================
   5. STATS CARDS (EXACT MATCH IMAGE_C8A97B)
   ============================================================================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
}
.stat-card {
  background: var(--bg-panel);
  padding: 14px 8px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.stat-card:nth-child(1) { border-bottom: 3px solid var(--tropi-blue); }
.stat-card:nth-child(1) .stat-icon, .stat-card:nth-child(1) .stat-number { color: var(--tropi-blue); }
.stat-card:nth-child(2) { border-bottom: 3px solid var(--tropi-green); }
.stat-card:nth-child(2) .stat-icon, .stat-card:nth-child(2) .stat-number { color: var(--tropi-green); }
.stat-card:nth-child(3) { border-bottom: 3px solid var(--tropi-orange); }
.stat-card:nth-child(3) .stat-icon, .stat-card:nth-child(3) .stat-number { color: var(--tropi-orange); }

.stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-number { font-size: 1.55rem; font-weight: 800; line-height: 1.1; margin-bottom: 2px; }
.stat-label { font-size: 0.58rem; color: #888; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }

@media (max-width: 480px) {
  .stats-container { gap: 8px; }
  .stat-card { min-height: 78px; padding: 10px 4px; }
  .stat-icon { font-size: 1.2rem; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.52rem; }
}

/* ==============================================================================
   6. CARD SLIDER (EXACT MATCH IMAGE_C8A97B)
   ============================================================================== */
.slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin: 15px 0 35px 0;
}
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-container::-webkit-scrollbar { display: none; }

.slider-container .card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: auto;
}

@media (min-width: 768px) {
  .slider-container .card {
    flex: 0 0 320px;
  }
}
@media (min-width: 1024px) {
  .slider-container .card {
    flex: 0 0 calc(25% - 15px);
    min-width: 290px;
  }
}

/* Arrow buttons (Cyan rounded square at left and right edges) */
.slider-btn {
  background: var(--tropi-blue);
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 44px;
  font-size: 1.15rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, background 0.2s;
}
.slider-btn:hover {
  background: #009ad6;
  transform: translateY(-50%) scale(1.06);
}
.slider-btn.left { left: 0px; }
.slider-btn.right { right: 0px; }

/* --- CARD KEGIATAN --- */
.card {
  background: var(--bg-panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover {
  border-color: var(--tropi-blue);
}

.card-img-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: #000;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.card-body {
  padding: 18px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #fff;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-date {
  font-size: 0.8rem;
  color: var(--tropi-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}
.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==============================================================================
   7. ACHIEVEMENT BOARDS (REKAP PARTISIPASI)
   ============================================================================== */
.achievement-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}
@media (min-width: 768px) {
  .achievement-section {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

.leaderboard-card {
  background: var(--bg-panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  width: 100%;
  box-sizing: border-box;
}
.leaderboard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--tropi-blue);
  padding-bottom: 10px;
  color: var(--tropi-blue);
}
.leaderboard-header h3 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #333;
}
.leaderboard-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.lb-rank {
  font-size: 1.15rem;
  font-weight: 800;
  color: #555;
  width: 32px;
  text-align: center;
}
.lb-rank.rank-1 { color: #FFD700; font-size: 1.35rem; }
.lb-rank.rank-2 { color: #C0C0C0; }
.lb-rank.rank-3 { color: #CD7F32; }
.lb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}
.lb-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.25;
  margin-bottom: 2px;
}
.lb-desc {
  font-size: 0.75rem;
  color: #aaa;
}
.lb-score {
  background: rgba(0, 174, 239, 0.1);
  color: var(--tropi-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.82rem;
  border: 1px solid rgba(0, 174, 239, 0.3);
  text-align: center;
  white-space: nowrap;
}

/* ==============================================================================
   8. ADMIN PANEL & TABS
   ============================================================================== */
#admin-panel { display: none; width: 100%; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  width: 100%;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}
.admin-name { line-height: 1.2; }
.admin-name span { display: block; font-size: 0.75rem; color: #888; }
.admin-name strong { color: var(--tropi-blue); font-size: 1rem; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; width: 100%; }
.tab-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: #888;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: 0.25s;
}
.tab-btn.active {
  background: var(--tropi-blue);
  color: #fff;
  border-color: var(--tropi-blue);
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}
.admin-section { display: none; width: 100%; }
.admin-section.active { display: block; }

/* ==============================================================================
   9. FORMS & TABLES
   ============================================================================== */
.form-box {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  min-height: 42px;
  border: 1px solid #444;
  border-radius: 8px;
  background: var(--input-bg);
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
  box-sizing: border-box;
  font-family: inherit;
  transition: 0.25s;
}
.form-control:focus { border-color: var(--tropi-blue); outline: none; }
label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
select.form-control {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2300AEEF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 15px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-main); }
th { background: #0a0a0a; color: var(--tropi-blue); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }

.status-badge { padding: 4px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.st-Pending { background: var(--tropi-orange); color: #000; }
.st-Verified { background: var(--tropi-green); color: #fff; }
.st-Rejected { background: var(--danger); color: #fff; }

.action-btn {
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid #555;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 !important;
  margin: 0 3px;
  font-size: 0.88rem;
  flex: 0 0 auto !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.action-btn:hover { border-color: var(--tropi-blue); color: var(--tropi-blue); }
.proof-thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 4px; border: 1px solid #555; cursor: pointer; }

/* ==============================================================================
   10. MODALS (SPACIOUS & ZERO SCROLLBAR)
   ============================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--bg-panel);
  padding: 28px 24px;
  border-radius: 15px;
  position: relative;
  border: 1px solid var(--tropi-blue);
  width: fit-content;
  min-width: 350px;
  max-width: 95vw;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 174, 239, 0.25);
  box-sizing: border-box;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.close-btn:hover { color: #fff; }
.modal h3 {
  color: var(--tropi-blue);
  text-align: center;
  margin-top: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
}

#modalSmartReg .modal-content,
#modalEdit .modal-content,
#modalEditUser .modal-content {
  width: 100%;
  max-width: 600px;
}
#modalDetailKeuangan .modal-content,
#modalOpsDetail .modal-content,
#modalCekSaya .modal-content {
  width: 100%;
  max-width: 780px;
}
#modalCertSettings .modal-content {
  width: 100%;
  max-width: 960px;
}
input[type="range"] {
  accent-color: var(--tropi-blue);
  cursor: pointer;
}
#modalLogin .modal-content,
#modalBimtek .modal-content,
#modalMultiLink .modal-content,
#modalNara .modal-content,
#modalChangePassword .modal-content {
  width: 100%;
  max-width: 400px;
}
.modal-proof-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.modal-proof-content img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--tropi-blue);
}

/* ==============================================================================
   11. FOOTER (MODERN RESPONSIVE 3-TIER ARCHITECTURE)
   ============================================================================== */
.app-footer {
  width: 100%;
  background: #08090b;
  position: relative;
  box-sizing: border-box;
  border-top: 1px solid #1f232b;
}

.footer-top-accent {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--tropi-green), var(--tropi-blue), var(--tropi-orange));
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 25px 22px 25px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 30px;
}

.footer-col-brand .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: #111;
}

.footer-brand-title h4 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-brand-title small {
  color: var(--tropi-blue);
  font-weight: 600;
  font-size: 0.8rem;
}

.footer-desc {
  color: #9aa1b0;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-location {
  color: #7b8494;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-location i {
  color: var(--tropi-orange);
}

.footer-col-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e222a;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}
.footer-col-title i {
  color: var(--tropi-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #9aa1b0;
  text-decoration: none;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.footer-links li a:hover {
  color: var(--tropi-blue);
  transform: translateX(4px);
}
.footer-links li a i {
  font-size: 0.8rem;
  color: var(--tropi-blue);
}

.footer-help-text {
  color: #9aa1b0;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, background 0.2s;
  margin-bottom: 12px;
}
.footer-wa-btn:hover {
  transform: translateY(-2px);
  background: #20bd5a;
}
.footer-wa-btn i {
  font-size: 1.15rem;
}

.footer-service-hours {
  color: #7b8494;
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid #161a22;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7b8494;
}
.footer-copyright b {
  color: #fff;
}
.footer-badge {
  color: #8f98a8;
}
.footer-badge b {
  color: var(--tropi-blue);
}

/* Smartphone Specific Adjustments */
@media (max-width: 768px) {
  .app-header.navbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
    text-align: center;
  }
  .brand {
    justify-content: center;
  }
  .brand-titles {
    text-align: center;
  }
  .brand-text {
    font-size: 0.95rem;
  }
  .brand-subtext {
    font-size: 0.68rem;
  }
  .nav-buttons {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .nav-buttons .btn-nav {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.82rem;
    justify-content: center;
  }

  .main-content.container {
    padding: 14px 14px 40px 14px;
  }

  .footer-container {
    padding: 30px 16px 16px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }
  .footer-col-title {
    margin-bottom: 12px;
  }
  .footer-wa-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


/* Utility */
@media (max-width: 600px) {
  .hide-mobile {
    display: none !important;
  }
}


/* ==============================================================================
   12. MOBILE CARD TRANSFORMATION (100% VISIBLE ON SMARTPHONES WITHOUT SWIPING)
   ============================================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal overflowing on tables */
  .table-responsive.card-mode,
  .table-responsive:has(.mobile-card-table) {
    overflow-x: visible !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  .mobile-card-table {
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
    display: block !important;
  }

  .mobile-card-table thead {
    display: none !important;
  }

  .mobile-card-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .mobile-card-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: #141722 !important;
    border: 1px solid rgba(0, 174, 239, 0.22) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    gap: 3px !important;
  }

  .mobile-card-table tbody tr:hover {
    border-color: var(--tropi-blue) !important;
  }

  .mobile-card-table tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 0 !important;
    border: none !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: right !important;
  }

  .mobile-card-table tbody td:last-child {
    border-bottom: none !important;
  }

  /* Data label generated from data-label attribute */
  .mobile-card-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--tropi-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    flex-shrink: 0;
    text-align: left;
  }

  .mobile-card-table tbody td:not([data-label])::before,
  .mobile-card-table tbody td[data-label=""]::before {
    display: none !important;
  }

  /* Empty / Loading message with colspan */
  .mobile-card-table tbody tr td[colspan] {
    display: block !important;
    text-align: center !important;
    padding: 24px 12px !important;
    border-bottom: none !important;
    color: var(--text-muted) !important;
  }

  .mobile-card-table tbody tr td[colspan]::before {
    display: none !important;
  }

  /* Grand total summary row */
  .mobile-card-table tbody tr.card-total-row {
    background: #192233 !important;
    border-color: var(--tropi-blue) !important;
  }

  /* Card Header Cell: title or primary entity */
  .mobile-card-table tbody td.card-header-cell,
  .mobile-card-table tbody td[data-label="Bimtek"],
  .mobile-card-table tbody td[data-label="Judul"],
  .mobile-card-table tbody td[data-label="Item Biaya"] {
    display: block !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(0, 174, 239, 0.25) !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }

  .mobile-card-table tbody td.card-header-cell::before,
  .mobile-card-table tbody td[data-label="Bimtek"]::before,
  .mobile-card-table tbody td[data-label="Judul"]::before,
  .mobile-card-table tbody td[data-label="Item Biaya"]::before {
    display: block !important;
    margin-bottom: 4px !important;
  }

  /* Action buttons cell */
  .mobile-card-table tbody td.card-action-cell,
  .mobile-card-table tbody td[data-label="Aksi"],
  .mobile-card-table tbody td[data-label="Aksi / Tiket"],
  .mobile-card-table tbody td[data-label="Tiket & Sertif"] {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 10px !important;
    border-bottom: none !important;
  }

  .mobile-card-table tbody td.card-action-cell::before,
  .mobile-card-table tbody td[data-label="Aksi"]::before,
  .mobile-card-table tbody td[data-label="Aksi / Tiket"]::before,
  .mobile-card-table tbody td[data-label="Tiket & Sertif"]::before {
    margin-right: auto !important;
  }

  .mobile-card-table .action-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 600px) {
  .modal {
    padding: 8px !important;
  }
  .modal-content {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 12px !important;
    border-radius: 12px !important;
  }
}

/* ==============================================================================
   13. ICON NAVIGATION & FOOTER TOOLBAR (PREV, 1/2, NEXT, KELUAR)
   ============================================================================== */
.modal-footer-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-icon-nav {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #141722 !important;
  border: 1px solid var(--tropi-blue) !important;
  color: var(--tropi-blue) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  flex: 0 0 auto !important;
}

.btn-icon-nav:hover:not(:disabled) {
  background: var(--tropi-blue) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.4) !important;
}

.btn-icon-nav:active:not(:disabled) {
  transform: scale(0.95) !important;
}

.btn-icon-nav:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #444 !important;
  color: #666 !important;
}

.btn-icon-nav.btn-icon-exit {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  margin-left: 8px !important;
}

.btn-icon-nav.btn-icon-exit:hover {
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.4) !important;
}

.page-indicator {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  min-width: 48px !important;
  text-align: center !important;
  letter-spacing: 1px !important;
  user-select: none !important;
}

/* ==============================================================================
   14. FULLSCREEN CERTIFICATE STUDIO (SPLIT-SCREEN & LIVE WYSIWYG)
   ============================================================================== */
.cert-studio-fullscreen {
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.cert-studio-fullscreen .cert-studio-content {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #0a0d14 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cert-studio-header {
  height: 60px;
  min-height: 60px;
  background: #111520;
  border-bottom: 1px solid rgba(0, 174, 239, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 10;
  gap: 12px;
}

.cert-studio-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.cert-studio-badge {
  background: rgba(0, 174, 239, 0.15);
  border: 1px solid var(--tropi-blue);
  color: var(--tropi-blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-studio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-studio-mobile-tabs {
  display: none;
  gap: 6px;
}

.cert-studio-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  height: calc(100vh - 60px);
}

.cert-studio-sidebar {
  width: 480px;
  min-width: 430px;
  max-width: 520px;
  height: 100%;
  overflow-y: auto;
  padding: 20px 22px;
  box-sizing: border-box;
  background: #0d1017;
  border-right: 1px solid rgba(0, 174, 239, 0.25);
}

.cert-studio-preview-pane {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #161a24;
  overflow: hidden;
  position: relative;
}

.preview-pane-header {
  height: 42px;
  min-height: 42px;
  background: #10131c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #25D366;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #25D366; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.preview-iframe-wrapper {
  flex: 1;
  width: 100%;
  height: calc(100% - 42px);
  position: relative;
  background: #222632;
  overflow: hidden;
}

.preview-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive on Mobile / Tablet */
@media (max-width: 992px) {
  .cert-studio-mobile-tabs {
    display: flex !important;
  }
  .cert-studio-title span:not(.cert-studio-badge) {
    display: none;
  }
  .cert-studio-body {
    flex-direction: column;
  }
  .cert-studio-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  .cert-studio-preview-pane {
    width: 100% !important;
    height: 100% !important;
  }
  .cert-studio-sidebar.hide-on-mobile {
    display: none !important;
  }
  .cert-studio-preview-pane.hide-on-mobile {
    display: none !important;
  }
}

/* Inline Badge Count (Desktop) */
.badge-count {
  display: inline-block;
  background: rgba(0, 174, 239, 0.2);
  color: var(--tropi-blue);
  border: 1px solid var(--tropi-blue);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 5px;
  line-height: 1.3;
}

/* ==============================================================================
   13. MOBILE ICON-ONLY BUTTON & RESPONSIVE UNIFORMITY (<= 768px)
   ============================================================================== */
@media (max-width: 768px) {
  /* Hide text inside buttons marked with .icon-only-mobile */
  .icon-only-mobile .btn-text,
  .icon-only-mobile .hide-mobile {
    display: none !important;
  }

  /* Make .icon-only-mobile circular, uniform, touch-friendly */
  .icon-only-mobile {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .icon-only-mobile i {
    margin: 0 !important;
    font-size: 1rem !important;
  }

  /* Floating notification badge on mobile icon button (e.g. Trash Count) */
  .icon-only-mobile .badge-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #ff5858 !important;
    color: #ffffff !important;
    border: 1.5px solid var(--bg-body) !important;
    border-radius: 50% !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 15px !important;
    padding: 0 2px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
  }

  /* Header navbar on mobile: Keep in 1 horizontal row with icon buttons */
  .app-header.navbar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
  }
  .brand-titles {
    text-align: left !important;
  }
  .brand-text {
    font-size: 0.88rem !important;
  }
  .brand-subtext {
    font-size: 0.65rem !important;
  }
  .nav-buttons {
    width: auto !important;
    display: flex !important;
    gap: 8px !important;
  }

  /* Admin Header Profile on Mobile: Clean horizontal alignment */
  .admin-header {
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
  }
  .admin-profile {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .admin-profile .admin-name {
    flex: 1 1 auto !important;
    line-height: 1.2 !important;
  }
  .admin-profile-buttons {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  /* Admin Tabs on Mobile: 6 sleek icon tabs distributed evenly across screen */
  .admin-tabs {
    display: flex !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }
  .admin-tabs .tab-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 1.15rem !important;
  }
  .admin-tabs .tab-btn .tab-text {
    display: none !important;
  }
  .admin-tabs .tab-btn i {
    margin: 0 !important;
    font-size: 1.1rem !important;
  }

  /* Admin Toolbars on Mobile: Single compact horizontal row */
  .admin-toolbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }
  .admin-toolbar-left,
  .admin-toolbar-right {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }
}
