/**
 * WhisperNet Component Styles
 * Part of PEACELINK 360 - Developed by Kisii University Flamingo Kings
 */

/* ==========================================
   0. Modern Decorative slants, animations, and glows
   ========================================== */
.section-skewed-green {
  position: relative;
  background: linear-gradient(135deg, var(--wn-900) 0%, var(--wn-600) 100%);
  color: #FFFFFF;
  padding: 120px 0;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  z-index: 2;
}

.section-skewed-light {
  position: relative;
  background: linear-gradient(180deg, var(--wn-100) 0%, var(--wn-50) 100%);
  padding: 120px 0;
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
  z-index: 2;
  margin: 60px 0;
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-soft {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered delay helper classes */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* Glow Spot background decor */
.glow-spot {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.glow-spot-orange {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 106, 67, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   1. Navbar (Headbar)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 44, 77, 0.85); /* Deep steel blue glass */
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  color: #FFFFFF;
  height: 75px;
  display: flex;
  align-items: center;
  transition: all var(--transition-default);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: all var(--transition-default);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-right: 6px;
  transition: transform var(--transition-default);
}

.brand-logo:hover {
  transform: scale(1.08) rotate(2deg);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 44, 77, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  list-style: none;
  min-width: 190px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-default);
  z-index: 1001;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-default);
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding-left: 24px;
}

/* Hover trigger on desktop */
@media (min-width: 1025px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive mobile dropdown style */
@media (max-width: 1024px) {
  .dropdown-menu {
    position: static;
    transform: none !important;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 20px;
    width: 100%;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

.nav-brand i {
  color: var(--terracotta-400);
  filter: drop-shadow(0 0 8px rgba(231, 142, 109, 0.4));
  transition: transform var(--transition-default);
}

.nav-brand:hover i {
  transform: rotate(-10deg) scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-default);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--terracotta-400);
  transform-origin: bottom right;
  transition: transform var(--transition-default);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link.active {
  color: #FFFFFF;
}

.nav-cta {
  background: linear-gradient(135deg, var(--terracotta-600) 0%, var(--terracotta-900) 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: var(--shadow-glow-accent);
  transition: all var(--transition-default);
  text-decoration: none;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 106, 67, 0.4);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  transition: opacity var(--transition-default);
}

.nav-toggle:hover {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--wn-900);
    flex-direction: column;
    padding: 24px 0;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    border-bottom: 2px solid var(--wn-600);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }
  .nav-link::after {
    display: none;
  }
}

/* ==========================================
   2. Hero Section
   ========================================== */
.hero {
  background: radial-gradient(circle at top right, var(--wn-600) 0%, var(--wn-900) 100%);
  color: #FFFFFF;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 44, 77, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 106, 67, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.15;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero .motto-tagline {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--terracotta-100);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================
   3. Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-default);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wn-600) 0%, var(--wn-900) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(57, 88, 134, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--wn-400) 0%, var(--wn-600) 100%);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(98, 142, 203, 0.4), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--wn-900);
  border: 1.5px solid var(--wn-200);
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: var(--wn-600);
  border-color: var(--wn-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: linear-gradient(135deg, var(--terracotta-600) 0%, var(--terracotta-900) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--shadow-glow-accent);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 106, 67, 0.45);
}

/* ==========================================
   4. Cards (Glassmorphism design)
   ========================================== */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px -10px rgba(57, 88, 134, 0.08), 0 1px 1px rgba(255, 255, 255, 0.6) inset;
  transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default), background var(--transition-default);
}

.card:hover {
  transform: translateY(-6px) scale(1.005);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -15px rgba(57, 88, 134, 0.18), var(--shadow-glow);
  border-color: rgba(98, 142, 203, 0.6);
}

.card:hover i[data-lucide] {
  transform: scale(1.1) translateY(-2px);
  color: var(--wn-900);
}

.card i[data-lucide] {
  transition: transform var(--transition-default), color var(--transition-default);
}

.card-title {
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.tag {
  display: inline-block;
  background-color: var(--wn-100);
  border: 1px solid var(--wn-200);
  color: var(--wn-900);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ==========================================
   5. Forms & Inputs
   ========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wn-900);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(57, 88, 134, 0.15);
  border-radius: 10px;
  color: var(--color-text-body);
  transition: all var(--transition-default);
}

