/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --orar-navbar-height: 88px;
  --bg-dark-blue: #0a3d4d;
  --text-white: #ffffff;
  --runner-yellow: #f9b233;
  --prayer-orange: #e87722;
  --plus-pink: #e91e63;
  --cross-blue: #1b365d;
}

body {
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top, rgba(185, 208, 232, 0.28), transparent 30%),
    linear-gradient(180deg, #f7f4ed 0%, #eef3f8 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn {
  font-family: "Montserrat", sans-serif;
}

.orar-imagem {
  display: block;
  width: 100%;
}

.orar-imagem--proporcao {
  position: relative;
  aspect-ratio: var(--orar-aspect-ratio);
  overflow: hidden;
}

.orar-imagem__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--orar-image-fit, cover);
  object-position: center;
}

.orar-imagem--proporcao .orar-imagem__img {
  position: absolute;
  inset: 0;
}

.orar-navbar {
  background:
    linear-gradient(90deg, rgba(249, 178, 51, 0.1), rgba(249, 178, 51, 0) 18%),
    linear-gradient(110deg, rgba(233, 30, 99, 0.18), rgba(233, 30, 99, 0) 42%),
    linear-gradient(135deg, var(--bg-dark-blue) 0%, var(--cross-blue) 58%, #0f5264 100%);
  color: var(--text-white);
  padding: 14px 0;
  border-bottom-color: rgba(249, 178, 51, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 0 rgba(249, 178, 51, 0.7),
    0 10px 26px rgba(10, 61, 77, 0.28);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: visible;
}

.orar-navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.22) 1.2px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.25px);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px, 8px 8px;
  pointer-events: none;
  opacity: 0.5;
}

.orar-navbar .navbar-brand,
.orar-navbar .nav-link {
  color: var(--text-white) !important;
  text-shadow: 0 1px 1px rgba(10, 61, 77, 0.35);
}

