/* =========================================
   1. BASE STYLES & RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Prompt", sans-serif;
  background: #f4f7f9;
  color: #1f2d3d;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. THEME SYSTEM
   ========================================= */

/* Light Theme (หน้าแรก / ทั่วไป) */
.page-bg.light-theme, .page-bg.public-theme {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Smart/Public Theme (หน้าหมวดหมู่สาธารณะ) */
.smart-page-bg {
  min-height: 100vh;
  background: url('images/public-bg.png') no-repeat center center / cover; 
  background-attachment: fixed;
  position: relative;
  display: flex;
  flex-direction: column;
}

.smart-page-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.45); 
  z-index: 1; pointer-events: none;
}

/* Dark Theme (หน้าผู้บริหาร) */
.page-bg.dark-theme {
  background: linear-gradient(rgba(8, 18, 38, 0.8), rgba(8, 18, 38, 0.85)), 
              url("images/executive-bg.png") no-repeat center center / cover;
  background-attachment: fixed;
  flex: 1; display: flex; flex-direction: column;
}

/* ยกเลเยอร์เนื้อหาให้ลอยเหนือ Overlay */
.main-header, .hero, .hero-pill-container, .search-container, .subpage-search,
.smart-card-grid, .card-section, .dashboard-section, .visitor-section, .main-footer {
  position: relative;
  z-index: 10;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 40px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky; top: 0; z-index: 1000;
}

