/* Design Guidelines
   Modifier stylesheet layered on top of Bootstrap 5 (loaded first in index.html).
   Component styles below (colors, spacing, radii, shadows) come from Figma
   Dev Mode (node-id 1-3 / 12-65) and override Bootstrap's defaults for the
   same class names where they intentionally match (.btn, .btn-primary, etc.) */

:root {
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Primary */
  --primary: #8085D6;
  --primary-light: #C4C7ED;
  --primary-light-text: #262C92;
  --primary-dark: #262C92;

  /* Success */
  --success: #238554;
  --success-light: #ABE3C7;
  --success-light-text: #155B38;
  --success-dark: #155B38;

  /* Warning */
  --warning: #EAAB3E;
  --warning-text: #4A3005;
  --warning-light: #F1DAB1;
  --warning-light-text: #7B510A;
  --warning-dark: #7B510A;

  /* Danger */
  --danger: #C43136;
  --danger-light: #E8B0B2;
  --danger-light-text: #7E1B1E;
  --danger-dark: #7E1B1E;

  /* Secondary */
  --secondary: #606380;
  --secondary-light: #C5C6D3;
  --secondary-light-text: #38394D;
  --secondary-dark: #38394D;

  --page-bg: #F5F5F7;
  --card-bg: #FFFFFF;
  --text-heading: #18181B;
  --text-muted: #71717A;

  /* Inputs */
  --input-border: #CED4DA;
  --input-placeholder: #5C636A;
  --input-label: #1E2229;
  --checkbox-label: #5C636A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--page-bg);
  color: var(--text-heading);
}

.app-shell {
  display: flex;
  align-items: flex-start;
}

.page {
  flex: 1;
  min-width: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Section (matches "Buttons" Figma frame) */
.section {
  margin-bottom: 48px;
  scroll-margin-top: 76px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.section-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 60px;
  gap: 20px;

  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 45px;
}

/* Base button */
.btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 18px;

  border: none;
  border-radius: 6px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);

  font-family: var(--font-base);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-icon {
  padding: 8px;
  width: 33px;
  height: 33px;
}

/* Color variants.
   Bootstrap's .btn reads background/border/color from --bs-btn-* custom
   properties (including on :hover/:active/.show), so we override those
   properties themselves rather than background/color directly — a plain
   background-color rule loses to Bootstrap's own compound hover/active
   selectors on specificity. */
.btn.btn-primary,
.btn.btn-primary-light,
.btn.btn-primary-dark,
.btn.btn-success,
.btn.btn-success-light,
.btn.btn-success-dark,
.btn.btn-warning,
.btn.btn-warning-light,
.btn.btn-warning-dark,
.btn.btn-danger,
.btn.btn-danger-light,
.btn.btn-danger-dark,
.btn.btn-secondary,
.btn.btn-secondary-light,
.btn.btn-secondary-dark {
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  --bs-btn-hover-border-color: var(--bs-btn-border-color);
  --bs-btn-active-color: var(--bs-btn-color);
  --bs-btn-active-bg: var(--bs-btn-bg);
  --bs-btn-active-border-color: var(--bs-btn-border-color);
  --bs-btn-disabled-color: var(--bs-btn-color);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: var(--bs-btn-border-color);
  --bs-btn-active-shadow: none;
}

/* Primary */
.btn.btn-primary       { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--primary);       --bs-btn-border-color: var(--primary); }
.btn.btn-primary-light { --bs-btn-color: var(--primary-light-text); --bs-btn-bg: var(--primary-light); --bs-btn-border-color: var(--primary-light); }
.btn.btn-primary-dark  { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--primary-dark);  --bs-btn-border-color: var(--primary-dark); }

/* Success */
.btn.btn-success       { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--success);       --bs-btn-border-color: var(--success); }
.btn.btn-success-light { --bs-btn-color: var(--success-light-text); --bs-btn-bg: var(--success-light); --bs-btn-border-color: var(--success-light); }
.btn.btn-success-dark  { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--success-dark);  --bs-btn-border-color: var(--success-dark); }

