/* ==========================================================================
   DOCTOR MOBILE LAB - HARDWARE & IC COMPATIBILITY FINDER
   Master Stylesheet for compatibility.html
   Matching EXACT Doctor Mobile Lab Brand System & Typography:
   - Canvas: Clean Crisp Light Porcelain (#F8FAFC / #F6F4EE)
   - Accent Primary: Doctor Mobile Lab Crimson Red (#C8232B / #DC2626)
   - Brand Dark Navy: Deep Charcoal Navy (#0F172A / #102235)
   - Fonts: Outfit (Headings), Plus Jakarta Sans (UI/Pills), Inter (Body)
   ========================================================================== */

/* --- Base Body Overrides for Compatibility Page --- */
body.compat-body {
  background-color: #F6F4EE;
  color: #0F172A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Scrollbar Utilities --- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Top Announcement Bar --- */
.compat-top-announcement {
  background-color: #102235;
  color: #CBD5E1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compat-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #DC2626;
  box-shadow: 0 0 10px #DC2626;
  animation: compatPulse 1.8s infinite;
}

@keyframes compatPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* --- Hero Section --- */
.compat-hero-section {
  position: relative;
  background-color: #FFFFFF;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(200, 35, 43, 0.08) 0%, transparent 75%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  padding: 96px 20px 36px;
  text-align: center;
  border-bottom: 1px solid #E2E8F0;
}

.compat-hero-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.compat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 35, 43, 0.08);
  border: 1px solid rgba(200, 35, 43, 0.25);
  padding: 6px 18px;
  border-radius: 9999px;
  color: #0F172A;
  font-family: var(--font-tech, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.compat-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 900;
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.compat-hero-gradient {
  color: #C8232B;
  display: inline-block;
  text-shadow: 0 4px 18px rgba(200, 35, 43, 0.2);
}

.compat-hero-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: #475569;
  font-weight: 400;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 22px;
}

.compat-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.compat-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.compat-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-compat-admin {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.btn-compat-admin:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.btn-compat-add {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 60%, #B91C1C 100%);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #991B1B, 0 8px 18px rgba(220, 38, 38, 0.3);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-compat-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #991B1B, 0 12px 22px rgba(220, 38, 38, 0.4);
}

.btn-compat-add:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #991B1B;
}

/* --- Main Tool Container --- */
.compat-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  flex: 1;
  width: 100%;
}

/* --- Smart Search Box --- */
.compat-search-wrap {
  max-width: 720px;
  margin: 0 auto 28px;
  position: relative;
}

/* --- Live Suggestions Dropdown Panel --- */
.compat-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(220, 38, 38, 0.12);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1000;
  padding: 10px;
  display: none;
  text-align: left;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.compat-suggestions-header {
  padding: 8px 14px;
  font-family: var(--font-tech, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compat-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  gap: 12px;
  margin-bottom: 4px;
  background: #FFFFFF;
}

.compat-suggestion-item:hover,
.compat-suggestion-item.active {
  background: #F8FAFC;
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.compat-suggestion-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.compat-suggestion-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.compat-suggestion-info {
  flex: 1;
  min-width: 0;
}

.compat-suggestion-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.compat-suggestion-name {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 800;
  color: #102235;
}

.compat-suggestion-badge-cat {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.compat-suggestion-badge-brand {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #102235;
  border: 1px solid #E2E8F0;
}

.compat-suggestion-models {
  font-size: 0.78rem;
  color: #047857;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.4;
}

.compat-suggestion-models span {
  color: #1E293B;
  font-weight: 500;
}

.compat-suggestion-note {
  font-size: 0.74rem;
  color: #64748B;
  font-style: italic;
  line-height: 1.35;
}

.compat-suggestion-action {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.compat-suggestion-item:hover .compat-suggestion-action {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.compat-suggestion-empty {
  padding: 28px 16px;
  text-align: center;
}

.compat-suggestion-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.compat-suggestion-empty-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #102235;
  margin-bottom: 6px;
}

.compat-suggestion-empty-sub {
  font-size: 0.78rem;
  color: #64748B;
}

/* Matched Term Highlight */
.compat-search-highlight {
  background: #FEF2F2;
  color: #DC2626;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 800;
}

/* Quick Popular Search Tags */
.compat-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.compat-quick-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  margin-right: 4px;
}

.compat-quick-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.compat-quick-tag:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FCA5A5;
  transform: translateY(-1px);
}

/* Card Pulse Animation when targeted from suggestion */
@keyframes cardPulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); border-color: #DC2626; }
  100% { transform: scale(1); }
}

