/* ================= Fontawesome =========== */
/* ================= Colors =========== */
/* ============== Define Color ============== */
/* ================= Font Size =========== */
/* ================= Padding =========== */
#climateMap {
  height: auto;
  position: fixed !important;
  overflow: hidden;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

body.define-main {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 50%, #e9e5ff 100%);
  color: #1e1b4b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.define-main .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(221, 214, 254, 0.25) 50%, rgba(255, 255, 255, 0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.define-main .glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(237, 233, 254, 0.5) 30%, rgba(221, 214, 254, 0.4) 70%, rgba(255, 255, 255, 0.65) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18), 0 0 80px rgba(139, 92, 246, 0.08), inset 0 2px 4px rgb(255, 255, 255), inset 0 -1px 2px rgba(124, 58, 237, 0.03);
  border-top: none;
}

.define-main .bg-purple-gradient {
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
}

.define-main .bg-accent-pink-gradient {
  background: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea);
}

.define-main .border-accent-pink-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea) 1;
  background: transparent;
}

@keyframes defineFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes defineFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes defineSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes definePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes defineGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
  }
  50% {
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.6), 0 0 70px rgba(139, 92, 246, 0.3);
  }
}
@keyframes defineBreathe {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@keyframes defineChatPop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes defineTyping {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}
@keyframes defineScanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}
.define-main .orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.define-main .orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: defineBreathe 8s ease-in-out infinite;
}

.define-main .orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: defineBreathe 10s ease-in-out infinite 2s;
}

.define-main .orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: defineBreathe 7s ease-in-out infinite 1s;
}

.define-main .scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #bf00ff, transparent);
  opacity: 0.1;
  z-index: 1000;
  pointer-events: none;
  animation: defineScanline 8s linear infinite;
}

.define-main header {
  padding: 14px 24px;
  position: relative;
  z-index: 100;
}

.define-main .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 18px;
  animation: defineFadeIn 0.5s ease-out;
}

.define-main .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.define-main .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #a25cf6 0%, #7c3aed 50%, #4c1d95 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: defineFloat 4s ease-in-out infinite, defineGlow 3s ease-in-out infinite;
  position: relative;
}

.define-main .logo-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 240, 255, 0.3) 50%, transparent 60%);
  animation: rotate 3s linear infinite;
}

.define-main .logo-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.define-main .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #4c1d95;
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.define-main .logo-text span {
  color: #a25cf6;
}

.define-main nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
}

.define-main nav a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 22px;
  border-radius: 10px;
  transition: all 0.3s;
}

.define-main nav a:hover {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
}

.define-main nav a.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  font-weight: 700;
}

.define-main .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.define-main .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  backdrop-filter: blur(10px);
}

.define-main .btn-icon:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.define-main .btn-icon .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  animation: definePulse 2s infinite;
}

.define-main .avatar {
  border-radius: 12px;
  background: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea);
  padding: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.define-main .avatar-inner {
  width: 100%;
  height: 100%;
  background: #3f187a;
  border-radius: 10px;
  display: flex;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.define-main .avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.define-main main {
  flex: 1;
  display: flex;
  position: relative;
  padding: 0 14px 14px;
}

.define-main .map-container {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  animation: defineFadeIn 0.6s ease-out;
  position: relative;
  height: 100px;
}

.define-main .map-container::before {
  content: "AI ANALYSIS ACTIVE";
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 50;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #bf00ff;
  letter-spacing: 2px;
  animation: defineGlow 2s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.define-main .map-container::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  animation: definePulse 1s infinite;
  box-shadow: 0 0 10px #00f0ff;
}

.define-main #map {
  width: 100%;
  height: 100%;
}

.define-main .mapboxgl-popup-content {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  min-width: 340px;
}

.define-main .mapboxgl-popup-tip {
  display: none !important;
}

.define-main .mapboxgl-popup-close-button {
  color: #fff;
  font-size: 24px;
  padding: 12px 16px;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.define-main .mapboxgl-popup-close-button:hover {
  color: #c4b5fd;
  background: transparent;
}

.define-main .mapboxgl-ctrl-group {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
}

.define-main .popup-card {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(237, 233, 254, 0.6) 50%, rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25), inset 0 2px 4px rgb(255, 255, 255);
  animation: defineFadeIn 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.define-main .popup-header {
  padding: 20px;
  background: linear-gradient(135deg, #a25cf6 0%, #7c3aed 50%, #4c1d95 100%);
  position: relative;
  overflow: hidden;
}

.define-main .popup-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.define-main .popup-header-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.define-main .popup-header-badge svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.define-main .popup-location {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.define-main .popup-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  padding-right: 55px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.define-main .popup-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.define-main .popup-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.define-main .tag {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.define-main .tag svg {
  width: 13px;
  height: 13px;
}

.define-main .tag-green {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.define-main .tag-amber {
  background: rgba(255, 200, 50, 0.3);
  color: #fff;
}

.define-main .tag-red {
  background: rgba(255, 100, 100, 0.3);
  color: #fff;
}

.define-main .popup-body {
  padding: 20px;
}

.define-main .popup-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.15));
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.define-main .popup-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.define-main .popup-stat-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.define-main .popup-stat-content {
  flex: 1;
}

.define-main .popup-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1;
}

.define-main .popup-stat-unit {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 2px;
}

.define-main .popup-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(139, 92, 246, 0.08);
  padding: 5px;
  border-radius: 12px;
}

.define-main .popup-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.define-main .popup-tab:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #7c3aed;
}

