/* Toast */
.colored-toast.swal2-icon-success {
  background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-error {
  background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
  background-color: #0dcaf0 !important;
}

.colored-toast.swal2-icon-question {
  background-color: #87adbd !important;
}

.colored-toast .swal2-title {
  color: white;
}

.colored-toast .swal2-close {
  color: white;
}

.colored-toast .swal2-html-container {
  color: white;
}
/* Toast end */

/* landing page */

.custom-header-img-logo {
  height: 100px;
}

.custom-img-height {
  height: 250px;
}

/* landing page end */

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

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.instruction {
  margin-bottom: 10px;
}

.feedback-section {
  margin-top: 20px;
}

.custom-swal-width {
  width: 600px !important; /* Set a fixed width for corporate consistency */
  max-width: 95%; /* Ensure responsiveness */
}

.form-label {
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.form-control,
.form-select {
  font-size: 14px;
  color: #555;
}

.swal2-popup {
  font-family: "Arial", sans-serif; /* Use a clean font */
  border-radius: 10px; /* Slight rounding for a modern feel */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

table tr td:first-child {
  text-align: left;
}

table thead tr:nth-child(2) th {
  font-weight: normal;
}

th {
  text-align: center;
  vertical-align: middle;
  /* you can also give them a fixed height if you want them all exactly the same height,
       e.g. height: 120px; */
}

/* force the emoji itself to be a block‐level element and center it */
th .emoji {
  display: block;
  margin: 0 auto;
  font-size: 50px;
  line-height: 1; /* ensures no extra gap below the emoji */
}

/*-----------------------------------------------------*/
/* 1) Style for the SQD description cell (first <td>)  */
/*-----------------------------------------------------*/
.sqd‐desc‐cell {
  padding: 0.5rem 1rem; /* vertical + horizontal padding */
  text‐align: left; /* left‐align the text */
  font‐family: Arial, sans‐serif;
  font‐size: 14px;
  line‐height: 1.4;
  border‐bottom: 1px solid #dee2e6; /* optional: a light bottom border */
}

.sqd‐desc‐cell strong {
  font‐weight: 700; /* “SQD0.” in bold */
}

.sqd‐desc‐cell em {
  font‐style: italic; /* the Filipino translation in italics */
  color: #555; /* a slightly darker gray for contrast */
}

/* Datatable page entry text */
div .dt-length .dt-input {
  margin-right: 5px !important;
}

/* Feedback Accordion */
.accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.accordion-item {
  border: none;
  background: white;
}

.accordion-button {
  border: none;
  padding: 1.25rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: all 0.2s ease;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-button::after {
  transition: transform 0.2s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 2rem;
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.form-control,
.form-select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
  color: #1f2937;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.btn-primary {
  background-color: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background-color: #10b981;
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-success:active {
  transform: translateY(0);
}

.filter-icon {
  font-size: 1rem;
  margin-right: 0.75rem;
}

.label-icon {
  font-size: 0.75rem;
  margin-right: 0.5rem;
  color: #6b7280;
}

.form-section {
  margin-bottom: 1.5rem;
}

.button-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 768px) {
  .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }

  .accordion-body {
    padding: 1.5rem;
  }

  .button-section {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-primary,
  .btn-success {
    width: 100%;
  }
}

.filter-header-title {
  display: flex;
  align-items: center;
  margin: 0;
}

.card-clean {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Custom dashboard styling */
.dash-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e8eaf6 100%);
  border-radius: 2rem;
  box-shadow: 0 4px 32px 0 rgba(80, 93, 120, 0.09);
  padding: 2rem 2rem 1.5rem 2rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.25s;
}

.dash-card {
  border-radius: 1.5rem !important;
  box-shadow: 0 2px 14px 0 rgba(64, 74, 104, 0.09);
  background: #fff;
  transition: box-shadow 0.3s, transform 0.15s;
}

.dash-card-header {
  font-size: 1.25rem;
  border-radius: 1.25rem 1.25rem 0 0 !important;
  letter-spacing: 0.03em;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(33, 150, 243, 0.07);
}

.dash-form-label {
  font-weight: 600;
  color: #303744;
  letter-spacing: 0.02em;
}

.dash-select {
  border-radius: 0.8rem;
  border: 1px solid #e0e7ef;
  font-size: 1.05rem;
  transition: border 0.2s;
}
.dash-select:focus {
  border: 1.5px solid #47b5ff;
  box-shadow: 0 0 0 0.15rem #47b5ff21;
}

.dash-input {
  border-radius: 0.8rem;
  border: 1px solid #e0e7ef;
  font-size: 1.05rem;
  padding: 0.45rem 0.75rem;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}

.dash-input:focus {
  border: 1.5px solid #47b5ff;
  box-shadow: 0 0 0 0.15rem #47b5ff21;
}

.dash-counter {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.3rem;
  color: #47b5ff;
  text-shadow: 0 1px 6px rgba(33, 150, 243, 0.09);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
/* .dash-card:hover .dash-counter {
  color: #009e80;
} */

.dash-muted {
  color: #8c94a5 !important;
  font-size: 0.96rem !important;
  margin-top: 0.15rem;
}

@media (max-width: 991px) {
  .dash-section {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 1rem;
  }
  .dash-card,
  .dash-chart-card {
    border-radius: 1rem !important;
  }
}

.dashboard-tabs {
  position: relative;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.dashboard-tabs::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #efefef;
  z-index: 0;
  border-radius: 1px;
}

/* Nav link (tab) styling */
.dashboard-tabs .nav-link {
  position: relative;
  font-weight: 500;
  background: #f4f6fb;
  color: #1e293b;
  padding: 0.85rem 2.5rem 0.7rem 2.5rem;
  border: none;
  border-radius: 1.75rem 1.75rem 0 0;
  font-size: 1.07rem;
  z-index: 1; /* Above the underline */
  margin-bottom: -3px; /* Pull tab down over the underline */
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active tab "breaks" the underline */
.dashboard-tabs .nav-link.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(37, 99, 235, 0.08);
}

/* Icon styling */
.dashboard-tabs .nav-link i {
  font-size: 1.2rem;
}

/* Responsive: stack tabs on mobile */
@media (max-width: 576px) {
  .dashboard-tabs {
    flex-direction: column !important;
    gap: 0.5rem;
  }
  .dashboard-tabs .nav-link {
    width: 100%;
    padding: 0.85rem 1rem 0.7rem 1rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    margin-bottom: 0;
  }
  .dashboard-tabs::after {
    display: none;
  }
}

.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 25px;
  border-radius: 15px;
  color: white;
  margin-bottom: 30px;
  text-align: center;
}

.dash-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dash-card-header {
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
}

.dash-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.dash-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.dash-chart-card {
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
}

.count-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.count-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 5px;
}

.chart-container {
  position: relative;
  height: 350px;
  padding: 10px;
}

.stats-section {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