.card-highlight-pulse {
  animation: cardPulseGlow 1.2s ease-in-out;
  border-color: #DC2626 !important;
}

.compat-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 20px;
  padding: 4px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.compat-search-box:focus-within {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.compat-search-icon {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.compat-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: #0F172A;
  padding: 12px 0;
}

.compat-search-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.compat-search-clear {
  background: #F1F5F9;
  border: none;
  color: #64748B;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.compat-search-clear:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* --- Filter Container Panel --- */
.compat-filter-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 20px 22px;
  margin-bottom: 26px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group-header {
  font-family: var(--font-tech, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group-header i {
  color: #DC2626;
  font-size: 0.85rem;
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.category-btn,
.brand-btn {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.category-btn:hover,
.brand-btn:hover {
  background: #EEF2F6;
  color: #0F172A;
  border-color: #CBD5E1;
}

.category-btn.active {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28);
}

.brand-btn.active {
  background: #102235 !important;
  color: #FFFFFF !important;
  border-color: #102235 !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(16, 34, 53, 0.28);
}

/* --- Stats & Reset Bar --- */
.compat-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}

.compat-count-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compat-count-text {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  color: #102235;
  font-size: 1.05rem;
}

.compat-verified-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.compat-reset-btn {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #DC2626;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.16s ease;
}

.compat-reset-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  text-decoration: underline;
}

/* --- Cards Grid --- */
.compat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .compat-cards-grid {
    grid-template-columns: 1fr;
  }
}

.compat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.compat-card:hover {
  border-color: #F87171;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.compat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.compat-badge-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compat-badge-brand {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #102235;
  border: 1px solid #E2E8F0;
}

.compat-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #102235;
  margin-bottom: 14px;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.compat-card:hover .compat-card-title {
  color: #DC2626;
}

.compat-models-section {
  margin-bottom: 14px;
}

.compat-models-heading {
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compat-models-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compat-model-chip {
  font-family: var(--font-tech, 'Plus Jakarta Sans', monospace);
  font-size: 0.76rem;
  font-weight: 600;
  background: #F6F4EE;
  color: #102235;
  border: 1px solid #CBD5E1;
  padding: 3px 9px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.compat-model-chip:hover {
  background: #E2E8F0;
}

.compat-note-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.compat-note-box .bulb-icon {
  color: #F59E0B;
  flex-shrink: 0;
  font-size: 0.95rem;
  margin-top: 1px;
}

.compat-note-box .note-text {
  font-style: italic;
}

/* Empty State */
.compat-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
}

.compat-empty-icon {
  font-size: 3rem;
  color: #CBD5E1;
  margin-bottom: 14px;
  display: block;
}

.compat-empty-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.compat-empty-desc {
  font-size: 0.85rem;
  color: #64748B;
}

/* --- Report / Suggest Part Callout --- */
.compat-report-section {
  text-align: center;
  padding: 36px 20px 20px;
  border-top: 1px solid #CBD5E1;
  margin-top: 20px;
}

.compat-report-text {
  font-size: 0.86rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 12px;
}

.compat-report-btn {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #102235;
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.compat-report-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.compat-report-btn i {
  color: #DC2626;
}

/* --- Modal Overlays & Cards --- */
.compat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 34, 53, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.compat-modal-overlay.open {
  display: flex !important;
}

.compat-modal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

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

.compat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #F1F5F9;
}

.compat-modal-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #102235;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compat-modal-title i {
  color: #DC2626;
}

.compat-modal-close {
  background: #F1F5F9;
  border: none;
  color: #64748B;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.compat-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.compat-form-group {
  margin-bottom: 14px;
}

.compat-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.compat-form-input,
.compat-form-select,
.compat-form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0F172A;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.compat-form-input:focus,
.compat-form-select:focus,
.compat-form-textarea:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  background: #FFFFFF;
}

.compat-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.btn-compat-cancel {
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-compat-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-compat-submit {
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
  transition: all 0.15s ease;
}

.btn-compat-submit:hover {
  background: #B91C1C;
}

.btn-compat-submit-dark {
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  background: #102235;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-compat-submit-dark:hover {
  background: #0F172A;
}
