@charset "UTF-8";

/*Typography Settings*/
body {
  font-size: 13px;
  font-family: var(--font-noto-sans-thai), 'Noto Sans Thai', sans-serif !important;
  line-height: 24px !important;
  color: #5a4b2c !important;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 50%, #FFE0B2 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #e65100;
  font-family: var(--font-noto-sans-thai), 'Noto Sans Thai', sans-serif !important;
  margin-bottom: 5px;
  letter-spacing: -0.8px;
}

h1 {
  font-size: 24px;
  line-height: 30px;
  padding-bottom: 5px;
}

h2 {
  font-size: 22px;
  line-height: 25px;
}

h3 {
  font-size: 20px;
  line-height: 24px;
}

h4 {
  font-size: 18px;
  line-height: 23px;
}

h5 {
  font-size: 16px;
  line-height: 22px;
}

a {
  text-decoration: none !important;
}

p {
  color: #6d4c41;
  margin-bottom: 30px;
  padding-bottom: 0px;
}

/*Page Structure Settings*/
#page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-content {
  overflow-x: hidden;
  transition: all 300ms ease;
  z-index: 90;
  padding-bottom: 80px;
  padding-bottom: calc(80px + (constant(safe-area-inset-bottom))*1.1);
  padding-bottom: calc(80px + (env(safe-area-inset-bottom))*1.1);
}

/*Header Clear Classes*/
.header-clear {
  padding-top: 80px;
}

.header-clear-small {
  padding-top: 60px;
}

.header-clear-medium {
  padding-top: 100px;
}

.header-clear-large {
  padding-top: 120px;
}

/*Content Boxes*/
.content {
  margin: 20px 15px 20px 15px;
}

.content p:last-child {
  margin-bottom: 0px;
}

.content-full {
  margin: 0px;
}

.content-boxed {
  padding: 20px 15px 0px 15px;
}

/*Card System*/
.card {
  background: linear-gradient(145deg, #ffffff 0%, #fffdf7 100%);
  border-radius: 20px;
  margin: 15px;
  box-shadow: 0 4px 20px 0 rgba(255, 193, 7, 0.15), 0 2px 8px 0 rgba(255, 152, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.card-style {
  background-color: #ffffff;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.card-bottom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

/*Header Card*/
.header-card {
  position: relative;
  margin: 15px;
  border-radius: 20px;
  overflow: hidden;
}

.header-card[data-card-height="200"] { height: 200px; }
.header-card[data-card-height="210"] { height: 210px; }
.header-card[data-card-height="280"] { height: 280px; }
.header-card[data-card-height="320"] { height: 320px; }

/*Header*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(90deg, #fff59d 0%, #ffcc02 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px 0 rgba(255, 193, 7, 0.3);
  padding: 0 20px;
  border-bottom: 2px solid rgba(255, 152, 0, 0.2);
}

.header-fixed {
  position: fixed;
}

.header-logo-center .header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #727272;
  transition: all 0.2s ease;
}

.header-icon:hover {
  background-color: rgba(0,0,0,0.05);
}

.header-icon-1 {
  position: absolute;
  right: 20px;
}

/*Buttons*/
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
  line-height: 20px;
}

.btn-full {
  width: 100%;
  display: block;
}

.btn-m {
  padding: 12px 20px;
  font-size: 14px;
}

/*List Groups*/
.list-group {
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
}

.list-group-item {
  padding: 15px 20px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e65100;
  border-bottom: 1px solid rgba(255, 193, 7, 0.1);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
}

.list-group-item i:first-child {
  width: 30px;
  text-align: center;
  margin-right: 15px;
  font-size: 16px;
}

.list-group-item span {
  flex: 1;
  font-size: 14px;
}

/*Progress Bars*/
.progress-bar {
  height: 6px;
  background-color: rgba(0,0,0,0.1);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.progress-bar-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/*Badges*/
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

/*Font Utilities*/
.font-8 { font-size: 8px !important; }
.font-9 { font-size: 9px !important; }
.font-10 { font-size: 10px !important; }
.font-11 { font-size: 11px !important; }
.font-12 { font-size: 12px !important; }
.font-13 { font-size: 13px !important; }
.font-14 { font-size: 14px !important; }
.font-15 { font-size: 15px !important; }
.font-16 { font-size: 16px !important; }
.font-17 { font-size: 17px !important; }
.font-18 { font-size: 18px !important; }
.font-20 { font-size: 20px !important; }
.font-22 { font-size: 22px !important; }
.font-24 { font-size: 24px !important; }

.font-200 { font-weight: 200 !important; }
.font-300 { font-weight: 300 !important; }
.font-400 { font-weight: 400 !important; }
.font-500 { font-weight: 500 !important; }
.font-600 { font-weight: 600 !important; }
.font-700 { font-weight: 700 !important; }
.font-800 { font-weight: 800 !important; }
.font-900 { font-weight: 900 !important; }

/*Rounded Utilities*/
.rounded-0 { border-radius: 0 !important; }
.rounded-s { border-radius: 8px !important; }
.rounded-m { border-radius: 12px !important; }
.rounded-l { border-radius: 20px !important; }
.rounded-xl { border-radius: 30px !important; }

/*Shadow Utilities*/
.shadow-0 { box-shadow: none !important; }
.shadow-s { box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important; }
.shadow-m { box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; }
.shadow-l { box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; }
.shadow-xl { box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important; }

/*Opacity Utilities*/
.opacity-10 { opacity: 0.1 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-40 { opacity: 0.4 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }
.opacity-95 { opacity: 0.95 !important; }

/*Border Utilities*/
.border-0 { border: none !important; }

/*Color System - Main Highlight*/
.color-highlight {
  color: #ff8f00 !important;
}

.bg-highlight {
  background: linear-gradient(135deg, #ffcc02 0%, #ff8f00 100%) !important;
  color: #FFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.border-highlight {
  border-color: #ff8f00 !important;
}

/*Basic Colors*/
.color-white { color: #ffffff !important; }
.color-black { color: #000000 !important; }
.color-gray-dark { color: #343a40 !important; }

.bg-white { background-color: #ffffff !important; }
.bg-gradient { background: linear-gradient(45deg, #ffcc02, #ff8f00, #ffc107) !important; }

/*Theme Support*/
.theme-light {
  --color-theme: #1f1f1f;
  --bg-theme: #ffffff;
}

.theme-dark {
  --color-theme: #ffffff;
  --bg-theme: #1f1f1f;
  background-color: #1a1a1a;
}

.theme-dark body {
  background-color: #1a1a1a;
  color: #ffffff;
}

.theme-dark .card {
  background-color: #2a2a2a;
}

.theme-dark .header {
  background-color: #2a2a2a;
}

.theme-dark h1, 
.theme-dark h2, 
.theme-dark h3, 
.theme-dark h4, 
.theme-dark h5, 
.theme-dark h6 {
  color: #ffffff;
}

.theme-dark .list-group-item {
  color: #ffffff;
}

/*Animations*/
.mascot-bounce {
  animation: bounce 2s infinite;
}

.mascot-thinking {
  animation: thinking 3s infinite;
}

.mascot-celebrate {
  animation: celebrate 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes thinking {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes celebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/*Mobile Responsiveness*/
@media (max-width: 576px) {
  .card {
    margin: 10px;
    border-radius: 15px;
  }
  
  .content {
    margin: 15px 10px;
  }
  
  .font-24 { font-size: 20px !important; }
  .font-18 { font-size: 16px !important; }
  
  .header {
    padding: 0 15px;
  }
}