:root {
  box-sizing: border-box;
}

body {
  height: 100dvh;
  background-color: #fafafa;
}

.dvw-15 {
  width: 15dvw;
}

.dvw-85 {
  width: 85dvw;
}

.bs-top {
  box-shadow: 0px -25px 10px -15px rgba(0, 0, 0, 0.1);
}

.bs-bottom {
  box-shadow: 0px 25px 10px -15px rgba(0, 0, 0, 0.1);
}

.bs-right {
  box-shadow: 25px 0px 10px -15px rgba(0, 0, 0, 0.1);
}

.bs-left {
  box-shadow: -25px 0px 10px -15px rgba(0, 0, 0, 0.1);
}

.aside-menu {
  font-size: 1.3rem;
}

.aside-menu li a {
  color: #3c3c3c;
  transition: all 0.2s ease-in-out;
}

.aside-menu li a:hover {
  background-color: #c3c3c3;
  color: #3c3c3c;
  box-shadow: 0px 15px 5px 0px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.aside-menu li a.active {
  background-color: #3c3c3c;
  color: #fafafa;
}

/* quill configs */
.ql-editor,
.ql-editor.ql-blank::before {
  font-size: 16px;
}

/* Editais */
.editais-status {
  display: flex;
  justify-content: space-between;
  text-align: end;
  margin-bottom: 0.5rem;
}

.editais-date-status {
  font-weight: 800;
}

.justify-text {
  text-align: justify;
}

blockquote {
  border-left: 5px solid #3c3c3c;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  width: 100%;
}

.justify-text,
blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  hyphenate-character: auto;
  hyphenate-limit-chars: 3 3;
}

code {
  color: #ff61b0;
  background-color: #3c3c3c;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
}

code.required {
  all: initial;
  color: #ff61b0;
  vertical-align: super;
}

.banner {
  background: url("../imgs/cultura.jpg");
  background-size: 101%;
  background-position: center;
  background-repeat: no-repeat;
  height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2rem;
}

.banner h1 {
  background-color: #fafafa;
  padding: 0.3rem 1rem;
  border-radius: 0.5rem;
}

.banner p {
  background-color: #fafafa;
  padding: 0.3rem 1rem;
  border-radius: 0.5rem;
}

/* Timeline Horizontal */
.timeline-horizontal {
  position: relative;
  padding: 50px 0;
}

.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #e9ecef;
  z-index: 1;
}

.timeline-horizontal .timeline-item {
  position: relative;
  flex: 1;
  text-align: center;
  z-index: 2;
}

.timeline-horizontal .timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.timeline-horizontal .timeline-marker i {
  font-size: 16px;
}

/* Timeline Vertical */
.timeline-vertical {
  position: relative;
  padding: 20px 0;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  bottom: 0;
  width: 4px;
  background: #e9ecef;
  z-index: 1;
}

.timeline-vertical .timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 80px;
}

.timeline-vertical .timeline-marker {
  position: absolute;
  left: 10px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

/* Estados dos itens */
.timeline-item.completed .timeline-marker {
  background: #28a745;
  color: white;
  border: 3px solid #28a745;
}

.timeline-item.active .timeline-marker {
  background: #007bff;
  color: white;
  border: 3px solid #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
  animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
  background: #f8f9fa;
  color: #6c757d;
  border: 3px solid #dee2e6;
  animation: loop 3s infinite linear;
}

.timeline-item.cancelled .timeline-marker {
  background: #dc3545;
  color: white;
  border: 3px solid #dc3545;
}

/* Animação de loop para item pedente */
@keyframes loop {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animação de pulso para item ativo */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* Conexão entre itens completos (horizontal) */
.timeline-horizontal .timeline-item.completed:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #28a745;
  z-index: 2;
  transform: translateY(-50%);
}

/* Conexão entre itens completos (vertical) */
.timeline-vertical .timeline-item.completed:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 40px;
  width: 4px;
  height: calc(100% - 10px);
  background: #28a745;
  z-index: 2;
}

/* Cards de conteúdo */
.timeline-content {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.timeline-content h6 {
  margin-bottom: 5px;
  font-weight: bold;
}

.timeline-content .date {
  font-size: 0.85em;
  color: #6c757d;
}

.field-group {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.field-group h6 {
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.form-check {
  margin-bottom: 0.5rem;
}
.btn-generate {
  background: linear-gradient(45deg, #28a745, #20c997);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: bold;
}
.btn-generate:hover {
  background: linear-gradient(45deg, #218838, #1e7e8c);
  color: white;
}
.select-all-group {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
