/* System Design - Executive Weekly Report Dashboard */
/* Color Palette: White, Green, Black, and High Contrast Status Colors */

:root {
  --bg-primary: #f4fbf7; /* Very light greenish white background */
  --bg-card: #ffffff; /* Pure white for cards */
  --text-primary: #0a0f0d; /* High contrast black/near-black */
  --text-secondary: #334e3e; /* Dark green-gray for secondary text */
  
  --color-green-dark: #0b3c25; /* Dark forest green for main headers */
  --color-green-primary: #198754; /* Standard green for success/accents */
  --color-green-light: #d1e7dd; /* Light green background for alerts/badges */
  --color-black: #000000;
  --color-white: #ffffff;
  
  /* 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;

  /* Font settings */
  --font-main: 'Sarabun', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.25s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 18px; /* Large baseline font size */
  padding-bottom: 50px;
}

/* Header & Navigation */
header {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 24px 10%;
  border-bottom: 5px solid var(--color-green-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header-title h1 {
  font-size: 2.2rem; /* Large and clear */
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-white);
}

.header-title h1 span {
  color: var(--color-green-primary);
}

.header-title p {
  color: #a3b899;
  font-size: 1.1rem;
  margin-top: 5px;
}

nav {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background-color: #222;
  color: var(--color-white);
  border: 1px solid #444;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-speed);
}

.nav-btn:hover {
  background-color: #333;
  border-color: var(--color-green-primary);
}

.nav-btn.active {
  background-color: var(--color-green-primary);
  color: var(--color-white);
  border-color: var(--color-green-primary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(10, 15, 13, 0.05);
  border-top: 6px solid var(--color-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--transition-speed);
}

.metric-card:hover {
  transform: translateY(-3px);
}

.metric-info h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-info .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 5px;
}

.metric-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom styles for metric card categories */
.metric-total { border-top-color: var(--color-black); }
.metric-total .metric-icon { background-color: #e9ecef; color: var(--color-black); }

.metric-success { border-top-color: var(--status-success-border); }
.metric-success .metric-icon { background-color: var(--status-success-bg); color: var(--status-success-text); }

.metric-warning { border-top-color: var(--status-warning-border); }
.metric-warning .metric-icon { background-color: var(--status-warning-bg); color: var(--status-warning-text); }

.metric-danger { border-top-color: var(--status-danger-border); }
.metric-danger .metric-icon { background-color: var(--status-danger-bg); color: var(--status-danger-text); }

/* Dashboard layout (Grid with sidebar for charts and filter) */
.dashboard-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
}

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

/* Sidebar Controls */
.sidebar-panel {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(10, 15, 13, 0.05);
  border: 1px solid #e0ede6;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-green-dark);
  border-bottom: 2px solid var(--color-green-light);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter Controls */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.search-input, .select-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
  border-radius: 8px;
  border: 2px solid #ccdcd2;
  background-color: var(--color-white);
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-speed);
}

.search-input:focus, .select-input:focus {
  border-color: var(--color-green-primary);
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin-top: 15px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.report-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(10, 15, 13, 0.05);
  overflow: hidden;
  border: 1px solid #e0ede6;
  border-top: 8px solid var(--color-black); /* Default */
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  cursor: pointer;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(10, 15, 13, 0.1);
}

.report-card.card-success { border-top-color: var(--status-success-border); }
.report-card.card-warning { border-top-color: var(--status-warning-border); }
.report-card.card-danger { border-top-color: var(--status-danger-border); }

.card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafdfb;
  border-bottom: 1px solid #eef6f2;
}

.badge-dept {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.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); }

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-text {
  font-size: 1.15rem; /* Large and clear */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-footer {
  padding: 15px 20px;
  background-color: #fafdfb;
  border-top: 1px solid #eef6f2;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 2px dashed #ccdcd2;
}

.empty-state-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e0ede6;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-speed);
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-meta-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-detail-text {
  font-size: 1.3rem; /* Extra large and readable for managers */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-line;
}

.modal-image-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  max-height: 450px;
  background-color: #f0f0f0;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Admin Panel Forms & Tables */
.admin-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 30px;
}

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

.admin-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(10, 15, 13, 0.05);
  border: 1px solid #e0ede6;
}

.admin-card h2 {
  font-size: 1.5rem;
  color: var(--color-green-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-green-light);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
  border-radius: 8px;
  border: 2px solid #ccdcd2;
  background-color: var(--color-white);
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  border-color: var(--color-green-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Image Upload Simulator Box */
.image-upload-box {
  border: 2px dashed #ccdcd2;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: #fafdfb;
  cursor: pointer;
  transition: border-color var(--transition-speed);
  position: relative;
}

.image-upload-box:hover {
  border-color: var(--color-green-primary);
}

.image-upload-box.has-image {
  border-style: solid;
  border-color: var(--color-green-primary);
}

.upload-preview {
  max-width: 100%;
  max-height: 150px;
  margin-top: 10px;
  border-radius: 4px;
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-speed);
  width: 100%;
}

.btn-primary {
  background-color: var(--color-green-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #146c43;
}

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

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

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

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

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Admin Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #ccdcd2;
}

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

.admin-table th {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 16px;
  font-weight: 700;
  border-bottom: 3px solid var(--color-green-primary);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #ccdcd2;
  background-color: var(--color-white);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #f4fbf7;
}

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

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn.edit { color: var(--color-green-primary); }
.action-btn.edit:hover { background-color: var(--color-green-light); }
.action-btn.delete { color: var(--status-danger-border); }
.action-btn.delete:hover { background-color: var(--status-danger-bg); }

/* Integration Guide Styling */
.guide-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(10, 15, 13, 0.05);
  border: 1px solid #e0ede6;
  margin-bottom: 30px;
}