.define-main .popup-tab.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.define-main .popup-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.define-main .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.define-main .metric-row:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.define-main .metric-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.define-main .metric-value {
  font-size: 13px;
  font-weight: 700;
}

.define-main .metric-value.warning {
  color: #d97706;
}

.define-main .metric-value.danger {
  color: #dc2626;
}

.define-main .metric-value.good {
  color: #7c3aed;
}

.define-main .filter-panel {
  position: absolute;
  top: 130px;
  right: 28px;
  bottom: 108px;
  width: 460px;
  border-radius: 28px;
  z-index: 99;
  overflow: hidden;
  animation: defineSlideIn 0.6s ease-out;
  display: none;
}

.define-main .filter-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f0ff, #a25cf6, transparent);
  z-index: 10;
}

.define-main .filter-header {
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  position: relative;
  z-index: 2;
}

.define-main .filter-title {
  font-size: 20px;
  font-weight: 800;
  color: #4c1d95;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.define-main .filter-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
}

.define-main .filter-title-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.define-main .filter-actions {
  display: flex;
  gap: 10px;
}

.define-main .btn {
  padding: 9px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.define-main .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  border: 1px solid rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
}

.define-main .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
  transform: translateY(-2px);
}

.define-main .btn-primary {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.define-main .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.define-main .filter-body {
  padding: 24px;
  height: calc(100% - 100px);
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.define-main .filter-body::-webkit-scrollbar {
  width: 6px;
}

.define-main .filter-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a25cf6, #7c3aed);
  border-radius: 3px;
}

.define-main .filter-body::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 3px;
}

.define-main .filter-section {
  margin-bottom: 26px;
}

.define-main .filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.define-main .filter-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #a25cf6, transparent);
  border-radius: 1px;
}

.define-main .filter-group {
  margin-bottom: 14px;
}

.define-main .filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 8px;
  display: block;
}

.define-main .filter-input {
  width: 100%;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(237, 233, 254, 0.5));
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  color: #4c1d95;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.define-main .filter-input:focus {
  outline: none;
  border-color: #a25cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 6px 20px rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.define-main .filter-input::placeholder {
  color: #9ca3af;
}

.define-main select.filter-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 45px;
}

.define-main .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.define-main .time-toggles {
  display: flex;
  gap: 8px;
}

