/**
 * DMTK i-Hadir V2 — Frontend CSS (User Module & Design System)
 */

:root {
  --dmtk-primary: #0d9488;
  --dmtk-primary-hover: #0f766e;
  --dmtk-primary-light: #ccfbf1;
  --dmtk-accent: #f59e0b;
  --dmtk-danger: #ef4444;
  --dmtk-danger-light: #fee2e2;
  --dmtk-success: #10b981;
  --dmtk-success-light: #d1fae5;
  --dmtk-bg: #f8fafc;
  --dmtk-surface: #ffffff;
  --dmtk-text-main: #0f172a;
  --dmtk-text-muted: #64748b;
  --dmtk-border: #e2e8f0;
  --dmtk-radius: 12px;
  --dmtk-radius-sm: 8px;
  --dmtk-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --dmtk-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --dmtk-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --dmtk-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--dmtk-font);
  background-color: var(--dmtk-bg);
  color: var(--dmtk-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.dmtk-header {
  background: var(--dmtk-surface);
  border-bottom: 1px solid var(--dmtk-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--dmtk-shadow-sm);
}

.dmtk-header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dmtk-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.dmtk-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--dmtk-primary), var(--dmtk-primary-hover));
  color: #ffffff;
  border-radius: var(--dmtk-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
}

.dmtk-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dmtk-primary-hover);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dmtk-brand-text p {
  font-size: 0.75rem;
  color: var(--dmtk-text-muted);
  font-weight: 500;
}

.dmtk-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dmtk-nav-link {
  text-decoration: none;
  color: var(--dmtk-text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--dmtk-radius-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dmtk-nav-link:hover, .dmtk-nav-link.active {
  color: var(--dmtk-primary);
  background: var(--dmtk-primary-light);
}

.dmtk-nav-btn {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--dmtk-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.dmtk-nav-btn.btn-primary {
  background: var(--dmtk-primary);
  color: #ffffff;
}

.dmtk-nav-btn.btn-primary:hover {
  background: var(--dmtk-primary-hover);
}

.dmtk-nav-btn.btn-logout {
  background: #fee2e2;
  color: var(--dmtk-danger);
}

.dmtk-nav-btn.btn-logout:hover {
  background: #fca5a5;
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.dmtk-main-container {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* ==========================================================================
   Hero / Landing Page
   ========================================================================== */
.dmtk-hero-card {
  background: var(--dmtk-surface);
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius);
  box-shadow: var(--dmtk-shadow-md);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 860px;
  margin: 1.5rem auto 0;
}

.dmtk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dmtk-primary-light);
  color: var(--dmtk-primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dmtk-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--dmtk-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  animation: dmtkPulse 2s infinite;
}

@keyframes dmtkPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.dmtk-hero-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dmtk-text-main);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.dmtk-hero-subtitle {
  font-size: 1.05rem;
  color: var(--dmtk-text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.dmtk-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.dmtk-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--dmtk-border);
  padding-top: 2.5rem;
  text-align: left;
}

.dmtk-feature-item {
  padding: 1rem;
  border-radius: var(--dmtk-radius-sm);
  background: var(--dmtk-bg);
}

.dmtk-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--dmtk-primary-light);
  color: var(--dmtk-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.dmtk-feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dmtk-feature-item p {
  font-size: 0.82rem;
  color: var(--dmtk-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Auth Forms (Login / Register)
   ========================================================================== */
.dmtk-auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.dmtk-auth-card {
  background: var(--dmtk-surface);
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius);
  box-shadow: var(--dmtk-shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: 2.25rem 2rem;
}

.dmtk-auth-card.dmtk-card-wide {
  max-width: 680px;
}

.dmtk-auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.dmtk-auth-icon {
  width: 52px;
  height: 52px;
  background: var(--dmtk-primary-light);
  color: var(--dmtk-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.85rem;
}

.dmtk-auth-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.dmtk-auth-header p {
  font-size: 0.86rem;
  color: var(--dmtk-text-muted);
}

.dmtk-form-group {
  margin-bottom: 1.25rem;
}

.dmtk-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dmtk-text-main);
  margin-bottom: 0.4rem;
}

.dmtk-required {
  color: var(--dmtk-danger);
}

.dmtk-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.dmtk-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--dmtk-text-muted);
  font-size: 1rem;
}

.dmtk-input, .dmtk-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius-sm);
  background: #ffffff;
  color: var(--dmtk-text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dmtk-input-wrapper .dmtk-input {
  padding-left: 2.75rem;
}

.dmtk-input:focus, .dmtk-select:focus {
  outline: none;
  border-color: var(--dmtk-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.dmtk-input-code {
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dmtk-input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--dmtk-text-muted);
  margin-top: 0.35rem;
}

.dmtk-input-group-btn {
  display: flex;
  gap: 0.5rem;
}

.dmtk-input-group-btn .dmtk-input {
  flex: 1;
}

.dmtk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dmtk-full-width {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .dmtk-grid-2 {
    grid-template-columns: 1fr;
  }
  .dmtk-full-width {
    grid-column: span 1;
  }
}

.dmtk-verified-banner {
  background: var(--dmtk-success-light);
  border: 1px solid var(--dmtk-success);
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: var(--dmtk-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.dmtk-code-tag {
  font-family: monospace;
  font-weight: 800;
  background: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #047857;
}

/* ==========================================================================
   Buttons & Alerts
   ========================================================================== */
.dmtk-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--dmtk-radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dmtk-btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

.dmtk-btn-block {
  width: 100%;
}

.dmtk-btn-primary {
  background: var(--dmtk-primary);
  color: #ffffff;
}

.dmtk-btn-primary:hover {
  background: var(--dmtk-primary-hover);
  transform: translateY(-1px);
}

.dmtk-btn-outline {
  background: transparent;
  border: 1.5px solid var(--dmtk-border);
  color: var(--dmtk-text-main);
}

.dmtk-btn-outline:hover {
  background: var(--dmtk-bg);
  border-color: var(--dmtk-text-muted);
}

.dmtk-btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.dmtk-btn-danger:hover {
  background: #dc2626;
}

.dmtk-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--dmtk-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.dmtk-alert-error {
  background: var(--dmtk-danger-light);
  color: #991b1b;
  border: 1px solid #f87171;
}

.dmtk-alert-success {
  background: var(--dmtk-success-light);
  color: #065f46;
  border: 1px solid #34d399;
}

.dmtk-alert-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.dmtk-auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--dmtk-text-muted);
}

.dmtk-auth-footer a {
  color: var(--dmtk-primary);
  font-weight: 700;
  text-decoration: none;
}

.dmtk-auth-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Dashboard Grid & Digital Card
   ========================================================================== */
.dmtk-dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .dmtk-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Digital Member Card */
.dmtk-digital-card {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #115e59 100%);
  border-radius: 16px;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dmtk-digital-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.dmtk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dmtk-card-org {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ccfbf1;
}

.dmtk-card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.dmtk-card-body {
  margin-bottom: 1.5rem;
}

.dmtk-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.dmtk-card-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #99f6e4;
  margin-bottom: 0.6rem;
}

.dmtk-card-cat-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dmtk-card-sub {
  font-size: 0.8rem;
  color: #ccfbf1;
  margin-top: 0.35rem;
}

.dmtk-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
}

.dmtk-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #99f6e4;
  display: block;
}