.guide-card h2 {
  font-size: 1.7rem;
  color: var(--color-green-dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-green-light);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-card h3 {
  font-size: 1.3rem;
  color: var(--color-green-primary);
  margin: 25px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-card p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.guide-step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.step-number {
  min-width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--color-green-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.code-block-wrapper {
  position: relative;
  margin: 15px 0;
}

.code-block-header {
  background-color: #222;
  color: #ccc;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.copy-btn:hover {
  background-color: var(--color-green-primary);
  border-color: var(--color-green-primary);
}

pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow-x: auto;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Alert Boxes in Guide */
.alert-note {
  background-color: var(--status-success-bg);
  border-left: 6px solid var(--status-success-border);
  color: var(--status-success-text);
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  body {
    font-size: 17px; /* Scaled down for tablets */
  }
  
  .header-container {
    padding: 20px 5%;
  }
  
  .header-title h1 {
    font-size: 1.9rem;
  }
  
  .dept-group-title {
    font-size: 1.25rem;
  }
  
  .dept-item-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px; /* Scaled down for smartphones */
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
  
  .header-title h1 {
    font-size: 1.6rem;
  }
  
  nav {
    width: 100%;
  }
  
  .nav-btn {
    flex-grow: 1;
    justify-content: center;
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  
  .btn-row {
    flex-direction: column;
  }

  .dept-group-title {
    font-size: 1.15rem;
  }

  .dept-item {
    flex-direction: column;
    gap: 12px;
  }

  .dept-item-img-wrapper {
    width: 100%;
    height: 160px;
  }
}

/* Image Carousel Styles (Keeping same frame area) */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f0f0;
}

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

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

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

/* Modal Carousel image should contain, not cover */
.modal-image-wrapper .carousel-slide img {
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-speed);
}

.carousel-btn:hover {
  background-color: var(--color-green-primary);
}

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

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

.carousel-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Preview Thumbnail List in Admin Panel */
.preview-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.preview-thumbnail-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #ccdcd2;
}

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

.preview-thumbnail-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Department Grouping Dashboard Layout */
.dept-group-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(10, 15, 13, 0.06);
  overflow: hidden;
  border: 1px solid #e0ede6;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.dept-group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 15, 13, 0.1);
}

/* Priority status border-left */
.dept-group-card.status-success { border-left: 8px solid var(--status-success-border); }
.dept-group-card.status-warning { border-left: 8px solid var(--status-warning-border); }
.dept-group-card.status-danger { border-left: 8px solid var(--status-danger-border); }

.dept-group-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafdfb;
  border-bottom: 2px solid #eef6f2;
}

.dept-group-title {
  font-size: 1.35rem; /* Larger font */
  font-weight: 800;
  color: var(--color-green-dark);
}

.dept-group-summary {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dept-group-body {
  display: flex;
  flex-direction: column;
}

.dept-item {
  padding: 20px 24px;
  border-bottom: 1px solid #eef6f2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.dept-item:last-child {
  border-bottom: none;
}

.dept-item:hover {
  background-color: #f7fcf9;
}

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

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

.dept-item-text {
  font-size: 1.15rem; /* Large and clear */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.dept-item-img-wrapper {
  width: 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #ccdcd2;
  position: relative;
}

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

/* Custom indicator in top-right of thumbnail if multi-image */
.multi-img-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

/* Speech Notes Modal Grid Layout */
.speech-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .speech-notes-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.speech-notes-col {
  background-color: #ffffff;
  border: 1px solid #ccdcd2;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.speech-notes-col.col-success { border-top: 4px solid var(--status-success-border); }
.speech-notes-col.col-warning { border-top: 4px solid var(--status-warning-border); }
.speech-notes-col.col-danger { border-top: 4px solid var(--status-danger-border); }

.speech-notes-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed #ccdcd2;
}

.speech-notes-col.col-success h4 { color: var(--status-success-text); }
.speech-notes-col.col-warning h4 { color: var(--status-warning-text); }
.speech-notes-col.col-danger h4 { color: var(--status-danger-text); }

.speech-notes-col ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speech-notes-col li {
  font-size: 0.95rem; /* Reduced size! */
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding-left: 12px;
}

.speech-notes-col li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-green-primary);
  font-weight: bold;
}

/* Header Nav & Developer Team Branding */
.header-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dev-team-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  flex-direction: row-reverse; /* Cat on the right, text on the left */
}

.dev-team-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: right;
}

.dev-team-thai {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-main);
}

.dev-team-english {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem; /* Secondary priority */
  font-family: var(--font-main);
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .header-nav {
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
  }
  
  .header-buttons-wrapper {
    justify-content: flex-start !important;
  }
  
  .dev-team-container {
    flex-direction: row; /* Cat on the left, text on the right */
  }
  
  .dev-team-text-block {
    text-align: left;
  }
  
  .dev-team-thai {
    font-size: 1.05rem;
  }
  
  .dev-team-english {
    font-size: 0.82rem;
  }
}