.header-left { display: flex; align-items: center; gap: 15px; }
.logo { width: 55px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.header-title h1 { font-family: "Kanit", sans-serif; font-size: 20px; color: #173a5b; font-weight: 700; margin-bottom: 2px;}
.header-title p { font-size: 13px; color: #647b91; margin: 0; font-weight: 400; }

.header-right { display: flex; gap: 10px; }
.nav-btn {
  padding: 8px 20px; border-radius: 25px; background: white; color: #1f2d3d;
  font-weight: 500; border: 1px solid #e2e8f0; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-btn:hover { background: linear-gradient(135deg, #11a8b7 0%, #0f8ca2 100%); color: white; border-color: rgba(255,255,255,0.2); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(17, 168, 183, 0.25); }

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h2 { font-family: "Kanit", sans-serif; font-size: 42px; color: #11a8b7; margin-bottom: 10px; }
.hero h3 { font-size: 20px; font-weight: 400; color: #4b5563; }

.hero-pill-container { display: flex; justify-content: center; padding: 30px 20px; }
.hero-pill {
  background: #396765; color: white; padding: 35px 50px; border-radius: 24px;
  text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.2); max-width: 850px; width: 100%;
}
.hero-pill h2 { font-family: 'Kanit', sans-serif; font-size: 36px; margin-bottom: 8px; }

.category-hero { padding: 40px 20px 20px; text-align: center; }
.category-hero-box {
  background: linear-gradient(135deg, #0f515e 0%, #138a8e 100%);
  border-radius: 24px; padding: 45px 30px; max-width: 900px; margin: 0 auto;
  box-shadow: 0 20px 40px rgba(15, 81, 94, 0.25); color: white;
}
.category-hero-box h2 { font-family: 'Kanit', sans-serif; font-size: 42px; margin-bottom: 12px; color: #f8fafc; }
.category-hero-box p { font-size: 16px; color: #f8fafc; font-weight: 400; margin: 0;}

/* =========================================
   4.5. MAIN CARDS (หน้าแรก INDEX.PHP)
   ========================================= */
.card-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 850px;
  margin: 0 auto 60px;
  padding: 0 20px;
  width: 100%;
}

.main-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.main-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.card-top {
  height: 120px;
  background: linear-gradient(135deg, #11a8b7 0%, #0f8ca2 100%);
  width: 100%;
}

.main-card:nth-child(2) .card-top {
  background: linear-gradient(135deg, #0b2239 0%, #173a5b 100%);
}

.card-icon-wrap {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  margin: -50px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 5px solid #f8fafc;
  z-index: 2;
  position: relative;
}

.card-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.card-body {
  padding: 0 30px 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 24px;
  color: #173a5b;
  margin-bottom: 10px;
}

.card-body p {
  color: #647b91;
  margin-bottom: 25px;
  font-size: 15px;
  flex-grow: 1;
}

.enter-btn {
  display: inline-block;
  background: #11a8b7;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-card:nth-child(2) .enter-btn {
  background: #0b2239;
}

.enter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(17, 168, 183, 0.25);
  color: white;
}

/* =========================================
   5. SEARCH COMPONENTS
   ========================================= */
.search-container, .subpage-search {
  max-width: 900px; margin: 10px auto 30px; padding: 0 20px; width: 100%;
}
.search-container input, .subpage-search input {
  width: 100%; padding: 16px 25px; border-radius: 18px; border: 1px solid #d1d5db;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06); font-size: 16px; font-family: 'Prompt', sans-serif;
  outline: none; transition: all 0.3s ease; background: #ffffff;
}
.search-container input:focus, .subpage-search input:focus {
  border-color: #11a8b7; box-shadow: 0 8px 25px rgba(17, 168, 183, 0.2);
}

/* =========================================
   6. CARD GRIDS & IMAGE CONTROL
   ========================================= */
.smart-card-img { 
  width: 100%; 
  aspect-ratio: 9 / 4; 
  object-fit: cover; 
  object-position: center;
  transition: transform 0.5s ease; 
  display: block;
}

.smart-card-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 25px; max-width: 1200px; margin: 0 auto 60px; padding: 0 20px;
}
.smart-card {
  background: white; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex: 1 1 300px; max-width: 360px; width: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.smart-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 22px; box-shadow: 0 15px 35px rgba(17, 168, 183, 0.2);
  opacity: 0; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); pointer-events: none;
}
.smart-card:hover { transform: translateY(-10px); }
.smart-card:hover::after { opacity: 1; }
.smart-card:hover .smart-card-img { transform: scale(1.08); filter: brightness(1.05); }

.orderable-card { cursor: grab; }
.orderable-card:active { cursor: grabbing; }
.orderable-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}
.sort-handle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17,168,183,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #0f8ca2;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
  cursor: grab;
}
.sort-status {
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0 20px;
  color: #0f8ca2;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  text-align: right;
}
.sort-status.error { color: #ef4444; }

.smart-card-body { padding: 24px; text-align: center; flex-grow: 1; }
.smart-card-body h3 { font-family: 'Kanit', sans-serif; font-size: 19px; color: #0b2239; margin-bottom: 8px; }
.smart-card-body p { font-size: 13px; color: #647b91; font-weight: 400; margin: 0; line-height: 1.5; }

/* =========================================
   6.5. DASHBOARD SUBPAGES (ปรับปรุงให้จัดกึ่งกลางและขนาดคงที่)
   ========================================= */
.dashboard-section {
  display: flex;            
  flex-wrap: wrap;         
  justify-content: center;  
  gap: 30px;                
  max-width: 1200px;        
  margin: 0 auto 60px;      
  padding: 0 20px;
  width: 100%;
}

.dashboard-card {
  background: white;
  border-radius: 20px;
  padding: 35px 25px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  
  /* กำหนดขนาดการ์ดให้คงที่ (350px) เพื่อให้ดูเหมือนหน้าที่มี 3 การ์ดเสมอ */
  flex: 0 1 350px; 
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.dashboard-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 20px; box-shadow: 0 15px 35px rgba(17, 168, 183, 0.15);
  opacity: 0; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); pointer-events: none;
}

.dashboard-card:hover {
  transform: translateY(-10px);
}
.dashboard-card:hover::after { opacity: 1; }

.dashboard-card img {
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 25px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dashboard-card:hover img {
  transform: scale(1.15) translateY(-5px);
}

.dashboard-card h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 20px;
  color: #173a5b;
  margin-bottom: 10px;
}

.dashboard-card p {
  color: #647b91;
  font-size: 14px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.dashboard-card .btn {
  display: inline-block;
  background: linear-gradient(135deg, #11a8b7 0%, #0f8ca2 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(17, 168, 183, 0.2);
}

.dashboard-card .btn:hover {
  background: linear-gradient(135deg, #0f8ca2 0%, #0b6878 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(17, 168, 183, 0.4);
}

/* =========================================
   7. DARK THEME (EXECUTIVE DASHBOARD) - ปรับปรุงการแสดงผล
   ========================================= */
.page-bg.dark-theme .executive-hero { text-align: center; margin: 40px auto 20px; max-width: 900px; padding: 0 20px; }
.page-bg.dark-theme .executive-hero-box {
    background: #111a31 !important; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 35px 30px !important;
    text-align: center !important;
}
.page-bg.dark-theme .executive-hero-box h2 {
    font-family: 'Kanit', sans-serif;
    color: #ffffff !important;
    font-size: 38px !important;
    margin-bottom: 12px;
}
.page-bg.dark-theme .executive-hero-box p { color: #cbd5e1 !important; font-size: 16px; }

/* ปรับการ์ดหน้าหลักผู้บริหารให้มีมิติในโหมดมืด */
.page-bg.dark-theme .smart-card {
    background: #0b1426 !important;
    border: none !important;
}
.page-bg.dark-theme .smart-card-body h3 { color: #ffffff !important; }
.page-bg.dark-theme .smart-card-body p { color: #8b9bb4 !important; }

/* --- ส่วนที่ปรับใหม่: การ์ดหน้าย่อย (Dashboard Card) ให้เป็นสีขาวอ่านง่าย --- */
.page-bg.dark-theme .dashboard-card {
    background: #ffffff !important; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}
.page-bg.dark-theme .dashboard-card h3 { color: #173a5b !important; }
.page-bg.dark-theme .dashboard-card p { color: #647b91 !important; }
.page-bg.dark-theme .dashboard-card .btn { background: #11a8b7 !important; color: white !important; }
.page-bg.dark-theme .dashboard-card .btn:hover { background: #0f8ca2 !important; }

/* =========================================
   8. VISITOR & FOOTER
   ========================================= */
.visitor-section { width: 100%; display: flex; justify-content: center; margin: 20px 0 60px; padding: 0 20px; }
.visitor-glass-pill {
  display: inline-flex; align-items: center; gap: 15px;
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
  padding: 14px 40px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.v-text { font-family: 'Kanit', sans-serif; font-weight: 600; color: #173a5b; }
.v-count { font-family: "Kanit", sans-serif; font-size: 30px; font-weight: 700; color: #11a8b7; }

.main-footer {
  background: #0b2239; color: #ffffff; padding: 35px 0;
  border-top: 6px solid #396765; width: 100%; margin-top: auto;
}
.footer-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.footer-dept-name { font-family: 'Kanit', sans-serif; font-size: 22px; color: #11a8b7; margin-bottom: 5px; }
.footer-right { border-left: 2px solid rgba(17, 168, 183, 0.2); padding-left: 40px; display: flex; flex-direction: column; gap: 8px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.9); }

/* =========================================
   9. LOADING SCREEN & ANIMATIONS
   ========================================= */
#loader-wrapper {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #f8fafc; z-index: 9999; display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-logo { width: 80px; animation: pulseLogo 1.5s infinite; margin-bottom: 15px; }
@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 15px rgba(17,168,183,0.5)); }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .hero-pill-container, .category-hero, .smart-card-grid, .visitor-section { 
  opacity: 0; animation: fadeInUp 0.8s ease forwards; 
}

/* =========================================
   10. RESPONSIVE (100% Mobile Ready)
   ========================================= */

/* สำหรับ Tablet และหน้าจอขนาดกลาง */
@media (max-width: 992px) {
  .footer-container { flex-direction: column; text-align: center; gap: 30px; }
  .footer-right { border-left: none; padding-left: 0; align-items: center; }
  .card-section { gap: 20px; grid-template-columns: 1fr; }
}

/* สำหรับโทรศัพท์มือถือ (iPhone, Android) */
@media (max-width: 768px) {
  /* ปรับแต่ง Header ใหม่ให้อยู่ตรงกลางและซ้อนกัน */
  .main-header { 
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 15px 20px; 
    gap: 15px; 
    text-align: center; 
  }
  .header-left { flex-direction: column; gap: 8px; width: 100%; }
  .header-title h1 { font-size: 18px; }
  .header-right { width: 100%; justify-content: center; }
  .nav-btn { width: 100%; justify-content: center; padding: 10px; }

  /* ลดขนาด Font กล่อง Title */
  .hero h2 { font-size: 28px !important; }
  .hero h3 { font-size: 16px; }
  .hero-pill h2, .category-hero-box h2, .page-bg.dark-theme .executive-hero-box h2 { font-size: 24px !important; }
  .hero-pill { padding: 25px 20px; }
}

/* =========================================
   11. SLIDE LOGIN PANEL & FOOTER UPDATES
   ========================================= */

/* =========================================
   11. MINIMALIST FOOTER REDESIGN
   ========================================= */
.main-footer {
    background: #0b1426; /* สีน้ำเงินเข้มจัด ให้ตัดกับเนื้อหาหลัก */
    padding: 50px 0;
    border-top: 1px solid rgba(17, 168, 183, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 30px;
    align-items: flex-start;
}

/* คอลัมน์ขวาสุด (ปุ่มจัดการระบบ) */
.col-admin {
    display: flex;
    justify-content: flex-end; /* ชิดขวาสุด */
}

.admin-minimal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; /* ทรงมนยา (Pill Shape) */
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-minimal-link .admin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
}

.admin-minimal-link:hover {
    color: #11a8b7;
    border-color: #11a8b7;
    background: rgba(17, 168, 183, 0.05);
    transform: translateY(-2px);
}

.admin-minimal-link:hover .admin-icon {
    transform: rotate(90deg); /* หมุนเฟืองเวลาชี้ */
}

/* กรณีปุ่ม Logout */
.admin-minimal-link.logout {
    border-color: rgba(239, 68, 68, 0.2);
}
.admin-minimal-link.logout:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* ปรับแต่ง Mobile */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .col-admin { justify-content: center; margin-top: 20px; }
}

/* style.css - บรรทัดบนสุด */
html, body {
    min-height: 100vh !important;
    margin: 0;
    padding: 0;
}

/* บังคับให้ Container หลักสูงเต็มจอ และดัน Footer ลงล่างเสมอ */
.smart-page-bg, .page-bg {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important; /* สูงเท่าความสูงหน้าจอพอดี */
}

/* ส่วนเนื้อหาจะขยายตัวเพื่อดัน Footer */
.main-content-area {
    flex: 1 0 auto !important;
}

/* ป้องกัน Footer หดตัว */
.main-footer-section {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

/* --- Sticky Footer & Full Height Configuration --- */
html, body {
    min-height: 100vh !important;
    margin: 0;
    padding: 0;
}

/* ครอบคลุมทั้งหน้าหลัก (smart-page-bg) และหน้าย่อย (page-bg) */
.smart-page-bg, .page-bg {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    width: 100% !important;
}

/* ส่วนเนื้อหาจะขยายตัวเพื่อดัน Footer ลงข้างล่าง */
.main-content-area {
    flex: 1 0 auto !important;
}

/* ป้องกัน Footer หดตัว หรือกระโดด */
footer, .main-footer-section {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

/* --- การตั้งค่าการ์ดในหน้าย่อย (Dashboard Card) --- */
.dashboard-card img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important; /* แก้ไขจาก cover เป็น contain เพื่อป้องกันไอคอนเบลอและไม่ถูกตัดขอบ */
    margin: 0 auto 15px !important;
    display: block !important;
}

/* =========================================
   เอฟเฟกต์เพิ่มเติมเพื่อความสวยงาม (UI/UX)
   ========================================= */

/* ทำให้การ์ดเคลื่อนไหวได้นุ่มนวล */
.dashboard-card, .smart-card, .main-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05); /* เส้นขอบบางๆ ให้ดูเป็นกระจก */
}

/* เมื่อเอาเมาส์ชี้ ให้การ์ดลอยขึ้นและมีเงาสีฟ้า */
.dashboard-card:hover, .smart-card:hover, .main-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(17, 168, 183, 0.2); 
    border-color: rgba(17, 168, 183, 0.3);
}

/* เพิ่มเงาใต้รูปไอคอน 3D และทำเอฟเฟกต์เวลาชี้ */
.dashboard-card img, .smart-card-img, .card-icon {
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
}

/* เวลาเอาเมาส์ชี้การ์ด ให้ไอคอนขยายขึ้นนิดๆ และเอียงเล็กน้อยให้ดูมีชีวิตชีวา */
.dashboard-card:hover img, .smart-card:hover img, .main-card:hover .card-icon {
    transform: scale(1.1) rotate(3deg);
}

/* แอนิเมชันตอนเปิดหน้าเว็บ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* เรียกใช้แอนิเมชันกับการ์ดทั้งหมด */
.dashboard-card, .smart-card, .main-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ปรับปุ่มให้ดูมีมิติ */
.btn, .enter-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #0b7380; /* ขอบหนาด้านล่างของปุ่ม (สีเข้มกว่าสีหลัก) */
}

/* เอฟเฟกต์เวลากดปุ่ม (ปุ่มยุบลง) */
.btn:active, .enter-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0b7380;
}
