/* Critical styles moved from index.html to support CSP. */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

/* Layout utilities */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Colors and backgrounds */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-teal-600 { background-color: #0d9488; }
.text-white { color: #ffffff; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.border-gray-100 { border-color: #f3f4f6; }

/* Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-gray-50 { --tw-gradient-from: #f9fafb; --tw-gradient-to: rgba(249, 250, 251, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-white { --tw-gradient-to: #ffffff; }

/* Typography */
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }

/* Borders */
.border-b { border-bottom-width: 1px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Hover effects */
.hover\:bg-teal-700:hover { background-color: #0f766e; }
.hover\:opacity-80:hover { opacity: 0.8; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Responsive design */
.hidden { display: none; }
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Component styles */
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

/* ChannelTalk Custom Styling */
#ch-plugin {
  z-index: 9998 !important;
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
}

#ch-plugin #ch-plugin-launcher {
  background-color: hsl(154 39% 33%) !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

#ch-plugin #ch-plugin-launcher:hover {
  background-color: hsl(154 39% 45%) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

#ch-plugin #ch-plugin-launcher .ch-launcher-icon {
  color: white !important;
  font-size: 24px !important;
}

#ch-plugin #ch-plugin #ch-plugin-full {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

#ch-plugin #ch-plugin #ch-plugin-full .ch-plugin-header {
  background-color: hsl(154 39% 33%) !important;
  border-radius: 12px 12px 0 0 !important;
}

@media (max-width: 768px) {
  #ch-plugin {
    bottom: 15px !important;
    right: 15px !important;
  }

  #ch-plugin #ch-plugin-launcher {
    width: 56px !important;
    height: 56px !important;
  }
}

/* GTM noscript frame */
.gtm-noscript-frame {
  display: none;
  visibility: hidden;
}

/* Initial loader */
#initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.initial-loader-content {
  text-align: center;
}

.initial-loader-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.initial-loader-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  gap: 8px;
}

.initial-loader-dot {
  width: 12px;
  height: 12px;
  background-color: #337357;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.initial-loader-dot.delay-1 { animation-delay: 0.1s; }
.initial-loader-dot.delay-2 { animation-delay: 0.2s; }

.initial-loader-text {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