/* Warning */
.btn.btn-warning       { --bs-btn-color: var(--warning-text);  --bs-btn-bg: var(--warning);       --bs-btn-border-color: var(--warning); }
.btn.btn-warning-light { --bs-btn-color: var(--warning-light-text); --bs-btn-bg: var(--warning-light); --bs-btn-border-color: var(--warning-light); }
.btn.btn-warning-dark  { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--warning-dark);  --bs-btn-border-color: var(--warning-dark); }

/* Danger */
.btn.btn-danger        { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--danger);        --bs-btn-border-color: var(--danger); }
.btn.btn-danger-light  { --bs-btn-color: var(--danger-light-text); --bs-btn-bg: var(--danger-light); --bs-btn-border-color: var(--danger-light); }
.btn.btn-danger-dark   { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--danger-dark);   --bs-btn-border-color: var(--danger-dark); }

/* Secondary */
.btn.btn-secondary       { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--secondary);       --bs-btn-border-color: var(--secondary); }
.btn.btn-secondary-light { --bs-btn-color: var(--secondary-light-text); --bs-btn-bg: var(--secondary-light); --bs-btn-border-color: var(--secondary-light); }
.btn.btn-secondary-dark  { --bs-btn-color: #FFFFFF;              --bs-btn-bg: var(--secondary-dark);  --bs-btn-border-color: var(--secondary-dark); }

.btn.btn-primary,
.btn.btn-primary-light,
.btn.btn-primary-dark,
.btn.btn-success,
.btn.btn-success-light,
.btn.btn-success-dark,
.btn.btn-warning,
.btn.btn-warning-light,
.btn.btn-warning-dark,
.btn.btn-danger,
.btn.btn-danger-light,
.btn.btn-danger-dark,
.btn.btn-secondary,
.btn.btn-secondary-light,
.btn.btn-secondary-dark {
  background-color: var(--bs-btn-bg);
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:active {
  filter: brightness(0.9);
}

/* Button sizes */
.btn.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  line-height: 15px;
  border-radius: 4px;
}

.btn.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  line-height: 20px;
  border-radius: 8px;
}

/* Inputs */
.input-field {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;

  width: 320px;
  height: 33px;

  background: #FFFFFF;
  border: 1px solid var(--input-border);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 6px 8px 8px 6px;

  font-family: var(--font-base);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: var(--input-placeholder);
}

.input-field::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.input-field {
  height: auto;
  min-height: 96px;
  align-items: flex-start;
  resize: vertical;
  line-height: 1.5;
}

/* Input sizes */
.input-field.form-control-lg {
  padding: 12px 14px;
  height: 44px;
  font-size: 16px;
  line-height: 20px;
  border-radius: 8px 10px 10px 8px;
}

.input-field.form-control-sm {
  padding: 4px 8px;
  height: 28px;
  font-size: 12px;
  line-height: 15px;
  border-radius: 4px 6px 6px 4px;
}

.input-with-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 320px;
}

.input-label {
  font-family: var(--font-base);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: var(--input-label);
}

.input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 320px;
  height: 33px;
}

.input-group .input-field {
  flex: 1;
  width: auto;
  border-radius: 6px 0px 0px 6px;
}

.input-group .btn {
  border-radius: 0px 6px 6px 0px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-square {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;

  background: #FFFFFF;
  border: 1.5px solid var(--input-border);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
}

.checkbox-square:checked {
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--primary);
}

.checkbox-label {
  font-family: var(--font-base);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: var(--checkbox-label);
}

/* Radio */
.radio-circle {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;

  background: #FFFFFF;
  border: 1.5px solid var(--input-border);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.radio-circle:checked {
  border-color: var(--primary);
  background: #FFFFFF radial-gradient(circle, var(--primary) 0 5px, transparent 6px) center/16px no-repeat;
}

.radio-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

/* Dropdown (Bootstrap component, restyled) */
.dropdown-menu {
  margin-top: 8px !important;
  padding: 8px;
  min-width: 200px;

  font-family: var(--font-base);
  font-size: 14px;

  background: #FFFFFF;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text-heading);
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--primary);
  color: #FFFFFF;
}

.dropdown-divider {
  margin: 8px 0;
  border-top-color: var(--input-border);
}

