/* --------------------------------------------------
   ZEN Restaurant Training Passport CSS - styles.css
   Modern Premium Design (Glassmorphism & Responsive)
   -------------------------------------------------- */

:root {
  /* Brand Colors */
  --primary-color: #f26f21;      /* ZEN Orange */
  --primary-hover: #d55c16;
  --secondary-color: #2b3647;    /* Charcoal Navy */
  --dark-color: #1a222e;
  --light-color: #f7f9fc;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #2ec4b6;
  --info: #0077b6;
  --warning: #ffb703;
  --danger: #e63946;
  
  /* Text Colors */
  --text-main: #2b3647;
  --text-muted: #6c7a89;
  --text-white: #ffffff;
  
  /* Design Tokens */
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 35px rgba(242, 111, 33, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Sarabun', sans-serif;
  background-color: #f0f3f8;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.brand {
  margin-bottom: 3.5rem;
  padding-left: 0.5rem;
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -0.2rem;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.2rem;
  width: 24px;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-item.active {
  background-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(242, 111, 33, 0.3);
}

.nav-item.active i {
  transform: scale(1.1);
}

.sidebar-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Main Content Area Styling */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background-color: var(--white);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

#current-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
}

#current-page-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-profile .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(242, 111, 33, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.content-body {
  padding: 3rem;
  flex-grow: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Page Section System */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Component */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.card-header {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Dashboard summary cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(242, 111, 33, 0.15);
}

.metric-card.clickable {
  cursor: pointer;
}

.metric-card.clickable:hover {
  border-color: var(--primary-color);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.bg-orange { background-color: rgba(242, 111, 33, 0.1); color: var(--primary-color); }
.bg-blue { background-color: rgba(0, 119, 182, 0.1); color: var(--info); }
.bg-green { background-color: rgba(46, 196, 182, 0.1); color: var(--success); }
.bg-purple { background-color: rgba(142, 68, 173, 0.1); color: #8e44ad; }

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
  margin: 0.2rem 0;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Dashboard Filter card */
.filter-card {
  padding: 1.5rem;
  background-color: var(--white);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Forms controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-control {
  font-family: inherit;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #dcdfe6;
  outline: none;
  font-size: 0.9rem;
  background-color: var(--white);
  transition: var(--transition);
  color: var(--text-main);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(242, 111, 33, 0.15);
}

/* Charts grid styling */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.chart-card {
  background-color: var(--white);
  min-height: 350px;
}

.chart-card.span-2 {
  grid-column: span 2;
}

@media (max-width: 992px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .chart-card.span-2 {
    grid-column: span 1;
  }
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container.tall {
  height: 350px;
}

/* Buttons style */
.btn {
  font-family: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(242, 111, 33, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 111, 33, 0.3);
}

.btn-secondary {
  background-color: #eaedf2;
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #dcdfe6;
  transform: translateY(-2px);
}

.btn-info {
  background-color: var(--info);
  color: var(--text-white);
}

.btn-info:hover {
  background-color: #0096c7;
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: #c92a3a;
  transform: translateY(-2px);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Action Bar (Directory Page) */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border-radius: var(--border-radius-md);
  border: 1px solid #dcdfe6;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(242, 111, 33, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

/* Filter Row styles */
.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-item select {
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  background-color: var(--white);
  border: 1px solid #dcdfe6;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
}

/* Table styles */
.table-card {
  padding: 0;
  overflow: hidden;
  background-color: var(--white);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #ebedf2;
}

.table th {
  background-color: #f7f9fc;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: rgba(242, 111, 33, 0.02);
}

/* Progress bar inside table cell */
.progress-bar-container {
  width: 100%;
  min-width: 100px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #eaedf2;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.progress-fill.success {
  background-color: var(--success);
}

.progress-fill.warning {
  background-color: var(--warning);
}

.progress-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Badge styles */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-light {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.badge-dept {
  background-color: rgba(43, 54, 71, 0.08);
  color: var(--secondary-color);
}

.badge-talent-good {
  background-color: rgba(0, 119, 182, 0.1);
  color: var(--info);
}

.badge-talent-verygood {
  background-color: rgba(142, 68, 173, 0.1);
  color: #8e44ad;
}

.badge-talent-excellence {
  background-color: rgba(242, 111, 33, 0.1);
  color: var(--primary-color);
}

/* Actions cell buttons */
.actions-cell {
  display: flex;
  gap: 0.4rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #eaedf2;
  color: var(--secondary-color);
  transition: var(--transition);
}

.btn-icon:hover {
  transform: translateY(-2px);
}

.btn-icon-primary:hover { background-color: var(--primary-color); color: var(--white); }
.btn-icon-danger:hover { background-color: var(--danger); color: var(--white); }
.btn-icon-success:hover { background-color: var(--success); color: var(--white); }

/* Empty state styling */
.empty-state {
  padding: 3rem;
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 34, 46, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal layout */
.modal {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 680px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-backdrop.open .modal {
  transform: scale(1);
}

.modal.modal-sm {
  max-width: 480px;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #ebedf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid #ebedf2;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: #f7f9fc;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .col-8 { flex: 2; }
.form-row .col-4 { flex: 1; }
.form-row .col-6 { flex: 1; }

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Employee profile header in Passport Detail */
.profile-header-card {
  background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
  color: var(--text-white);
  border: none;
}

.profile-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .profile-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.profile-avatar-container {
  position: relative;
}

.profile-main-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.15);
}

.profile-badge {
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .profile-title-row {
    justify-content: center;
  }
}

.profile-title-row h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  font-size: 0.88rem;
}

@media (max-width: 576px) {
  .profile-meta-grid {
    grid-template-columns: 1fr;
  }
}

.profile-meta-grid div {
  color: rgba(255, 255, 255, 0.7);
}

.profile-meta-grid div strong {
  color: var(--white);
}

/* Radial / Circular Progress in profile header */
.progress-radial-container {
  background-color: rgba(255, 255, 255, 0.08);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary-color);
}

.progress-radial-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.progress-radial-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Individual Dashboard & Passport Roadmap Map Layout */
.roadmap-card {
  padding: 1.5rem 2rem;
  background-color: var(--white);
}

.roadmap-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1.5rem 0;
}

.roadmap-flex-container::before {
  content: '';
  position: absolute;
  height: 4px;
  background-color: #eaedf2;
  left: 40px;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 900px) {
  .roadmap-flex-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }
  .roadmap-flex-container::before {
    width: 4px;
    height: 80%;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
  }
}

.roadmap-node {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition);
}

.roadmap-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--white);
  border: 4px solid #dcdfe6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.roadmap-node:hover .roadmap-circle {
  transform: scale(1.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.roadmap-node.active .roadmap-circle {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 15px rgba(242, 111, 33, 0.4);
}

.roadmap-node.completed .roadmap-circle {
  border-color: var(--success);
  background-color: var(--success);
  color: var(--white);
  box-shadow: 0 0 15px rgba(46, 196, 182, 0.3);
}

.roadmap-circle i {
  font-size: 0.9rem;
}

.roadmap-node-title {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  width: 120px;
  line-height: 1.2;
}

.roadmap-node.active .roadmap-node-title,
.roadmap-node.completed .roadmap-node-title {
  color: var(--secondary-color);
}

/* Grid for main Passport evaluation page */
.grid-passport-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-passport-main {
    grid-template-columns: 1fr;
  }
}

.grid-passport-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Checklist checkbox list */
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  background-color: #f8fafc;
  border: 1px solid #ebedf2;
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.checkbox-custom {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background-color: var(--white);
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-item input {
  display: none;
}

.checklist-item input:checked + .checkbox-custom {
  border-color: var(--success);
  background-color: var(--success);
}

.checklist-item input:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--white);
  font-size: 0.65rem;
}

.checklist-text {
  font-size: 0.88rem;
  color: var(--text-main);
  user-select: none;
}

.checklist-item input:checked ~ .checklist-text {
  color: var(--success);
  text-decoration: none;
}

/* Language toggle styling */
.language-toggle-wrapper {
  background-color: #f0f3f8;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-group {
  display: flex;
}

.btn-group .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--border-radius-sm);
  border-bottom-left-radius: var(--border-radius-sm);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--border-radius-sm);
  border-bottom-right-radius: var(--border-radius-sm);
}