.orar-navbar .navbar-brand {
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.orar-navbar-brand {
  min-width: 0;
  padding: 0.35rem 0.6rem 0.35rem 0.85rem;
  border-radius: 8px;
  background:
    linear-gradient(
      90deg,
      var(--runner-yellow) 0,
      var(--runner-yellow) 5px,
      var(--prayer-orange) 5px,
      var(--prayer-orange) 10px,
      var(--plus-pink) 10px,
      var(--plus-pink) 15px,
      rgba(255, 255, 255, 0.96) 15px,
      rgba(255, 255, 255, 0.9) 100%
    );
  box-shadow:
    0 0 0 2px rgba(249, 178, 51, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.orar-navbar-brand:hover,
.orar-navbar-brand:focus {
  box-shadow:
    0 0 0 2px var(--runner-yellow),
    0 0 0 5px rgba(233, 30, 99, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

.orar-navbar-brand__logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: clamp(156px, 24vw, 220px);
  object-fit: contain;
}

.orar-navbar .nav-link {
  font-weight: 600;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  position: relative;
  z-index: 1;
  border-radius: 6px;
}

.orar-navbar .dropdown-menu {
  z-index: 1050;
}

.orar-navbar .nav-link:hover,
.orar-navbar .nav-link:focus {
  color: var(--runner-yellow) !important;
  background-color: rgba(255, 255, 255, 0.09);
}

.orar-navbar .navbar-toggler {
  border-color: rgba(249, 178, 51, 0.58);
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.orar-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.orar-hero-frame {
  aspect-ratio: 16 / 7;
  min-height: 420px;
  max-height: calc(100svh - var(--orar-navbar-height));
  overflow: hidden;
}

.orar-hero-media,
.orar-hero-image {
  display: block;
  width: 100%;
  height: 100%;
}

.orar-hero-image {
  object-fit: cover;
  object-position: center;
}

.orar-hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.orar-admin-shell {
  padding: calc(var(--orar-navbar-height) + 2.5rem) 0 4rem;
}

.orar-admin-hero {
  background:
    linear-gradient(145deg, rgba(22, 58, 99, 0.96), rgba(74, 110, 150, 0.92)),
    linear-gradient(90deg, rgba(243, 240, 230, 0.12), rgba(243, 240, 230, 0));
  border: 1px solid rgba(217, 230, 245, 0.42);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(23, 58, 99, 0.18);
  color: #f7f4ed;
  overflow: hidden;
  position: relative;
}

.orar-admin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18), transparent 22%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
}

.orar-admin-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(94, 134, 181, 0.15);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(31, 60, 92, 0.08);
}

.orar-admin-stat {
  padding: 1.5rem;
  height: 100%;
}

.orar-admin-stat__label {
  color: #5f7082;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orar-admin-stat__value {
  color: #163a63;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.orar-admin-shortcut {
  align-items: center;
  border-radius: 18px;
  color: inherit;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.orar-admin-shortcut:hover,
.orar-admin-shortcut:focus {
  background-color: rgba(22, 58, 99, 0.05);
  box-shadow: inset 0 0 0 1px rgba(22, 58, 99, 0.08);
  transform: translateY(-2px);
}

.orar-admin-shortcut__icon {
  align-items: center;
  background: linear-gradient(135deg, #163a63, #5e86b5);
  border-radius: 14px;
  color: #f7f4ed;
  display: inline-flex;
  font-size: 1.15rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.orar-admin-section-title {
  color: #163a63;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.orar-admin-empty {
  border: 1px dashed rgba(94, 134, 181, 0.35);
  border-radius: 18px;
  padding: 1.25rem;
}

.orar-admin-body {
  background:
    radial-gradient(circle at top left, rgba(31, 76, 122, 0.22), transparent 30%),
    linear-gradient(180deg, #eef3f8 0%, #e3ebf3 100%);
}

.orar-admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.orar-admin-sidebar {
  background:
    linear-gradient(180deg, rgba(11, 31, 55, 0.98), rgba(18, 55, 93, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  color: #f7f4ed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.orar-admin-brand {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.orar-admin-brand__mark {
  align-items: center;
  background: linear-gradient(135deg, #f0c36d, #ddb45f);
  border-radius: 18px;
  color: #163a63;
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.orar-admin-menu {
  display: grid;
  gap: 0.55rem;
}

.orar-admin-menu__item {
  align-items: center;
  border-radius: 16px;
  color: rgba(247, 244, 237, 0.88);
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.orar-admin-menu__item:hover,
.orar-admin-menu__item:focus,
.orar-admin-menu__item.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateX(2px);
}

.orar-admin-sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.orar-admin-main {
  padding: 2rem;
}

.orar-admin-topbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.orar-admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.orar-admin-eyebrow {
  color: #5f7082;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orar-admin-banner {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(22, 58, 99, 0.98), rgba(67, 103, 145, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(20, 53, 89, 0.18);
  color: #f7f4ed;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.75rem;
  position: relative;
}

.orar-admin-banner::after {
  content: "";
  inset: 0;
  position: absolute;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}

.orar-admin-banner > * {
  position: relative;
  z-index: 1;
}

.orar-admin-banner__badge {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  min-width: 160px;
  padding: 1.2rem 1.3rem;
  text-align: center;
}

.orar-admin-banner__badge span,
.orar-admin-banner__badge strong {
  display: block;
}

.orar-admin-banner__badge span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orar-admin-banner__badge strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  margin-top: 0.25rem;
}

.orar-admin-surface {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(94, 134, 181, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(29, 61, 95, 0.08);
  backdrop-filter: blur(12px);
}

.orar-admin-list {
  display: grid;
  gap: 1rem;
}

.orar-admin-list__item {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
}

.orar-admin-list__dot {
  background: linear-gradient(135deg, #163a63, #5e86b5);
  border-radius: 999px;
  flex: 0 0 12px;
  height: 12px;
  margin-top: 0.35rem;
}

.admin-shell {
  min-height: 100vh;
}

.admin-shell--collapsed .admin-sidebar {
  width: 92px;
}

.admin-topbar {
  background:
    linear-gradient(90deg, rgba(223, 235, 247, 0.12), rgba(223, 235, 247, 0) 18%),
    linear-gradient(135deg, #163a63 0%, #2a5788 42%, #5e86b5 72%, #8fafce 100%);
  min-height: 215px;
}

.admin-sidebar {
  width: 280px;
  background: #f8fbff;
  border-right: 1px solid rgba(94, 134, 181, 0.18);
}

.admin-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #2a5788 0%, #5e86b5 100%);
}

.admin-user-card {
  background: rgba(217, 230, 245, 0.45);
  border: 1px solid rgba(94, 134, 181, 0.2);
}

.admin-link {
  color: #4d6278;
  text-decoration: none;
}

.admin-link:hover,
.admin-link:focus {
  color: #2a5788;
  background: rgba(217, 230, 245, 0.38);
}

.admin-shell--collapsed .admin-link {
  justify-content: center !important;
}

.admin-shell--collapsed .admin-link > span {
  gap: 0 !important;
}

.admin-shell--collapsed .admin-link span span,
.admin-shell--collapsed .admin-link .bi-chevron-right,
.admin-shell--collapsed .admin-sidebar-text {
  display: none !important;
}

.admin-shell--collapsed .admin-user-card {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.admin-shell--collapsed .admin-user-card .d-flex {
  justify-content: center;
}

.admin-group-title {
  font-size: 0.78rem;
  color: #163a63;
  letter-spacing: 0.02em;
}

.admin-content {
  margin-left: 0;
}

.admin-breadcrumb {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
}

.admin-breadcrumb:hover,
.admin-breadcrumb:focus {
  color: #ffffff;
}

.admin-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.7);
}

.admin-page-title {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-page-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.admin-workspace {
  min-height: calc(100vh - 215px);
  background:
    radial-gradient(circle at top, rgba(217, 230, 245, 0.55), transparent 28%),
    linear-gradient(180deg, #f7f4ed 0%, #eef3f8 100%);
}

.admin-module-card,
.admin-data-card {
  border: 1px solid rgba(94, 134, 181, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-module-card:hover,
.admin-data-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(22, 58, 99, 0.08);
}

.admin-module-icon,
.admin-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(217, 230, 245, 0.8);
  color: #2a5788;
}

.admin-profile-menu {
  position: relative;
}

.admin-profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  cursor: pointer;
  list-style: none;
}

.admin-profile-toggle::-webkit-details-marker {
  display: none;
}

.admin-profile-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(320px, 85vw);
  background: #ffffff;
  border: 1px solid rgba(94, 134, 181, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(15, 33, 56, 0.18);
  padding: 1rem;
  z-index: 20;
}

.admin-profile-email {
  word-break: break-word;
}

.admin-profile-logout {
  border-radius: 14px;
}

.admin-sidebar-toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar .offcanvas-header,
.admin-sidebar .offcanvas-body {
  background: #f8fbff;
}

.admin-search-menu {
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
}

.admin-qr-picker__districts {
  border: 1px solid rgba(94, 134, 181, 0.3);
  border-radius: 8px;
  height: min(260px, 34vh);
  overflow-y: auto;
}

.admin-qr-picker__actions {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: none;
    visibility: visible;
    border-right: 1px solid rgba(94, 134, 181, 0.18);
    box-shadow: none;
  }

  .admin-sidebar .offcanvas-header .btn-close {
    display: none;
  }

  .admin-content {
    margin-left: 280px;
    transition: margin-left 0.2s ease;
  }

  .admin-shell--collapsed .admin-content {
    margin-left: 92px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --orar-navbar-height: 80px;
  }

  .orar-hero-frame {
    aspect-ratio: 5 / 3;
    min-height: 360px;
  }

  .orar-admin-shell {
    padding-top: calc(var(--orar-navbar-height) + 1.5rem);
  }

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

  .orar-admin-sidebar {
    min-height: auto;
    position: static;
  }

  .orar-admin-main {
    padding: 1rem;
  }

  .orar-admin-topbar,
  .orar-admin-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  :root {
    --orar-navbar-height: 74px;
  }

  .orar-navbar-brand__logo {
    height: 36px;
    max-width: 124px;
  }

  .orar-hero-frame {
    aspect-ratio: 4 / 5;
    min-height: 320px;
  }

  .carousel-caption h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .carousel-caption .lead {
    font-size: 1rem;
  }
}