/* Select2 (restyled to match the input-field look) */
.select2-container--default .select2-selection--single {
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 14px;

  background: #FFFFFF;
  border: 1px solid var(--input-border);
  border-radius: 6px 8px 8px 6px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 17px;
  color: var(--input-placeholder);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 31px;
  right: 10px;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary);
}

.select2-dropdown {
  font-family: var(--font-base);
  font-size: 14px;
  border-color: var(--input-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown .select2-search__field {
  padding: 6px 10px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  outline: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--primary);
  color: #FFFFFF;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Normal select */
.select-field {
  box-sizing: border-box;
  display: block;
  width: 320px;
  height: 33px;
  padding: 8px 34px 8px 12px;

  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235C636A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px;
  border: 1px solid var(--input-border);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 6px 8px 8px 6px;

  font-family: var(--font-base);
  font-size: 14px;
  line-height: 17px;
  color: var(--input-placeholder);

  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-field:focus {
  outline: none;
  border-color: var(--primary);
}

/* Switch */
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 22px;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--input-border);
  border-radius: 999px;
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease;
  cursor: pointer;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.switch-input:checked + .slider {
  background: var(--primary);
}

.switch-input:checked + .slider::before {
  transform: translateX(18px);
}

.switch-input:focus-visible + .slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Progress bar */
.progress {
  width: 320px;
  height: 8px;
  background: var(--input-border);
  border-radius: 999px;
  box-shadow: none;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary);
}

.progress-bar.bg-success { background-color: var(--success) !important; }
.progress-bar.bg-warning { background-color: var(--warning) !important; }
.progress-bar.bg-danger  { background-color: var(--danger)  !important; }

.progress-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Accordion */
.accordion {
  width: 100%;
  max-width: 440px;
}

.accordion-item {
  border: 1px solid var(--input-border);
  border-radius: 8px !important;
  overflow: hidden;
  margin-bottom: 8px;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-button {
  padding: 14px 18px;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
  background: #FFFFFF;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--input-border);
}

.accordion-body {
  padding: 14px 18px;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Alert */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
}

.alert-primary   { background: var(--primary-light);   color: var(--primary-light-text); }
.alert-success   { background: var(--success-light);   color: var(--success-light-text); }
.alert-warning   { background: var(--warning-light);   color: var(--warning-light-text); }
.alert-danger    { background: var(--danger-light);    color: var(--danger-light-text); }

.alert .btn-close {
  margin-left: auto;
  box-shadow: none;
  padding: 0.85rem 1rem;
}

/* Alert with title + description */
.alert-with-description {
  align-items: flex-start;
  padding: 12px 14px;
}

.alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-heading {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.alert-description {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;

  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
}

.badge-primary       { background: var(--primary);        color: #FFFFFF; }
.badge-primary-light { background: var(--primary-light);  color: var(--primary-light-text); }
.badge-success        { background: var(--success);        color: #FFFFFF; }
.badge-success-light { background: var(--success-light);  color: var(--success-light-text); }
.badge-warning        { background: var(--warning);        color: var(--warning-text); }
.badge-warning-light { background: var(--warning-light);  color: var(--warning-light-text); }
.badge-danger         { background: var(--danger);         color: #FFFFFF; }
.badge-danger-light  { background: var(--danger-light);   color: var(--danger-light-text); }
.badge-secondary      { background: var(--secondary);      color: #FFFFFF; }
.badge-secondary-light { background: var(--secondary-light); color: var(--secondary-light-text); }

.badge-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Breadcrumb */
.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;

  font-family: var(--font-base);
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-heading);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-family: var(--font-base);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--input-border);
}

.modal-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-heading);
}

.modal-body {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--input-border);
}

.modal-footer .btn {
  margin: 0;
}

/* Bootstrap has sm/default/lg/xl — "xs" is a custom addition, same width as sm */
.modal-dialog.modal-xs {
  max-width: 300px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
}

.page-item .page-link {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: none;

  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-heading);
}

.page-link:hover,
.page-link:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}

.page-item.active .page-link {
  background: var(--primary);
  color: #FFFFFF;
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  opacity: 0.5;
  background: transparent;
}