.dmtk-card-status {
  font-size: 0.82rem;
  font-weight: 800;
  color: #a7f3d0;
}

.dmtk-card-barcode {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
}

.dmtk-card-barcode span {
  display: block;
  background: #ffffff;
  width: 2px;
  height: 100%;
}

.dmtk-card-barcode span:nth-child(2n) { width: 3px; }
.dmtk-card-barcode span:nth-child(3n) { width: 1px; }

/* Panel & Details Cards */
.dmtk-panel-card {
  background: var(--dmtk-surface);
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius);
  box-shadow: var(--dmtk-shadow-sm);
  padding: 1.25rem;
}

.dmtk-panel-header {
  border-bottom: 1px solid var(--dmtk-border);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}

.dmtk-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dmtk-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dmtk-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dmtk-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}

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

.dmtk-detail-val {
  font-weight: 600;
  color: var(--dmtk-text-main);
  text-align: right;
}

.font-mono {
  font-family: monospace;
}

/* Right Dashboard Column */
.dmtk-welcome-box {
  background: var(--dmtk-surface);
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--dmtk-shadow-sm);
}

.dmtk-welcome-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dmtk-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.dmtk-welcome-box p {
  color: var(--dmtk-text-muted);
  font-size: 0.9rem;
}

.dmtk-notice-card {
  background: #f0fdfa;
  border: 1.5px dashed #0d9488;
  border-radius: var(--dmtk-radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.dmtk-notice-icon {
  width: 46px;
  height: 46px;
  background: var(--dmtk-primary-light);
  color: var(--dmtk-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dmtk-notice-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dmtk-primary-hover);
  margin-bottom: 0.35rem;
}

.dmtk-notice-content p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.dmtk-tag {
  display: inline-block;
  background: var(--dmtk-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.dmtk-dash-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.dmtk-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dmtk-toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--dmtk-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--dmtk-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: dmtkToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s;
}

.dmtk-toast.success { background: #065f46; border-left: 4px solid #10b981; }
.dmtk-toast.error { background: #991b1b; border-left: 4px solid #ef4444; }
.dmtk-toast.info { background: #075985; border-left: 4px solid #0284c7; }

@keyframes dmtkToastIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dmtk-footer {
  background: var(--dmtk-surface);
  border-top: 1px solid var(--dmtk-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-top: auto;
}

.dmtk-footer p {
  font-size: 0.84rem;
  color: var(--dmtk-text-muted);
}

.dmtk-footer-sub {
  font-size: 0.76rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* ==========================================================================
   Registration Success Card (Phase 2.1)
   ========================================================================== */
.dmtk-success-card {
  text-align: center;
  animation: dmtkFadeScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3rem 2.25rem;
}

@keyframes dmtkFadeScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dmtk-success-badge-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.dmtk-success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dmtk-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.dmtk-success-subtitle {
  font-size: 0.95rem;
  color: var(--dmtk-text-muted);
  margin-bottom: 2rem;
}

.dmtk-generated-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 2px dashed #0d9488;
  border-radius: var(--dmtk-radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dmtk-generated-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f766e;
}

.dmtk-generated-code-display {
  font-family: monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.12em;
  background: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--dmtk-radius-sm);
  border: 1.5px solid #99f6e4;
  box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.1);
  user-select: all;
}

.dmtk-btn-copy {
  background: #ffffff;
  border: 1.5px solid #0d9488;
  color: #0d9488;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dmtk-btn-copy:hover {
  background: #0d9488;
  color: #ffffff;
  transform: translateY(-1px);
}

.dmtk-btn-copy.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.dmtk-success-notice-box {
  background: #f8fafc;
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.dmtk-notice-strong {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.dmtk-notice-desc {
  font-size: 0.84rem;
  color: var(--dmtk-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Phase 3: Multi-Session Attendance Core & History Styles
   ========================================================================== */
.dmtk-attendance-section {
  background: #ffffff;
  border-radius: var(--dmtk-radius);
  border: 1px solid var(--dmtk-border);
  box-shadow: var(--dmtk-shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dmtk-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dmtk-border);
}

.dmtk-section-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dmtk-text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dmtk-live-clock {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-indigo  { color: #6366f1; }

.dmtk-session-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dmtk-session-card {
  background: #f8fafc;
  border: 2px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.dmtk-session-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dmtk-shadow);
}

.dmtk-session-card.session-current {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.15);
}

.dmtk-scard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dmtk-scard-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dmtk-scard-title h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dmtk-text-main);
}

.dmtk-scard-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.dmtk-tag-active-session {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.dmtk-time-window {
  font-size: 0.75rem;
  color: var(--dmtk-text-muted);
  font-weight: 600;
}

.dmtk-scard-body {
  margin-bottom: 1.25rem;
}

.dmtk-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.dmtk-status-indicator.not-attended {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dmtk-status-indicator.checked-in {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.dmtk-status-indicator.completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.dmtk-scard-desc {
  font-size: 0.82rem;
  color: var(--dmtk-text-muted);
  line-height: 1.4;
}

.dmtk-time-log {
  display: flex;
  gap: 0.75rem;
  background: #f1f5f9;
  padding: 0.6rem 0.85rem;
  border-radius: var(--dmtk-radius-sm);
  border: 1px solid #e2e8f0;
}

.dmtk-time-log.two-col {
  justify-content: space-between;
}

.dmtk-time-item {
  display: flex;
  flex-direction: column;
}

.dmtk-time-item .lbl {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.dmtk-time-item .val {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 700;
}

.dmtk-completed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--dmtk-radius-sm);
  border: 1.5px solid #bbf7d0;
}

/* Quick Nav Tiles */
.dmtk-quick-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.dmtk-nav-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.dmtk-nav-tile:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateX(4px);
  box-shadow: var(--dmtk-shadow-sm);
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-info strong {
  font-size: 0.95rem;
  color: var(--dmtk-text-main);
}

.tile-info span {
  font-size: 0.8rem;
  color: var(--dmtk-text-muted);
}

.tile-arrow {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* History Page Styles */
.dmtk-history-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.dmtk-history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dmtk-history-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dmtk-text-main);
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dmtk-history-sub {
  font-size: 0.92rem;
  color: var(--dmtk-text-muted);
}

.dmtk-history-stat-badge {
  background: #ffffff;
  border: 1px solid var(--dmtk-border);
  border-radius: var(--dmtk-radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--dmtk-shadow-sm);
}

.dmtk-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e40af;
  line-height: 1;
}

.dmtk-stat-txt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dmtk-text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* History Table Styles */
.dmtk-table-responsive {
  overflow-x: auto;
  border-radius: var(--dmtk-radius-sm);
}

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

.dmtk-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1.5px solid var(--dmtk-border);
}

.dmtk-table td {
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--dmtk-border);
  vertical-align: middle;
}

.dmtk-table tr:hover {
  background: #fafafa;
}

.dmtk-date-sub {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: normal;
}

.dmtk-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.badge-pagi {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-petang {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.time-in {
  color: #059669;
  font-weight: 600;
  font-family: monospace;
}

.time-out {
  color: #dc2626;
  font-weight: 600;
  font-family: monospace;
}

.dmtk-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.status-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-active {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.dmtk-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.dmtk-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.dmtk-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dmtk-text-main);
  margin-bottom: 0.5rem;
}

.dmtk-empty-state p {
  font-size: 0.9rem;
  color: var(--dmtk-text-muted);
  max-width: 450px;
  margin: 0 auto;
}
