/* Styles for Keyboard-Free Safety Apps Interactive Demo */
.kf-demo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin: 2.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kf-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kf-phone-label {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.kf-phone-label.legacy-label {
  color: #dc2626;
}

.kf-phone-label.modern-label {
  color: #059669;
}

.kf-phone-sub {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 14px;
}

.kf-mockup {
  width: 310px;
  height: 620px;
  background-color: #1e293b;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.kf-phone-inner {
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.kf-status-bar {
  height: 24px;
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  align-items: center;
}

.kf-screen-header {
  padding: 12px 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kf-screen-header.legacy-header {
  background-color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.kf-screen-header.modern-header {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.kf-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ecfdf5;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.kf-tag-badge svg {
  flex-shrink: 0;
}

.kf-tag-badge.clickable {
  cursor: pointer;
  transition: background 0.15s;
}

.kf-tag-badge.clickable:hover {
  background: rgba(0, 0, 0, 0.35);
}

.kf-tag-sub {
  font-size: 10.5px;
  color: #a7f3d0;
  padding-left: 2px;
}

.kf-screen-body {
  flex: 1;
  padding: 12px 12px 20px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
  background: #f1f5f9;
  border-radius: 0 0 28px 28px;
}

.kf-screen-body::-webkit-scrollbar {
  display: none;
}

/* Legacy Phone Styles */
.kf-form-group {
  margin-bottom: 8px;
}

.kf-form-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
}

.kf-select-mock {
  width: 100%;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.kf-select-mock.clickable {
  cursor: pointer;
  border-color: #93c5fd;
  background: #f8fafc;
}

.kf-select-mock.clickable:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.kf-select-mock span.arrow {
  font-size: 8px;
  color: #94a3b8;
}

/* Emergency In-Screen Overlay */
.kf-emergency-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 50;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.kf-emergency-card {
  background: #ffffff;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

.kf-emergency-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.kf-emergency-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.kf-emergency-desc {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 12px;
}

.kf-emergency-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  font-size: 10px;
  color: #334155;
  margin-bottom: 14px;
  text-align: left;
}

.kf-emergency-meta div {
  margin-bottom: 2px;
}

.kf-emergency-dismiss {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.kf-emergency-dismiss:hover {
  background: #b91c1c;
}

/* Media Evidence Overlays (Photo Crosshair & Audio Player) */
.kf-media-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 50;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.kf-media-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.kf-media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.kf-media-close-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.kf-camera-viewfinder {
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #334155;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.kf-viewfinder-reticle {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px solid #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kf-viewfinder-reticle::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #ef4444;
}

.kf-viewfinder-reticle::after {
  content: "";
  position: absolute;
  height: 16px;
  width: 2px;
  background: #ef4444;
}

.kf-viewfinder-target-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fca5a5;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-align: center;
}

.kf-media-caption {
  font-size: 10px;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.kf-media-btn {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.kf-media-btn:hover {
  background: #334155;
}

/* Audio Player Box */
.kf-audio-player-box {
  background: #0f172a;
  border-radius: 8px;
  padding: 12px 10px 10px;
  margin-bottom: 10px;
  text-align: center;
}

.kf-audio-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 6px;
}

.kf-audio-waveform .bar {
  width: 4px;
  background: #10b981;
  border-radius: 2px;
}

.kf-audio-waveform .bar-1 { height: 8px; }
.kf-audio-waveform .bar-2 { height: 16px; }
.kf-audio-waveform .bar-3 { height: 24px; }
.kf-audio-waveform .bar-4 { height: 14px; }
.kf-audio-waveform .bar-5 { height: 26px; }
.kf-audio-waveform .bar-6 { height: 18px; }
.kf-audio-waveform .bar-7 { height: 22px; }
.kf-audio-waveform .bar-8 { height: 10px; }

.kf-audio-duration {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
}

.kf-audio-transcript-mock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  font-size: 10px;
  color: #334155;
  margin-bottom: 10px;
  text-align: left;
}

.kf-audio-transcript-mock .transcript-label {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.kf-audio-transcript-mock .transcript-quote {
  font-style: italic;
  line-height: 1.35;
  color: #475569;
}

.kf-textarea-mock {
  width: 100%;
  height: 48px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
  font-family: monospace;
}

.kf-char-count {
  font-size: 9.5px;
  color: #ef4444;
  margin-top: 2px;
  text-align: right;
  font-weight: 600;
}

.kf-keyboard-block {
  margin-top: auto;
  background: #cbd5e1;
  padding: 6px 3px 4px;
  border-radius: 6px 6px 0 0;
  border-top: 1px solid #94a3b8;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.kf-kb-note {
  font-size: 9px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.kf-kb-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px;
}

.kf-kb-key {
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
  font-size: 10px;
  font-weight: 600;
  color: #1e293b;
  height: 26px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kf-kb-key:active {
  background: #e2e8f0;
}

.kf-kb-key.wide {
  flex: 1.5;
  background: #94a3b8;
  color: #ffffff;
}

.kf-kb-key.space {
  flex: 5;
}

.kf-btn-legacy-submit {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.kf-feedback-banner {
  height: 52px;
  max-height: 52px;
  overflow: hidden;
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kf-feedback-banner.default {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  color: #64748b;
  font-weight: 500;
}

/* Keyboard-Free Phone Styles */
.kf-cards-header {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kf-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.kf-card-btn {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
  box-sizing: border-box;
}

.kf-card-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.kf-card-btn.active {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #059669;
}

.kf-card-btn.nav-card {
  background: #f8fafc;
  border-color: #94a3b8;
  border-style: dashed;
}

.kf-card-btn.nav-card:hover {
  background: #e2e8f0;
  border-color: #475569;
}

.kf-card-btn.nav-card .card-label {
  color: #334155;
}

.kf-card-btn .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #475569;
}

.kf-card-btn:hover .card-icon {
  color: #0f172a;
}

.kf-card-btn.active .card-icon {
  color: #059669;
}

.kf-card-btn.nav-card .card-icon {
  color: #64748b;
}

.kf-card-btn .card-icon svg {
  display: block;
}

.kf-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.kf-card-btn .card-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.15;
}

.kf-card-btn.active .card-label {
  color: #065f46;
}

.kf-attachments-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.kf-attachment-chip {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.kf-attachment-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.kf-attachment-chip:active {
  transform: scale(0.98);
}

.kf-attachment-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.kf-sliders-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.kf-slider-container {
  width: 100%;
}

.kf-slider-track {
  width: 100%;
  height: 38px;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.kf-slider-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  z-index: 1;
  pointer-events: none;
  padding-left: 28px;
}

.kf-slider-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 38px;
  background: #059669;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease-out;
}

.kf-danger-slider-container {
  width: 100%;
}

.kf-danger-track {
  width: 100%;
  height: 38px;
  background: #fee2e2;
  border: 1.5px solid #f87171;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.kf-danger-label {
  font-size: 10px;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: 0.4px;
  z-index: 1;
  pointer-events: none;
  padding-right: 32px;
}

.kf-danger-thumb {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 38px;
  background: #dc2626;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
  cursor: pointer;
}

/* NFC Scanner Screen */
.kf-scan-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
  box-sizing: border-box;
  background: transparent;
}

.kf-scan-target {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 3px dashed #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
  color: #059669;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kf-scan-target:hover {
  background: #d1fae5;
  border-color: #047857;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.2);
}

.kf-scan-target:active {
  background: #a7f3d0;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

.kf-nfc-icon {
  display: block;
}

.kf-scan-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.kf-scan-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 220px;
}

.kf-scan-demo-hint {
  font-size: 10px;
  color: #047857;
  background: #ecfdf5;
  border: 1px dashed #6ee7b7;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.35;
  max-width: 230px;
  cursor: pointer;
}

.kf-scan-bypass-note {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
}

.kf-success-screen {
  display: none;
  flex: 1;
  background: #ecfdf5;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kf-success-icon {
  font-size: 36px;
  color: #059669;
  margin-bottom: 8px;
}

.kf-success-title {
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.kf-success-desc {
  font-size: 11px;
  color: #047857;
  line-height: 1.4;
  margin-bottom: 16px;
}

.kf-btn-reset {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px) {
  .kf-demo-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}