.define-main .time-toggle {
  flex: 1;
  padding: 6px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s;
  border: 2px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.define-main .time-toggle:hover {
  border-color: #a25cf6;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.define-main .time-toggle.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.define-main .filter-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.12));
  border-radius: 12px;
  border-left: 4px solid #a25cf6;
  font-weight: 500;
}

.define-main .cluster-marker {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.define-main .cluster-marker:hover {
  transform: scale(1.25) translateY(-6px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.define-main .cluster-marker.active {
  transform: scale(1.3) translateY(-8px);
  animation: defineGlow 2s infinite;
}

.define-main .map-legend {
  position: absolute;
  bottom: 108px;
  left: 28px;
  border-radius: 18px;
  padding: 18px 24px;
  z-index: 40;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 233, 254, 0.7));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.define-main .legend-title {
  font-size: 11px;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.define-main .risk-options {
  display: flex;
  gap: 24px;
  align-items: center;
}

.define-main .risk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.define-main .risk-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Inactive state */
.define-main .risk-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.define-main .risk-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.3s ease;
}

/* Colors */
.define-main .low .risk-dot {
  background: #22c55e;
}

.define-main .medium .risk-dot {
  background: #f59e0b;
}

.define-main .high .risk-dot {
  background: #ef4444;
}

/* Active state styling */
.define-main .risk-item.active {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.define-main .risk-item.active .risk-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 12px currentColor;
}

.define-main .risk-item.active .risk-label {
  font-weight: 600;
  color: #1e293b;
}

.define-main .low.active .risk-dot {
  box-shadow: 0 0 12px #22c55e;
}

.define-main .medium.active .risk-dot {
  box-shadow: 0 0 12px #f59e0b;
}

.define-main .high.active .risk-dot {
  box-shadow: 0 0 12px #ef4444;
}

/* Active indicator ring */
.define-main .risk-item.active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, var(--active-color), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.define-main .low.active {
  --active-color: #22c55e;
}

.define-main .medium.active {
  --active-color: #f59e0b;
}

.define-main .high.active {
  --active-color: #ef4444;
}

/* Checkmark for active */
.define-main .checkmark {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.define-main .risk-item.active .checkmark {
  opacity: 1;
  transform: scale(1);
}

.define-main .low .checkmark {
  color: #22c55e;
}

.define-main .medium .checkmark {
  color: #f59e0b;
}

.define-main .high .checkmark {
  color: #ef4444;
}

.define-main .chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(139, 92, 246, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  animation: defineGlow 3s ease-in-out infinite;
}

.define-main .chat-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 45px rgba(139, 92, 246, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.define-main .chat-toggle svg {
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s;
}

.define-main .chat-toggle.active svg {
  transform: rotate(180deg);
}

.define-main .chat-toggle .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
  animation: definePulse 2s infinite;
}

.define-main .chatbot {
  position: fixed;
  bottom: 108px;
  right: 28px;
  width: 462px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 233, 254, 0.7) 50%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(124, 58, 237, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
  top: 130px;
}

.define-main .chatbot.active {
  display: flex;
  animation: defineChatPop 0.4s ease-out;
}

.define-main .chat-header {
  padding: 20px 22px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.define-main .chat-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.define-main .chat-avatar {
  width: 70px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  font-size: 30px;
}

.define-main .chat-header-info {
  flex: 1;
}

.define-main .chat-header-name {
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.define-main .chat-header-status {
  font-size: 13px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.define-main .status-dot {
  width: 9px;
  height: 9px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: definePulse 2s infinite;
}

.define-main .chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.define-main .chat-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.define-main .chat-messages {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.3);
  height: 450px;
}

.define-main .chat-messages::-webkit-scrollbar {
  width: 6px;
}

.define-main .chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a25cf6, #7c3aed);
  border-radius: 3px;
}

.define-main .message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: defineFadeIn 0.3s ease-out;
}

.define-main .message.bot {
  align-self: flex-start;
}

.define-main .message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.define-main .message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.define-main .message.bot .message-avatar {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
}

.define-main .message.user .message-avatar {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: #fff;
}

.define-main .message-avatar svg {
  width: 24px;
  height: 24px;
}

.define-main .message-bubble, .define-main .message-content {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.define-main .message.bot .message-bubble, .define-main .message.bot .message-content {
  background: rgba(255, 255, 255, 0.9);
  color: #4c1d95;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.define-main .message.user .message-bubble, .define-main .message.user .message-content {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.define-main .message-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
  font-weight: 500;
}

.define-main .message.user .message-time {
  text-align: right;
}

.define-main .typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  width: fit-content;
}

.define-main .typing-dot {
  width: 9px;
  height: 9px;
  background: #a25cf6;
  border-radius: 50%;
  animation: defineTyping 1.4s infinite;
}

.define-main .typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.define-main .typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.define-main .chat-suggestions {
  padding: 0 22px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: transparent;
  position: absolute;
  bottom: 100px;
}

.define-main .suggestion {
  padding: 2px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.define-main .suggestion:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.define-main .suggestion svg {
  width: 15px;
  height: 15px;
}

.define-main .chat-input-area {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(10px);
  width: 100%;
  bottom: 0;
  position: absolute;
}

.define-main .chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 0 16px;
  transition: all 0.3s;
}

.define-main .chat-input-wrapper:focus-within {
  border-color: #a25cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 6px 20px rgba(139, 92, 246, 0.08);
  background: #fff;
}

.define-main .chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  color: #4c1d95;
}

.define-main .chat-input::placeholder {
  color: #9ca3af;
}

.define-main .attach-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s;
  border-radius: 8px;
}

.define-main .attach-btn:hover {
  color: #a25cf6;
  background: rgba(139, 92, 246, 0.08);
}

.define-main .send-btn {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.define-main .send-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

.define-main .send-btn svg {
  width: 22px;
  height: 22px;
}

.define-main footer {
  padding: 10px 15px;
  position: relative;
  z-index: 100;
  background: transparent;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.define-main .footer-bottom-section {
  display: none;
}

.define-main .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-radius: 18px;
}

.define-main .footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.define-main .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.define-main .footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.define-main .footer-brand-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.define-main .footer-copy {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.define-main .footer-links {
  display: flex;
  gap: 22px;
}

.define-main .footer-links a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.define-main .footer-links a:hover {
  color: #a25cf6;
}

.define-main .footer-social {
  display: flex;
  gap: 10px;
}

.define-main .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.define-main .footer-social a:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

@media (max-width: 1100px) {
  .define-main .filter-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50vh;
    border-radius: 28px 28px 0 0;
  }
  .define-main nav {
    display: none;
  }
  .define-main .chatbot {
    width: calc(100% - 56px);
    height: 65vh;
  }
}
/* Animations */
@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.sweep {
  animation: sweep 3s linear infinite;
  transform-origin: center;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.blink {
  animation: blink 1.5s ease-in-out infinite;
}

.blink-delay-1 {
  animation-delay: 0.3s;
}

.blink-delay-2 {
  animation-delay: 0.6s;
}

.blink-delay-3 {
  animation-delay: 0.9s;
}

/*# sourceMappingURL=define.css.map */