.btn-group .btn.active {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Evaluation sign off grid */
.sign-off-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .sign-off-grid {
    grid-template-columns: 1fr;
  }
}

.radio-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.radio-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

/* Management 21 topics checklist box */
.management-topics-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.mgmt-topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background-color: #f8fafc;
  border: 1px solid #ebedf2;
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.mgmt-topic-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.mgmt-topic-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 80%;
}

.mgmt-topic-title {
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-topic-target {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgmt-topic-status-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eaedf2;
  color: var(--text-muted);
}

.mgmt-topic-item.completed {
  border-color: rgba(46, 196, 182, 0.2);
  background-color: rgba(46, 196, 182, 0.03);
}

.mgmt-topic-item.completed .mgmt-topic-status-badge {
  background-color: var(--success);
  color: var(--white);
}

.mgmt-topic-item.completed .mgmt-topic-title {
  text-decoration: none;
  color: var(--success);
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 1rem 1.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { background-color: var(--success); }
.toast.error { background-color: var(--danger); }
.toast.info { background-color: var(--info); }

/* Burmese Dictionary styles */
.dictionary-list-container {
  max-height: 480px;
  overflow-y: auto;
}

.dictionary-list-container table {
  width: 100%;
}

.dictionary-list-container th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Individual progress timeline (Roadmap under individual section) */
.roadmap-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1rem 0;
  margin-top: 1rem;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  height: 2px;
  background-color: #e2e8f0;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.timeline-node.completed .timeline-circle {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.timeline-node.active .timeline-circle {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.timeline-label {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.timeline-node.completed .timeline-label {
  color: var(--success);
}

/* Donut gauge styling */
.gauge-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-percentage {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

.gauge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.indiv-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .indiv-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.indiv-chart-box {
  text-align: center;
}

.select-search-container select {
  max-width: 400px;
}

.hidden {
  display: none !important;
}

/* Helpers */
.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.text-orange { color: var(--primary-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.font-weight-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* PRINT STYLES */
@media print {
  body {
    background-color: var(--white);
    color: #000;
    font-size: 12pt;
  }
  
  .sidebar, .top-bar, .action-bar, .roadmap-card, .btn, .btn-group, #kitchen-lang-toggle-box, .modal-backdrop, .toast {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .content-body {
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .profile-header-card {
    background: none !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
  }
  
  .profile-header-grid {
    grid-template-columns: 1fr auto !important;
  }
  
  .profile-avatar-container {
    display: none !important;
  }
  
  .profile-title-row h2 {
    color: #000 !important;
  }
  
  .profile-badge {
    position: static !important;
    transform: none !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    background: none !important;
  }
  
  .profile-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .profile-meta-grid div {
    color: #000 !important;
  }
  
  .profile-meta-grid div strong {
    color: #000 !important;
  }
  
  .progress-radial-container {
    border-color: #000 !important;
    color: #000 !important;
  }
  
  .progress-radial-label {
    color: #000 !important;
  }
  
  .grid-passport-main {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  
  .step-detail-card {
    border: 1px solid #000 !important;
    page-break-after: always;
    margin-bottom: 30px !important;
  }
  
  .step-detail-card .card-header {
    background: none !important;
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }
  
  .step-detail-card .card-header h3 {
    color: #000 !important;
  }
  
  .checklist-item {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    padding: 5px 0 !important;
  }
  
  .checkbox-custom {
    border-color: #000 !important;
  }
  
  .checklist-item input:checked + .checkbox-custom::after {
    color: #000 !important;
  }
  
  .sign-off-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    border-top: 1px solid #000 !important;
    padding-top: 15px !important;
  }
  
  .card-kitchen-skills, .card {
    border: 1px solid #000 !important;
    background: none !important;
    box-shadow: none !important;
  }
}

/* Authentication Screen CSS Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, #2b3647 0%, #1a222e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
  transition: var(--transition);
}

.auth-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  max-width: 460px;
  width: 90%;
  animation: authFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-brand {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-brand .logo {
  font-size: 2.5rem;
}

.auth-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card p {
  text-align: center;
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.auth-switch {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.auth-switch a {
  cursor: pointer;
  transition: var(--transition);
}

.auth-switch a:hover {
  color: var(--primary-hover);
}

/* User management labels */
.status-badge-approved {
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--success);
  font-weight: 700;
}

.status-badge-pending {
  background-color: rgba(255, 183, 3, 0.1);
  color: var(--warning);
  font-weight: 700;
}