/* Datepicker / Timepicker (flatpickr, restyled) */
.flatpickr-calendar {
  font-family: var(--font-base);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.flatpickr-day:hover {
  background: var(--primary-light);
}

.flatpickr-day.today {
  border-color: var(--primary);
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
  background: var(--primary-light);
}

/* Table */
.table-basic {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-base);
  font-size: 14px;
}

.table-basic thead th {
  padding: 10px 14px;
  text-align: left;
  background: var(--page-bg);
  border-bottom: 1px solid var(--input-border);

  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-basic thead th:first-child { border-top-left-radius: 8px; }
.table-basic thead th:last-child  { border-top-right-radius: 8px; }

.table-basic tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--input-border);
  color: var(--text-heading);
}

.table-basic tbody tr:hover {
  background: var(--page-bg);
}

.table-basic tbody tr:last-child td {
  border-bottom: none;
}

/* Dropify */
.dropify-wrapper {
  border: 1px dashed var(--input-border);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-base);
}

.dropify-wrapper:hover {
  border-color: var(--primary);
}

.dropify-wrapper .dropify-message span.file-icon:before {
  color: var(--text-muted);
  font-size: 13px;
}

.dropify-wrapper .dropify-message p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.dropify-wrapper .dropify-message .dropify-font-upload:before {
  color: var(--input-border);
}

.dropify-wrapper .dropify-preview .dropify-render img {
  border-radius: 6px;
}

.dropify-wrapper .dropify-infos .dropify-infos-inner p.dropify-filename {
  font-family: var(--font-base);
  font-weight: 600;
}

.dropify-wrapper .dropify-clear {
  border: none;
  border-radius: 6px;
  background: var(--danger);
  color: #FFFFFF;
  font-family: var(--font-base);
}

/* Text hierarchy
   Scoped to .type-scale so it doesn't leak into Bootstrap components that
   reuse h1-h6 for other purposes (accordion headers, modal titles, etc.) */
.type-scale {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.type-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--input-border);
}

.type-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.type-scale h1,
.type-scale h2,
.type-scale h3,
.type-scale h4,
.type-scale h5,
.type-scale h6,
.type-scale p {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-base);
}

.type-scale h1 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.type-scale h2 { font-size: 28px; font-weight: 700; line-height: 1.25; }
.type-scale h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.type-scale h4 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.type-scale h5 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.type-scale h6 { font-size: 14px; font-weight: 600; line-height: 1.4; }

.type-lead  { font-size: 16px; font-weight: 400; }
.type-body  { font-size: 14px; font-weight: 400; }
.type-small { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.type-meta {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-base);
  white-space: nowrap;
}

/* Menubar. Sized to match https://renandatta.com/'s top header:
   60px height, 0 32px padding, 1px hairline border, sticky. Real page
   chrome — sits above .app-shell, not boxed inside a section demo. */
.menubar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 32px;

  background: #FFFFFF;
  border-bottom: 1px solid var(--input-border);
  font-family: var(--font-base);
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.menubar-logo {
  display: flex;
  align-items: center;
  gap: 8px;

  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-heading);
  text-decoration: none;
}

.menubar-logo-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);
  color: #FFFFFF;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.menubar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.menubar-link {
  display: flex;
  align-items: center;
  height: 100%;

  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.menubar-link:hover {
  color: var(--text-heading);
}

.menubar-link.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.menubar-nav .dropdown-toggle::after {
  margin-left: 5px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menubar-user {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menubar-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-weight: 600;
  font-size: 13px;
}

/* Sidebar */
/* Real page chrome — sticky column next to .page inside .app-shell. */
.sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);

  flex: none;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;

  background: #FFFFFF;
  border-right: 1px solid var(--input-border);
  padding: 20px 16px;
  overflow-y: auto;
  font-family: var(--font-base);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 20px;

  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-heading);
  text-decoration: none;
}

.sidebar-group-label {
  margin: 16px 8px 4px;

  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-group-label:first-of-type {
  margin-top: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.sidebar-link i {
  width: 18px;
  font-size: 15px;
  text-align: center;
}

.sidebar-link:hover {
  background: var(--page-bg);
  color: var(--text-heading);
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

