/* =====================================================================
   eNotarize Universal Button System
   ---------------------------------------------------------------------
   Bootstrap-style button utilities. Drop on any <a>, <button> or <input>.
   Loaded AFTER main.css so these rules win the cascade.
   SCOPE: buttons only — this file never affects any other page design.

   Usage:
     <a class="enotary-btn-primary">Save</a>
     <button class="enotary-btn-outline-danger enotary-btn-sm">Remove</button>
     <button class="enotary-btn-success enotary-btn-block">Proceed</button>

   Variants: primary secondary success danger warning info light dark link
             (+ outline form of each)
   Sizes:    xs  sm  (default)  lg  + block
   States:   :disabled / .disabled , .active
   ===================================================================== */

/* ---------------------------------------------------------------------
   Shared base — applies to every enotary-btn* class, standalone or composed
   --------------------------------------------------------------------- */
[class^="enotary-btn"],
[class*=" enotary-btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  -webkit-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[class^="enotary-btn"]:hover,
[class*=" enotary-btn"]:hover {
  text-decoration: none;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* Active "press" — settle back down for tactile feedback */
[class^="enotary-btn"]:active,
[class*=" enotary-btn"]:active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  transition-duration: 0.05s;
}

/* Subtle resting elevation on solid variants (modern depth) */
.enotary-btn-primary, .enotary-btn-success, .enotary-btn-danger,
.enotary-btn-warning, .enotary-btn-info, .enotary-btn-dark {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* Disabled / inactive */
[class^="enotary-btn"]:disabled,
[class*=" enotary-btn"]:disabled,
[class^="enotary-btn"].disabled,
[class*=" enotary-btn"].disabled {
  opacity: 0.6;
  cursor: not-allowed;
  -webkit-transform: none;
  transform: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------------
   Solid variants
   --------------------------------------------------------------------- */
.enotary-btn-primary   { background-color: #004aad; color: #fff; }
.enotary-btn-primary:hover   { background-color: #003a8c; color: #fff; box-shadow: 0 8px 16px rgba(0, 74, 173, 0.25); }

/* Secondary — modern "soft" button: light fill, hairline border, slate text */
.enotary-btn-secondary { background-color: #f8fafc; color: #334155; border-color: #e2e8f0; }
.enotary-btn-secondary:hover { background-color: #f1f5f9; color: #0f172a; border-color: #cbd5e1; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10); }

.enotary-btn-success   { background-color: #16a34a; color: #fff; }
.enotary-btn-success:hover   { background-color: #128a3e; color: #fff; box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25); }

.enotary-btn-danger    { background-color: #ef4444; color: #fff; }
.enotary-btn-danger:hover    { background-color: #dc2626; color: #fff; box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25); }

.enotary-btn-warning   { background-color: #f59e0b; color: #fff; }
.enotary-btn-warning:hover   { background-color: #d97706; color: #fff; box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25); }

.enotary-btn-info      { background-color: #0ea5e9; color: #fff; }
.enotary-btn-info:hover      { background-color: #0284c7; color: #fff; box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25); }

.enotary-btn-light     { background-color: #f1f5f9; color: #0f172a; }
.enotary-btn-light:hover     { background-color: #e2e8f0; color: #0f172a; box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12); }

.enotary-btn-dark      { background-color: #081828; color: #fff; }
.enotary-btn-dark:hover      { background-color: #0f172a; color: #fff; box-shadow: 0 8px 16px rgba(8, 24, 40, 0.25); }

.enotary-btn-link      { background-color: transparent; color: #004aad; padding-left: 8px; padding-right: 8px; }
.enotary-btn-link:hover      { background-color: transparent; color: #003a8c; text-decoration: underline; -webkit-transform: none; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------------
   Outline variants — transparent fill, coloured border + text; fill on hover
   --------------------------------------------------------------------- */
.enotary-btn-outline-primary   { background-color: transparent; color: #004aad; border-color: #004aad; }
.enotary-btn-outline-primary:hover   { background-color: #004aad; color: #fff; box-shadow: 0 8px 16px rgba(0, 74, 173, 0.25); }

.enotary-btn-outline-secondary { background-color: transparent; color: #475569; border-color: #64748b; }
.enotary-btn-outline-secondary:hover { background-color: #64748b; color: #fff; box-shadow: 0 8px 16px rgba(100, 116, 139, 0.25); }

.enotary-btn-outline-success   { background-color: transparent; color: #16a34a; border-color: #16a34a; }
.enotary-btn-outline-success:hover   { background-color: #16a34a; color: #fff; box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25); }

.enotary-btn-outline-danger    { background-color: transparent; color: #ef4444; border-color: #ef4444; }
.enotary-btn-outline-danger:hover    { background-color: #ef4444; color: #fff; box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25); }

.enotary-btn-outline-warning   { background-color: transparent; color: #d97706; border-color: #f59e0b; }
.enotary-btn-outline-warning:hover   { background-color: #f59e0b; color: #fff; box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25); }

.enotary-btn-outline-info      { background-color: transparent; color: #0284c7; border-color: #0ea5e9; }
.enotary-btn-outline-info:hover      { background-color: #0ea5e9; color: #fff; box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25); }

.enotary-btn-outline-light     { background-color: transparent; color: #475569; border-color: #cbd5e1; }
.enotary-btn-outline-light:hover     { background-color: #f1f5f9; color: #0f172a; box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12); }

.enotary-btn-outline-dark      { background-color: transparent; color: #081828; border-color: #081828; }
.enotary-btn-outline-dark:hover      { background-color: #081828; color: #fff; box-shadow: 0 8px 16px rgba(8, 24, 40, 0.25); }

/* ---------------------------------------------------------------------
   Sizes — composable with any variant (declared last so padding wins)
   --------------------------------------------------------------------- */
.enotary-btn-xs { padding: 5px 12px !important;  font-size: 12px !important; border-radius: 8px !important;  gap: 5px !important; }
.enotary-btn-sm { padding: 9px 18px !important;  font-size: 13px !important; border-radius: 10px !important; gap: 6px !important; }
.enotary-btn-lg { padding: 18px 36px !important; font-size: 16px !important; border-radius: 14px !important; gap: 10px !important; }

/* ---------------------------------------------------------------------
   Layout modifier — full width
   --------------------------------------------------------------------- */
.enotary-btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------------
   Scroll-to-top FAB — align its colour to the primary variant.
   Shape/size/position are left to .scroll-top in main.css (icon button).
   --------------------------------------------------------------------- */
.scroll-top { background: #004aad; }
.scroll-top:hover { background: #003a8c; }

/* =====================================================================
   Legacy class aliases
   ---------------------------------------------------------------------
   Existing button classes adopt the system's colour, radius, weight and
   hover — WITHOUT changing their padding/size, so no layout shifts.
   Loaded after main.css at equal specificity, so these win the cascade.
   Buttons only; nothing else is affected.
   ===================================================================== */

/* -- shared: radius, weight, transition, hover lift (size preserved) -- */
.dash-btn-primary,
.btn-app-view,
.btn-green-gradient, .btn-meeting-join, .btn-download-final, .btn-forward-action,
.btn-save, .btn-blue-action, .btn-amber,
.btn-view, .verify-btn, .payment-btn-premium,
.button .btn {
  font-weight: 700;
  border-radius: 12px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* -- shared: same height/width/padding as the login page's button
   (enotary_btn_primary base size) across every standalone CTA button, so
   "View PDF", "Join as Notary", "New Request", etc. all match Sign In. -- */
.dash-btn-primary,
.btn-app-view,
.btn-green-gradient, .btn-meeting-join, .btn-download-final, .btn-forward-action,
.btn-save, .btn-blue-action, .btn-amber,
.btn-view, .verify-btn, .payment-btn-premium,
.button .btn {
  padding: 15px 30px;
  font-size: 15px;
  /* Without an explicit line-height, buttons that DON'T also carry an
     enotary_btn_* class (which sets 1.2 itself) fall back to the browser's
     ~1.5 default — a couple px taller than their siblings. In a flex row
     with default align-items:stretch, that taller sibling silently drags
     the whole row (e.g. "Cancel" stretching "Save Changes") up to match.
     Pinning it here removes the mismatch at the source. */
  line-height: 1.2;
}

/* Document-editor toolbar "Save Changes" pairs .btn-save (a colour-only
   modifier) with .btn-editor — .btn-save is also a Tier-1 CTA class, so
   its 15px/30px was clobbering .btn-editor's own compact toolbar padding,
   making "Save Changes" mismatch its "Exit Editor"/fullscreen siblings in
   the same toolbar. Restore the toolbar's own size for this combo. */
.btn-editor.btn-save {
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
}

/* Modal footer buttons (e.g. "Apply Leave": Cancel/Submit Leave) now use
   the same full page-CTA size (15px/30px) as sign-in — no compact
   override, so every enotary-btn-* button is identically sized regardless
   of context. */

.dash-btn-primary:hover,
.btn-app-view:hover,
.btn-green-gradient:hover, .btn-meeting-join:hover, .btn-download-final:hover, .btn-forward-action:hover,
.btn-save:hover, .btn-blue-action:hover, .btn-amber:hover,
.btn-view:hover, .verify-btn:hover, .payment-btn-premium:hover,
.button .btn:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* -- primary (royal blue) -- */
.dash-btn-primary, .btn-app-view, .btn-blue-action, .btn-view,
.payment-btn-premium, .btn-forward-action, .btn-save,
.button .btn {
  background-color: #004aad !important;
  background-image: none !important; /* clears gradient backgrounds so the flat colour shows */
  color: #fff !important;
}
.dash-btn-primary:hover, .btn-app-view:hover, .btn-blue-action:hover, .btn-view:hover,
.payment-btn-premium:hover, .btn-forward-action:hover, .btn-save:hover,
.button .btn:hover {
  background-color: #003a8c !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(0, 74, 173, 0.25);
}

/* -- Pagination → brand blue active/hover + softer corners -- */
.pagination .pagination-list li a {
  border-radius: 8px !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.pagination .pagination-list li.active a,
.pagination .pagination-list li:hover a {
  background: #004aad !important;
  border-color: #004aad !important;
  color: #fff !important;
}

/* -- success (green) -- */
.btn-green-gradient, .btn-meeting-join, .btn-download-final {
  background: #16a34a !important;
  background-image: none !important;
  color: #fff !important;
}
.btn-green-gradient:hover, .btn-meeting-join:hover, .btn-download-final:hover {
  background: #128a3e !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
}

/* -- warning (amber) -- */
.btn-amber, .verify-btn {
  background-color: #f59e0b !important;
  color: #fff !important;
}
.btn-amber:hover, .verify-btn:hover {
  background-color: #d97706 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25);
}

/* -- bootstrap primary/danger + leave/editor actions (meeting, schedule, leaves, prepare, editor) -- */
.btn-primary, .btn-danger, .btn-remove, .btn-exit {
  font-weight: 700;
  border-radius: 12px;
  -webkit-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover, .btn-danger:hover, .btn-remove:hover, .btn-exit:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
.btn-primary {
  background-color: #004aad !important;
  border-color: #004aad !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.btn-primary:hover { background-color: #003a8c !important; color: #fff !important; box-shadow: 0 8px 16px rgba(0, 74, 173, 0.25); }
.btn-danger, .btn-remove {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.btn-danger:hover, .btn-remove:hover { background-color: #dc2626 !important; color: #fff !important; box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25); }
/* editor exit → modern soft secondary */
.btn-exit { background-color: #f8fafc !important; color: #334155 !important; border: 1.5px solid #e2e8f0 !important; }
.btn-exit:hover { background-color: #f1f5f9 !important; color: #0f172a !important; border-color: #cbd5e1 !important; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10); }

/* -- Application-card action trio (View) --
      uniform footprint so it reads consistently with its siblings -- */
.btn-app-view {
  padding: 9px 18px !important;
  font-size: 13px !important;
  gap: 6px !important;
  line-height: 1.2 !important;
  border-radius: 10px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  box-sizing: border-box !important;
  border-color: transparent !important;  /* solid primary; invisible border keeps height equal to outline/soft siblings */
}

/* -- Same toolbar icon-square treatment for the new enotary-btn-* names.
      main.css's ".dash-action-group .dash-btn-*" rule (48x48 fixed icon
      square) only matches the old class name, so renaming a button to
      enotary-btn-* inside .dash-action-group needs its own copy here —
      otherwise it would fall back to the full 15px/30px CTA padding and
      stop being a compact icon square. -- */
.dash-action-group .enotary-btn-primary,
.dash-action-group .enotary-btn-secondary,
.dash-action-group .enotary-btn-info {
  width: 48px;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  border: 1.5px solid #e8edf3 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  min-width: auto !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(8, 24, 40, 0.04);
}
.dash-action-group .enotary-btn-primary {
  background: #004aad !important;
  border-color: #004aad !important;
  color: #fff !important;
}
.dash-action-group .enotary-btn-primary:hover {
  background: #003a8c !important;
  box-shadow: 0 8px 16px rgba(0, 74, 173, 0.25) !important;
}
.dash-action-group .enotary-btn-secondary {
  background: #fff !important;
  color: #64748b !important;
}
.dash-action-group .enotary-btn-secondary:hover {
  background: #f8fafc !important;
  color: #ef4444 !important;
  border-color: #fee2e2 !important;
}
.dash-action-group .enotary-btn-info { background: #fff !important; color: #004aad !important; }
.dash-action-group .enotary-btn-info:hover {
  background: #eef4fc !important;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.15) !important;
}

/* =====================================================================
   Status filter <select> — modern open-list styling
   ---------------------------------------------------------------------
   Native <select>: only option colours are stylable (no radius/shadow on
   the popup). This recolours the browser's default red selected-highlight
   to the brand blue, sets consistent text colour, and adds row padding.
   ===================================================================== */
.dash-filter-select { accent-color: #004aad; }
.dash-filter-select option {
  background-color: #ffffff;
  color: #334155;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}
/* force the selected row to brand blue (overrides the OS red highlight) */
.dash-filter-select option:checked {
  background: #004aad linear-gradient(0deg, #004aad 0%, #004aad 100%);
  color: #ffffff;
  font-weight: 600;
}
.dash-filter-select option:hover {
  background: #eef4fc;
  color: #004aad;
}

/* =====================================================================
   Status filter — Bootstrap 5 .dropdown / .dropdown-menu
   ---------------------------------------------------------------------
   Sits inside the existing .dash-filter-group box (border/height/bg
   already defined above) so it matches .dash-search-group next to it.
   Positioned with Popper's `strategy: 'fixed'` (set in applications.blade.php)
   so the open menu isn't clipped by .dash-panel's `overflow: hidden`.
   ===================================================================== */
.dash-filter-toggle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-filter-toggle:hover,
.dash-filter-toggle:focus,
.dash-filter-toggle.show { color: #004aad; }

.dash-filter-toggle::after { margin-left: 8px; color: #a0aec0; vertical-align: 1px; transition: color 0.22s ease; }
.dash-filter-toggle:hover::after,
.dash-filter-toggle.show::after { color: #004aad; }

.dash-filter-menu {
  /* Width is set explicitly by the `sameWidth` Popper modifier in
     applications.blade.php — a `position: fixed` box resolves % widths
     against the viewport, not the trigger, so a CSS min-width:100% here
     would stretch the menu to the full viewport width instead. */
  padding: 6px;
  border: 1.5px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(8, 24, 40, 0.14);
  max-height: 320px;
  overflow-y: auto;
}

.dash-filter-menu .dropdown-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: normal;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-filter-menu .dropdown-item:hover,
.dash-filter-menu .dropdown-item:focus { background: #eef4fc; color: #004aad; }
.dash-filter-menu .dropdown-item.active {
  background: #004aad;
  color: #ffffff;
  font-weight: 600;
}
