/* Healthcare Contract Management Features styles (moved out of the inline block).
 * Root renamed from #app-container to #cmf-app, and every rule is now scoped under it
 * so generic class names like .popup-overlay and .close-btn cannot affect the rest of the site. */
/* Scope all styles so they don't break your blog */
#cmf-app {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
#cmf-app * {
  box-sizing: border-box;
}
#cmf-app .desktop-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px; /* Wide horizontal layout */
  margin: 0 auto;
}
#cmf-app .desktop-frame {
  width: 100%;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 12px;
  padding: 12px 12px 20px 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#cmf-app .desktop-stand {
  width: 120px;
  height: 40px;
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  position: relative;
}
#cmf-app .desktop-stand::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 8px;
  background: linear-gradient(180deg, #444 0%, #222 100%);
  border-radius: 4px;
}
#cmf-app .screen-bezel {
  background: #0a0a0a;
  border-radius: 6px;
  padding: 3px;
}
#cmf-app .screen-content {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 4px;
  overflow: hidden;
}
#cmf-app .window-chrome {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  /* removed flex-end: now defaults to left */
  align-items: center;
  padding: 8px 16px;
}
#cmf-app .dots-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
#cmf-app .traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
#cmf-app .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Stacks cards on mobile phones so text doesn't squish */
@media (max-width: 768px) {
  #cmf-app .cards-grid {
    grid-template-columns: 1fr;
  }
}
#cmf-app .feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  min-height: 220px; /* Increased vertical height of cards */
}
#cmf-app .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}
#cmf-app .feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}
#cmf-app .icon-container {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}
/* Popup Styles */
#cmf-app .popup-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#cmf-app .popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}
#cmf-app .popup-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 450px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#cmf-app .popup-overlay.active .popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
#cmf-app .popup-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#cmf-app .popup-body {
  padding: 20px;
}
#cmf-app .close-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
#cmf-app .close-btn:hover {
  opacity: 0.9;
}

#cmf-app .feature-card:focus-visible { outline: 3px solid #1e293b; outline-offset: 3px; }
