/* ============================================================
   TUH MICROBIOLOGY - K-MINIMAL DESIGN SYSTEM
   Korean Minimalist Pastel Palette:
   - Primary Deep Plum / Purple: #6c5070
   - Accent Warm Coral / Pink: #df6a6a
   - Soft Sage / Pastel Green: #c2dbc1
   - Pastel Gold / Yellow: #f9d56e
   - Porcelain Cream Surface: #faf7f5
   Typography: 'Noto Sans Thai', sans-serif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap');

:root {
  /* K-Minimal Pastel Palette */
  --k-primary: #6c5070;
  --k-primary-light: #8d7092;
  --k-primary-subtle: #f5eff6;
  --k-primary-border: #e6dae8;

  --k-coral: #df6a6a;
  --k-coral-light: #f59595;
  --k-coral-subtle: #fdf0f0;
  --k-coral-border: #f9d2d2;

  --k-sage: #c2dbc1;
  --k-sage-dark: #638c62;
  --k-sage-subtle: #f2f8f2;
  --k-sage-border: #dbe9da;

  --k-gold: #f9d56e;
  --k-gold-dark: #b8860b;
  --k-gold-subtle: #fefaf0;

  /* Surfaces & Backgrounds */
  --bg-app: #faf7f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8f5f8;

  /* Typography */
  --text-main: #342838;
  --text-muted: #78687e;
  --text-light: #a494aa;

  /* Curves & Shadows */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 20px -2px rgba(108, 80, 112, 0.06);
  --shadow-card: 0 10px 30px -4px rgba(108, 80, 112, 0.08);
  --shadow-hover: 0 16px 36px -6px rgba(108, 80, 112, 0.12);
}

body {
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #faf7f5;
}
::-webkit-scrollbar-thumb {
  background: #d8ccd9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6c5070;
}

/* K-Minimal Card & Button Utility Styles */
.k-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(108, 80, 112, 0.08);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.k-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 80, 112, 0.18);
}

.k-btn-primary {
  background-color: #6c5070;
  color: #ffffff;
  border-radius: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 14px rgba(108, 80, 112, 0.25);
  transition: all 0.2s ease;
}
.k-btn-primary:hover {
  background-color: #583f5c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 80, 112, 0.32);
}

.k-btn-coral {
  background-color: #df6a6a;
  color: #ffffff;
  border-radius: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 14px rgba(223, 106, 106, 0.25);
  transition: all 0.2s ease;
}
.k-btn-coral:hover {
  background-color: #c95656;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(223, 106, 106, 0.32);
}

.k-btn-sage {
  background-color: #c2dbc1;
  color: #2c442b;
  border-radius: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
}
.k-btn-sage:hover {
  background-color: #aed1ad;
  transform: translateY(-1px);
}

/* Sidebar Nav Pill Styles */
.k-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #78687e;
  transition: all 0.2s ease;
}
.k-nav-item:hover {
  background-color: #f5eff6;
  color: #6c5070;
  transform: translateX(3px);
}
.k-nav-item.active {
  background-color: #6c5070;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(108, 80, 112, 0.25);
}
.k-nav-item.active i {
  color: #f9d56e;
}

/* SweetAlert2 K-Minimal Custom Theme */
.swal2-popup.k-swal {
  border-radius: 1.75rem !important;
  font-family: 'Noto Sans Thai', sans-serif !important;
  padding: 1.75rem !important;
  box-shadow: 0 20px 50px rgba(108, 80, 112, 0.15) !important;
  border: 1px solid rgba(108, 80, 112, 0.1) !important;
}
.swal2-title {
  color: #342838 !important;
  font-family: 'Noto Sans Thai', sans-serif !important;
  font-weight: 700 !important;
}
.swal2-styled.swal2-confirm {
  border-radius: 0.875rem !important;
  font-weight: 700 !important;
  background-color: #6c5070 !important;
  box-shadow: 0 4px 14px rgba(108, 80, 112, 0.25) !important;
}
.swal2-styled.swal2-cancel {
  border-radius: 0.875rem !important;
  font-weight: 600 !important;
  background-color: #f3ecf4 !important;
  color: #6c5070 !important;
}
