/* FixOps CSS Stylesheet - Minimalist Modern Theme */

:root {
  /* Design Tokens */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --color-purple: #8b5cf6;
  --color-cyan: #06b6d4;
  --color-green: #10b981;
  --color-rose: #f43f5e;
  
  /* Status Colors */
  --status-success-bg: #d1e7dd;
  --status-success-text: #0f5132;
  --status-success-border: #198754;

  --status-warning-bg: #fff3cd;
  --status-warning-text: #664d03;
  --status-warning-border: #ffc107;

  --status-danger-bg: #f8d7da;
  --status-danger-text: #842029;
  --status-danger-border: #dc3545;

  --status-info-bg: #e0f2fe;
  --status-info-text: #0369a1;
  --status-info-border: #0ea5e9;

  --font-main: 'Sarabun', 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Slim Vertical Sidebar (Fixed/Pinned Left) */
.sidebar {
  width: 100px;
  background-color: #0f172a;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
  width: 120px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.brand-logo-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  margin-bottom: 8px;
}

.brand-logo-wrapper i {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.sidebar-nav-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 12px 6px;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sidebar-nav-btn i {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.sidebar-nav-btn .nav-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.sidebar-nav-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-btn:hover i {
  transform: translateY(-2px);
}

.sidebar-nav-btn.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
  margin-top: auto;
  width: 100%;
}

.footer-settings-btn {
  color: #64748b;
}

.footer-settings-btn:hover {
  color: #ffffff;
}

/* Main Content Area */
.main-content {
  margin-left: 100px;
  flex-grow: 1;
  min-height: 100vh;
  padding: 20px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover ~ .main-content {
  margin-left: 120px;
}

/* Sticky Warning Bar */
.demo-notification-bar {
  background-color: #fef08a;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-title-area h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.dev-team-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
}

.dev-team-container.highlight-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dev-team-container.highlight-badge .dev-team-thai {
  color: #ffffff;
  font-weight: 800;
}

.dev-team-container.highlight-badge .dev-team-english {
  color: #94a3b8;
  font-weight: 700;
}

.dev-team-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-green);
}

.dev-team-text-block {
  display: flex;
  flex-direction: column;
}

.dev-team-thai {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dev-team-english {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tabs & Containers */
.container-fluid {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* White Panel Wrapper */
.white-panel {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

/* Dashboard Grid Layout (2 columns: Left stats/filters, Right main tickets area) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

/* Left Panel Elements (Sidebar style) */
.left-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-panel.compact {
  padding: 16px 20px;
}

.filter-inputs-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-panel.compact {
  padding: 16px 20px;
}

/* Right Panel Elements (Main workspace style) */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.week-selector-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-icon-badge {
  width: 44px;
  height: 44px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.calendar-icon-badge i {
  width: 20px;
  height: 20px;
}

.week-title-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.week-range-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.week-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-notes {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-notes:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-muted);
}

.week-stepper {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 4px;
}

.step-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.step-btn:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.week-select {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 10px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

/* Metric Cards Layout (Pastel Minimalist) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.minimal-metric-card {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 105px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.minimal-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-meta-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.card-value-wrapper {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}

.card-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-subtext {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.8;
}

.card-graphic-decor {
  position: absolute;
  bottom: -6px;
  right: -6px;
  pointer-events: none;
}

.card-graphic-decor i {
  width: 36px;
  height: 36px;
}

/* Decorative Mini Bar Chart in Cyan card */
.mini-chart-decorator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 40px;
  height: 20px;
  pointer-events: none;
}

.mini-bar {
  flex-grow: 1;
  background-color: var(--color-cyan);
  border-radius: 1.5px;
  opacity: 0.45;
}

/* Pastel Theme Colors */
.purple-pastel {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  color: #581c87;
}
.cyan-pastel {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border: 1px solid #a5f3fc;
  color: #083344;
}
.green-pastel {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  color: #064e3b;
}
.rose-pastel {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
  border: 1px solid #ffd0d0;
  color: #7f1d1d;
}

/* Decorative Mini Bar Chart in Cyan card */
.mini-chart-decorator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 50px;
  height: 30px;
  pointer-events: none;
}

.mini-bar {
  flex-grow: 1;
  background-color: var(--color-cyan);
  border-radius: 2px;
  opacity: 0.4;
}

/* Controls & Charts Row */
.controls-charts-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
}

.panel-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-control:focus {
  border-color: var(--text-muted);
  background-color: var(--bg-card);
}

.chart-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-chart-container {
  position: relative;
  width: 100%;
  height: 180px;
}

/* Ticket Cards List Header & List */

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tickets-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tickets-list-vertical {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

/* Slim Custom Scrollbar */
.tickets-list-vertical::-webkit-scrollbar {
  width: 5px;
}

.tickets-list-vertical::-webkit-scrollbar-track {
  background: transparent;
}

.tickets-list-vertical::-webkit-scrollbar-thumb {
  background: var(--color-slate-200);
  border-radius: 4px;
}

/* Ticket Cards Item style */
.dept-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  min-height: 220px;
}

.dept-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--text-muted);
}

.dept-item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.badge-status {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
}

.badge-success { background-color: var(--status-success-bg); color: var(--status-success-text); }
.badge-warning { background-color: var(--status-warning-bg); color: var(--status-warning-text); }
.badge-danger { background-color: var(--status-danger-bg); color: var(--status-danger-text); }
.badge-info { background-color: var(--status-info-bg); color: var(--status-info-text); }

.dept-item-reporter {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dept-item-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.dept-item-img-wrapper {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  flex-shrink: 0;
}

.dept-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-img-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Admin Tab Grid Layout */
.admin-layout-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}

.admin-checkboxes-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
  max-height: 160px;
  overflow-y: auto;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-slider {
  flex-grow: 1;
  cursor: pointer;
}

.slider-display-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-green);
  min-width: 60px;
}

