.page-container {
  background-image: url('../images/thai-pattern.svg');
  background-repeat: repeat;
  background-size: 200px;
  background-opacity: 0.05;
}

.card {
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(200, 169, 126, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
:root {
  /* สีหลัก - โทนอุ่น */
  --color-primary: #D4A762;
  --color-primary-dark: #B08542;
  --color-secondary: #9B7C59;
  --color-accent: #E9CDA8;
  
  /* สีพื้นหลัง */
  --color-light: #F9F5F0;
  --color-lightest: #FFFCF7;
  
  /* สีข้อความ */
  --color-dark: #4E3E2E;
  --color-muted: #8E7D6A;
  
  /* สีสถานะ */
  --color-success: #7A9B78;
  --color-danger: #C57B70;
}

body {
  color: var(--color-dark);
  background-color: var(--color-lightest);
}

.header-section {
  background: linear-gradient(135deg, #F0E5D3, #FFFBF5);
}
.data-table {
  border: none;
  box-shadow: 0 2px 20px rgba(138, 103, 57, 0.05);
  border-radius: 1rem;
  overflow: hidden;
}

.table-header {
  background: linear-gradient(90deg, rgba(212, 167, 98, 0.1), rgba(212, 167, 98, 0.05));
}

.table-row {
  border-bottom: 1px solid rgba(212, 167, 98, 0.1);
}

.table-row:last-child {
  border-bottom: none;
}
.form-input, .form-select {
  border: 2px solid rgba(212, 167, 98, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 167, 98, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(212, 167, 98, 0.3);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 167, 98, 0.35);
}
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5EFE6, #E9DFC7);
  color: var(--color-primary-dark);
  color: var(--color-primary-dark);
  margin-right: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.status-active {
  background-color: rgba(122, 155, 120, 0.15);
  color: #5C856A;
  border: 1px solid rgba(122, 155, 120, 0.3);
}
.sidebar {
  background: linear-gradient(180deg, #D4A762 0%, #B08542 100%);
}

.sidebar-link {
  border-radius: 0.75rem;
  margin: 0.25rem 0;
  transition: all 0.3s;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 4px solid #FFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.header-section {
  background-image: url('../images/temple-pattern-light.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #D4A762, #B08542);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}
/* เพิ่มอนิเมชันเมื่อโหลดเพจ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-section {
  animation: fadeInUp 0.5s ease-out forwards;
}

.filter-section {
  animation: fadeInUp 0.5s 0.1s ease-out forwards;
  opacity: 0;
}

.data-table {
  animation: fadeInUp 0.5s 0.2s ease-out forwards;
  opacity: 0;
}

/* อนิเมชันสำหรับปุ่มและองค์ประกอบโต้ตอบ */
.btn {
  overflow: hidden;
  position: relative;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.3s;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}
/* การปรับแต่งสำหรับหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
  .page-container {
    padding: 0.5rem;
    
  }
  
  .header-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-title {
    font-size: 1.5rem;
  }
  
  .filter-section .p-6 {
    padding: 1rem;
  }
  
  .data-table {
    border-radius: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* เพิ่มเติมสำหรับ mobile responsive */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
    }
    .responsive-table thead {
        display: none;
    }
    .responsive-table tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #f3f4f6;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border: none;
        min-width: 0;
        font-size: 1rem;
        background: #fff;
    }
    .responsive-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        flex-shrink: 0;
        margin-right: 1rem;
        min-width: 110px;
    }
    .action-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }
    .status-badge {
        font-size: 0.95rem;
        padding: 0.25em 0.7em;
        border-radius: 1em;
        display: inline-block;
        margin-bottom: 0.2em;
    }
    .header-section {
        padding: 1rem 0.5rem;
    }
    .filter-section {
        padding: 1rem 0.5rem;
    }
    .page-container {
        padding: 0.5rem 0.2rem;
    }
}
}

  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@300;400;500;600;700&display=swap');
  
  :root {
    --color-primary: #C8A97E;        /* สีทองอ่อน */
    --color-primary-dark: #A38455;   /* สีทองเข้ม */
    --color-secondary: #8E6F4D;      /* สีน้ำตาล */
    --color-accent: #D4B68F;         /* สีทองนวล */
    --color-light: #F5EFE6;          /* สีครีมอ่อน */
    --color-lightest: #FAF8F4;       /* สีครีมสว่าง */
    --color-dark: #453525;           /* สีน้ำตาลเข้ม */
    --color-success: #7E9F7E;        /* สีเขียวอ่อนนุ่ม */
    --color-danger: #D68F84;         /* สีแดงอ่อนนุ่ม */
    --shadow-sm: 0 2px 8px rgba(138, 103, 57, 0.08);
    --shadow-md: 0 4px 12px rgba(138, 103, 57, 0.12);
    --shadow-lg: 0 8px 24px rgba(138, 103, 57, 0.15);
    --border-radius: 0.75rem;
  }
  
  * {
    font-family: 'Noto Sans Thai', 'Noto Sans Lao', sans-serif;
  }
  
  body {
    background-color: var(--color-lightest);
    color: #5a4631;
  }
  
  .page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
  }
  
  /* สไตล์หัวเรื่อง */
  .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(to right, #f3e9dd, #f5efe6);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(200, 169, 126, 0.2);
  }
  
  .monk-title {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }
  
  /* การ์ดข้อมูล */
  .info-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(200, 169, 126, 0.2);
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  
  .info-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.1);
    background: linear-gradient(to right, rgba(200, 169, 126, 0.08), rgba(212, 182, 143, 0.05));
  }
  
  .info-card-title {
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .info-card-body {
    padding: 1.5rem;
  }
  
  /* รูปภาพพระสงฆ์ */
  .monk-image-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .monk-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .monk-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f3e9dd, #e5d9c8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 4rem;
    border-radius: var(--border-radius);
  }
  
  /* รายละเอียดข้อมูล */
  .info-label {
    display: block;
    font-size: 0.875rem;
    color: #8d7766;
    margin-bottom: 0.25rem;
  }
  
  .info-value {
    font-weight: 500;
    color: #453525;
    margin-bottom: 1rem;
  }
  
  /* ปุ่มกด */
  .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    gap: 0.5rem;
  }
  
  .btn-back {
    background-color: #f0e6d9;
    color: var(--color-secondary);
    box-shadow: 0 2px 4px rgba(162, 132, 85, 0.1);
  }
  
  .btn-back:hover {
    background-color: #e5d9c8;
    transform: translateY(-1px);
  }
  
  .btn-edit {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 2px 4px rgba(162, 132, 85, 0.2);
  }
  
  .btn-edit:hover {
    background: linear-gradient(to bottom right, #d4b68f, #bb9c6a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(162, 132, 85, 0.3);
  }
  
  /* สถานะพระ */
  .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .status-active {
    background-color: rgba(126, 159, 126, 0.15);
    color: #4d7a4d;
    border: 1px solid rgba(126, 159, 126, 0.3);
  }
  
  .status-inactive {
    background-color: rgba(169, 169, 169, 0.15);
    color: #696969;
    border: 1px solid rgba(169, 169, 169, 0.3);
  }
  
  /* ไอคอนการ์ด */
  .icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
  }
  
  .icon-circle.amber {
    background-color: #FEF3C7;
    color: #92400E;
  }
  
  .icon-circle.indigo {
    background-color: #E0E7FF;
    color: #4338CA;
  }
  
  .icon-circle.green {
    background-color: #D1FAE5;
    color: #047857;
  }
  
  .icon-circle.blue {
    background-color: #DBEAFE;
    color: #1D4ED8;
  }
  
  /* ปรับให้รองรับการแสดงผลบนอุปกรณ์พกพา */
  @media (max-width: 768px) {
    .view-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .info-grid {
      grid-template-columns: 1fr !important;
    }
    
    .page-sidebar {
      order: -1; /* แสดงก่อนส่วนเนื้อหาบนมือถือ */
      margin-bottom: 1.5rem;
    }
  }
  
  /* Background pattern */
  .bg-temple-pattern {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTMwIDMwIEwwIDYwIEw2MCA2MCBaIiBmaWxsPSIjQzhhOTdlIi8+PC9zdmc+');
    background-repeat: repeat;
  }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientAnimation 5s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.shadow-lg {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.05), 0 8px 10px -6px rgba(59, 130, 246, 0.01);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
/* เพิ่ม CSS นี้ในส่วน <style> */
.form-grid {
  gap: 16px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23B45309' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.province-select, .temple-select {
  color: #92400E;
  font-weight: 500;
}

@media (max-width: 640px) {
  .filter-section {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  
  .filter-header {
    padding: 0.75rem 1rem;
  }
}

/* ปรับขนาดตัวอักษรใน select option */
.form-select option {
  padding: 8px;
  font-size: 0.95rem;
}