.form-control:focus {
  outline: none;
  border-color: var(--wn-600);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(98, 142, 203, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
}

.form-checkbox input {
  margin-top: 5px;
  accent-color: var(--wn-600);
}

.input-feedback {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ==========================================
   6. Badges & Status Indicators
   ========================================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-info { background-color: var(--wn-100); color: var(--wn-900); border: 1px solid var(--wn-200); }
.badge-advisory { background-color: var(--terracotta-100); color: var(--terracotta-900); border: 1px solid var(--terracotta-400); }
.badge-urgent { background-color: #b00020; color: #FFFFFF; }

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.status-submitted { background-color: #e2ede7; color: var(--wn-900); border: 1px solid var(--wn-400); }
.status-under-review { background-color: var(--terracotta-100); color: var(--terracotta-900); border: 1px solid var(--terracotta-400); }
.status-verified { background-color: #d8f3dc; color: #1b4332; border: 1px solid #74c69d; }
.status-forwarded-to-authorities { background-color: #ede7f6; color: #512da8; border: 1px solid #b39ddb; }
.status-published { background-color: #d8f3dc; color: #1b4332; border: 1px solid #74c69d; }
.status-closed { background-color: #eceff1; color: #455a64; border: 1px solid #b0bec5; }
.status-rejected { background-color: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ==========================================
   7. Alert Notification Box
   ========================================== */
.alert-box {
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.alert-box-info {
  background-color: #e3f2fd;
  border-color: #bbdefb;
  color: #0d47a1;
}

.alert-box-success {
  background-color: #e8f5e9;
  border-color: #c8e6c9;
  color: #1b5e20;
}

.alert-box-warning {
  background-color: #fff3e0;
  border-color: #ffe0b2;
  color: #e65100;
}

.alert-box-danger {
  background-color: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

/* ==========================================
   8. Timeline (Report tracking)
   ========================================== */
.timeline {
  position: relative;
  padding-left: 35px;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--wn-200);
}

.timeline-event {
  position: relative;
  margin-bottom: 35px;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--terracotta-600);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(212, 106, 67, 0.5);
  transition: all var(--transition-default);
}

.timeline-event:hover::before {
  transform: scale(1.3);
}

.timeline-time {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  color: var(--color-text-heading);
  font-size: 15px;
}

.timeline-body {
  font-size: 14px;
  color: var(--color-text-body);
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--wn-200);
}

/* ==========================================
   9. Footer
   ========================================== */
.footer {
  background-color: var(--wn-900);
  color: #FFFFFF;
  padding: 80px 0 30px 0;
  font-size: 14px;
  border-top: 4px solid var(--terracotta-600);
}

.footer h4 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--terracotta-600);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.footer-logo i {
  color: var(--terracotta-400);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--transition-default);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact i {
  color: var(--terracotta-400);
}

.partners-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  margin: 50px 0 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
}

.partner-logo {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity var(--transition-default);
}

.partner-logo:hover {
  opacity: 1;
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  margin-top: 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-privacy {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-style: italic;
  font-size: 13px;
  border-left: 4px solid var(--terracotta-600);
  text-align: left;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   10. Interactive Forum specific styles
   ========================================== */
.forum-post {
  margin-bottom: 25px;
}

.forum-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 14px;
}

.forum-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--wn-900);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-default);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forum-btn:hover {
  color: var(--terracotta-600);
}

.comments-section {
  display: none;
  background-color: var(--wn-100);
  border-top: 1px solid var(--wn-200);
  padding: 20px;
  margin-top: 15px;
  border-radius: 0 0 12px 12px;
}

.comments-section.open {
  display: block;
}

.comment-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wn-200);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-default);
}

.comment-card:hover {
  transform: translateX(4px);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 700;
  color: var(--wn-900);
}

/* Table styles */
.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--wn-200);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

table.table th, table.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--wn-200);
}

table.table th {
  background-color: var(--wn-100);
  color: var(--wn-900);
  font-weight: 700;
}

table.table tr:last-child td {
  border-bottom: none;
}

table.table tr:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   FLOATING CHATBOT WIDGET
   ========================================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: var(--font-body);
}

/* Chat Trigger Button */
.chatbot-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peace-green-600), var(--peace-green-900));
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(46, 125, 50, 0.4);
  transition: all var(--transition-default);
  position: relative;
}

.chatbot-trigger:hover {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.55);
}

.chatbot-trigger i {
  width: 26px;
  height: 26px;
}

.chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--wn-500);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 365px;
  height: 520px;
  background: rgba(22, 38, 70, 0.95);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
  padding: 16px 20px;
  background: rgba(14, 28, 54, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid var(--peace-green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--peace-green-600);
}

.chatbot-avatar i {
  width: 20px;
  height: 20px;
}

.chatbot-header-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.chatbot-header-info p {
  font-size: 11px;
  color: var(--wn-200);
  margin: 0;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: var(--wn-300);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-default);
}

.chatbot-close:hover {
  color: #FFFFFF;
}

/* Chat Action Chips */
.chatbot-templates {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
  -scrollbar-width: none; /* Firefox */
}

.chatbot-templates::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.chat-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-default);
}

.chat-chip:hover {
  background: var(--peace-green-600);
  border-color: var(--peace-green-600);
  transform: translateY(-1px);
}

/* Chat Messages Area */
.chatbot-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
  animation: message-appear 0.25s ease-out;
}

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

.chat-message.bot {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message.user {
  background: var(--peace-green-600);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.chat-time {
  display: block;
  font-size: 9px;
  color: var(--wn-300);
  margin-top: 6px;
  text-align: right;
}

.chat-message.user .chat-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Chat Input Bar */
.chatbot-input-area {
  padding: 12px 16px;
  background: rgba(14, 28, 54, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 10px 18px;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
  transition: all var(--transition-default);
}

.chatbot-input-area input:focus {
  border-color: var(--peace-green-600);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.25);
}

.chatbot-input-area button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--peace-green-600);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-default);
}

.chatbot-input-area button:hover {
  background: var(--peace-green-900);
  transform: scale(1.05);
}

.chatbot-input-area button i {
  width: 16px;
  height: 16px;
}

/* Loading Dots Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--wn-300);
  border-radius: 50%;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce-dots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 30px);
    right: -10px;
    height: 480px;
  }
}
