/* ============================================================
   JDIH SmartSearch Widget — Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Theme Colors */
  --jdih-ss-bg-app: #0f172a;
  --jdih-ss-bg-header: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --jdih-ss-bg-body: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  --jdih-ss-bg-card: #ffffff;
  --jdih-ss-primary: #334155;
  --jdih-ss-primary-hover: #1e293b;
  --jdih-ss-primary-grad: linear-gradient(135deg, #475569, #334155);

  --jdih-ss-text-dark: #334155;
  --jdih-ss-text-light: #ffffff;
  --jdih-ss-text-muted: #64748b;
  --jdih-ss-text-accent: #475569;

  --jdih-ss-border: #e2e8f0;
  --jdih-ss-border-focus: #94a3b8;

  --jdih-rgba-245-158-11-_1: rgba(245, 158, 11, .1);
  --jdih-rgba-245-158-11-_15: rgba(245, 158, 11, .15);
  --jdih-rgba-245-158-11-_3: rgba(245, 158, 11, .3);
  --jdih-rgba-255-255-255-_06: rgba(255, 255, 255, .06);
  --jdih-rgba-255-255-255-_08: rgba(255, 255, 255, .08);
  --jdih-rgba-255-255-255-_12: rgba(255, 255, 255, .12);
  --jdih-rgba-255-255-255-_13: rgba(255, 255, 255, .13);
  --jdih-rgba-255-255-255-_15: rgba(255, 255, 255, .15);
  --jdih-rgba-255-255-255-_16: rgba(255, 255, 255, .16);
  --jdih-rgba-255-255-255-_2: rgba(255, 255, 255, .2);
  --jdih-rgba-255-255-255-0_1: rgba(255, 255, 255, 0.1);
  --jdih-rgba-255-255-255-0_2: rgba(255, 255, 255, 0.2);
  --jdih-rgba-26-86-219-_35: rgba(51, 65, 85, .35);
  --jdih-rgba-26-86-219-_38: rgba(51, 65, 85, .38);
  --jdih-rgba-26-86-219-_4: rgba(51, 65, 85, .4);
  --jdih-rgba-26-86-219-_45: rgba(51, 65, 85, .45);
  --jdih-rgba-26-86-219-_5: rgba(51, 65, 85, .5);
  --jdih-rgba-59-130-246-_1: rgba(100, 116, 139, .1);
  --jdih-rgba-59-130-246-_12: rgba(100, 116, 139, .12);

  /* Injected JS Colors */
  --jdih-c-000: #000;
  --jdih-c-0d1b3e: #0f172a;
  --jdih-c-0e3fa3: #1e293b;
  --jdih-c-15803d: #15803d;
  --jdih-c-1a56db: #334155;
  --jdih-c-1d4ed8: #475569;
  --jdih-c-1e3758: #334155;
  --jdih-c-2d5282: #475569;
  --jdih-c-3b82f6: #64748b;
  --jdih-c-4c1d95: #4c1d95;
  --jdih-c-5a82a8: #64748b;
  --jdih-c-5b21b6: #5b21b6;
  --jdih-c-60a5fa: #94a3b8;
  --jdih-c-64748b: #64748b;
  --jdih-c-6d28d9: #6d28d9;
  --jdih-c-78350f: #78350f;
  --jdih-c-7b9fd4: #94a3b8;
  --jdih-c-7c3aed: #7c3aed;
  --jdih-c-86efac: #86efac;
  --jdih-c-92400e: #92400e;
  --jdih-c-93c5fd: #cbd5e1;
  --jdih-c-94b8e0: #94a3b8;
  --jdih-c-991b1b: #991b1b;
  --jdih-c-a8c1e8: #cbd5e1;
  --jdih-c-b45309: #b45309;
  --jdih-c-b91c1c: #b91c1c;
  --jdih-c-bae6fd: #e2e8f0;
  --jdih-c-bfdbfe: #cbd5e1;
  --jdih-c-c4b5fd: #c4b5fd;
  --jdih-c-d4a847: #d4a847;
  --jdih-c-d97706: #d97706;
  --jdih-c-dbeafe: #f1f5f9;
  --jdih-c-dc2626: #dc2626;
  --jdih-c-dcfce7: #dcfce7;
  --jdih-c-e0f2fe: #f8fafc;
  --jdih-c-ede9fe: #ede9fe;
  --jdih-c-eff6ff: #f8fafc;
  --jdih-c-f59e0b: #f59e0b;
  --jdih-c-f87171: #f87171;
  --jdih-c-fca5a5: #fca5a5;
  --jdih-c-fcd34d: #fcd34d;
  --jdih-c-fde68a: #fde68a;
  --jdih-c-fee2e2: #fee2e2;
  --jdih-c-fef3c7: #fef3c7;
  --jdih-c-fff: #fff;
  --jdih-c-fffbeb: #fffbeb;

}

/* Animations */
@keyframes jdihSSIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes jdihSSSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes jdihSSBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes jdihSSFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Overlay */
.jdih-ss-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 15, 35, .65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}

.jdih-ss-overlay.jdih-ss-show {
  display: flex !important;
}

/* Container (shared by popup & inline) */
.jdih-ss-container {
  display: flex;
  flex-direction: column;
}

/* App Window */
.jdih-ss-app {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--jdih-ss-bg-app);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
  animation: jdihSSIn .25s cubic-bezier(.34, 1.3, .64, 1);
}

.jdih-ss-app * {
  font-family: inherit;
  box-sizing: border-box;
}

.jdih-ss-app.jdih-ss-inline {
  border-radius: 0;
  height: 100%;
  flex: 1;
  box-shadow: none;
  animation: none;
}

/* Body Scrollbar */
.jdih-ss-scrollbody {
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 65, 85, .2) transparent;
}

.jdih-ss-scrollbody::-webkit-scrollbar {
  width: 5px;
}

.jdih-ss-scrollbody::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, .25);
  border-radius: 10px;
}

/* Inputs & Selects */
.jdih-ss-input::placeholder {
  color: rgba(148, 184, 224, .5);
}

.jdih-ss-select option {
  background: #1a2a5e;
  color: #c8d9f0;
}

/* Result Cards */
.jdih-ss-card {
  display: block;
  background: var(--jdih-ss-bg-card);
  border: 1px solid var(--jdih-ss-border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  animation: jdihSSFadeIn .25s ease both;
}

.jdih-ss-card:hover {
  border-color: var(--jdih-ss-border-focus);
  box-shadow: 0 4px 18px rgba(100, 116, 139, .12);
  transform: translateY(-1px);
}

/* Trigger Button (popup mode) */
.jdih-ss-btn-primary {
  background: var(--jdih-ss-primary-grad);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.jdih-ss-btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

#jdih-ss-fjenis {
  color: #a8c1e8 !important;
}

#jdih-ss-fjenis option {
  background-color: #fff !important;
  color: #1e3758 !important;
}