.image-source-radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.image-source-radio-group input {
  margin-right: 4px;
  cursor: pointer;
}

.image-upload-box {
  border: 2px dashed var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-box:hover {
  border-color: var(--text-muted);
}

.upload-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.preview-thumbnail-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.preview-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumbnail-remove {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(244, 63, 94, 0.85);
  color: #ffffff;
  border: none;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 4px;
}

.form-buttons-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.btn {
  font-family: var(--font-main);
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1e293b;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

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

.btn-danger:hover {
  background-color: #fca5a5;
}

/* Admin Table styles */
.admin-table-card {
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 25px;
}

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

.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-table tbody tr:hover {
  background-color: var(--bg-primary);
}

.action-btn-group {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.action-btn.edit {
  color: var(--color-purple);
}

.action-btn.edit:hover {
  background-color: #f3e8ff;
}

.action-btn.delete {
  color: var(--color-rose);
}

.action-btn.delete:hover {
  background-color: #ffe4e6;
}

.admin-action-footer {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

/* Guide Tab Layout */
.guide-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

.guide-header-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.guide-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.guide-header-badge h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.guide-header-badge .subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.guide-content-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.quote-box {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--text-primary);
  padding: 12px 18px;
  font-style: italic;
  font-weight: 700;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 15px 0;
  color: var(--text-primary);
}

.guide-kpi-description-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-group {
  margin-bottom: 20px;
}

.kpi-group strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.kpi-group ul {
  list-style: none;
  padding-left: 15px;
  margin-top: 8px;
}

.kpi-group li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  margin-bottom: 4px;
}

.kpi-group li::before {
  content: "•";
  color: var(--color-green);
  font-weight: bold;
  position: absolute;
  left: -12px;
}

.code-box-wrapper {
  background-color: #0f172a;
  color: #38bdf8;
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 15px 0 25px 0;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.step-guide-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  width: 28px;
  height: 28px;
  background-color: var(--text-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-info {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.step-info strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.guide-contact-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Modals Overlay & Content */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

#detail-modal {
  z-index: 2500;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 580px;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge-dept {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-meta-pill {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.score-pill {
  color: var(--color-green);
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.modal-checklist-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-detail-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  padding: 16px;
  border-radius: var(--radius-md);
  white-space: pre-wrap;
}

.modal-image-wrapper {
  margin-top: 15px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-date-footer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Image Carousel Styles inside Modal */
.carousel-container {
  position: relative;
  width: 100%;
  height: 260px;
  background-color: #0f172a;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(15, 23, 42, 0.85);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Speech Notes Modal */
.speech-modal-content {
  width: 900px;
  max-width: 95%;
}

.executive-notes-textarea {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 20px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-height: 60vh;
  overflow-y: auto;
}

.speech-notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

.speech-notes-col {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.speech-notes-col h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.speech-notes-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.summary-item-click {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.summary-item-click:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
  transform: translateX(4px);
  box-shadow: var(--shadow-subtle);
}

.summary-item-category {
  font-weight: 700;
  color: var(--color-indigo);
  font-size: 0.82rem;
}

.summary-item-desc {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.summary-item-score {
  font-size: 0.82rem;
  color: #3b82f6;
  font-weight: bold;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

.col-success { border-top: 4px solid var(--status-success-border); }
.col-success h4 { color: var(--status-success-text); }
.col-warning { border-top: 4px solid var(--status-warning-border); }
.col-warning h4 { color: var(--status-warning-text); }
.col-danger { border-top: 4px solid var(--status-danger-border); }
.col-danger h4 { color: var(--status-danger-text); }

.speech-modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Styles for Mobile & Tablets (Lock/Pinned navigation bottom) */
@media (max-width: 1024px) {
  .sidebar {
    width: 100% !important;
    height: 70px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 0 10px;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .sidebar:hover {
    width: 100% !important;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .sidebar-nav-btn {
    padding: 8px 16px;
    width: auto;
    gap: 4px;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 15px 20px 90px 20px !important;
  }

  .sidebar:hover ~ .main-content {
    margin-left: 0 !important;
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .left-panel {
    order: 2;
  }

  .right-panel {
    order: 1;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .controls-charts-row {
    grid-template-columns: 1fr;
  }

  .admin-layout-grid {
    grid-template-columns: 1fr;
  }

  .guide-layout-grid {
    grid-template-columns: 1fr;
  }

  .tickets-list-vertical {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-inputs-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .dev-team-container {
    width: 100%;
  }

  .week-selector-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .week-controls-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .tickets-list-vertical {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Lightbox Overlay for Image Zoom */
.lightbox-overlay {
  background-color: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #94a3b8;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 3100;
  transition: color 0.2s ease;
}

.close-lightbox:hover {
  color: #ffffff;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-container {
  flex-grow: 1;
  width: 100%;
  height: calc(100% - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.lightbox-img-container:active {
  cursor: grabbing;
}

#lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  pointer-events: auto;
  transition: transform 0.15s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-controls {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(15, 23, 42, 0.85);
  padding: 8px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 3100;
  margin-top: 10px;
}

.lightbox-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.lightbox-btn i {
  width: 20px;
  height: 20px;
}

/* End of FixOps Stylesheet */

