/* General Styles */
:root {
  --primary-color: #0073e6;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  overflow-x: hidden;
  height: 100vh;
}

.main-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.main-container::before,
.main-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 2.5s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.main-container::before {
  z-index: 1;
  opacity: 1;
}

.main-container::after {
  z-index: 2;
  opacity: 0;
}

/* Imagens para o ::before */
.main-container[data-background="1"]::before { background-image: url('../images/carrossel01.jpg'); }
.main-container[data-background="2"]::before { background-image: url('../images/carrossel02.jpg'); }
.main-container[data-background="3"]::before { background-image: url('../images/carrossel03.jpg'); }
.main-container[data-background="4"]::before { background-image: url('../images/carrossel04.jpg'); }
.main-container[data-background="5"]::before { background-image: url('../images/carrossel05.jpg'); }

/* Imagens para o ::after */
.main-container[data-background="1"]::after { background-image: url('../images/carrossel02.jpg'); }
.main-container[data-background="2"]::after { background-image: url('../images/carrossel03.jpg'); }
.main-container[data-background="3"]::after { background-image: url('../images/carrossel04.jpg'); }
.main-container[data-background="4"]::after { background-image: url('../images/carrossel05.jpg'); }
.main-container[data-background="5"]::after { background-image: url('../images/carrossel01.jpg'); }

/* Classe para ativar a transição */
.main-container.transitioning::before {
  opacity: 0;
}

.main-container.transitioning::after {
  opacity: 1;
}

/* Ajuste para garantir que o conteúdo fique acima das imagens de fundo */
.content-container {
  position: relative;
  z-index: 3;
}

/* Navbar Styles */
.navbar {
  background-color: white;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 35px;
  margin-right: 8px;
}

.logo-text {
  color: #003366;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1px;
}

.faq-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}

.faq-link:hover {
  text-decoration: underline;
}

/* Main Content */
.content-container {
  position: relative;
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.center-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 0 20px;
}

.main-title {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.main-title .line1 {
  font-size: 2.2rem;
  font-weight: 300;
}

.main-title .line2 {
  font-family: var(--font-script);
  font-size: 5.5rem;
  line-height: 1;
  margin-top: -15px;
}

.main-title .line3 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: -15px;
}

.main-title .line4 {
  font-family: var(--font-script);
  font-size: 5.5rem;
  line-height: 1;
  margin-top: -20px;
}

/* Search Box */
.search-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.form-control {
  height: 55px;
  border-radius: 30px 0 0 30px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding-left: 25px;
  font-size: 1.1rem;
}

.form-control:focus {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border: none;
  outline: none;
}

.go-btn {
  height: 55px;
  border-radius: 0 30px 30px 0;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0 30px;
}

@media (max-width: 768px) {
  .navbar .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-container {
    padding: 0 10px;
  }
  .center-content {
    padding: 0 10px;
  }
  .search-container {
    padding: 0 10px;
  }
}

.help-button {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 200;
}

.btn-help {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: background 0.2s;
}

.btn-help:hover, .btn-help:focus {
  background: #005bb5;
  color: #fff;
}

@media (max-width: 768px) {
  .help-button {
    right: 12px;
    bottom: 12px;
  }
  .btn-help {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* Botões de Login e Cadastro */
.btn-login, .btn-cadastro, .btn-logout {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 115, 230, 0.3);
  margin-left: 8px;
}

.btn-login:hover, .btn-cadastro:hover, .btn-logout:hover {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.4);
}

.user-welcome {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 8px;
}

#navNotLoggedIn, #navLoggedIn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botão de Reconhecimento Facial */
.btn-facial {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-facial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Estilos do Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 16px 24px;
}

/* Container da Câmera */
.camera-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoCamera,
#videoCameraReconhecimento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Preview da Foto */
.preview-foto {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.preview-foto img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-refazer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-refazer:hover {
  background: white;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Formulário */
.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.modal-body .form-control {
  border-radius: 10px;
  border: 1px solid #ced4da;
  padding: 12px 16px;
  font-size: 1rem;
  height: auto;
}

.modal-body .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 115, 230, 0.25);
}

/* Botões do Modal */
.modal-footer .btn {
  border-radius: 25px;
  padding: 10px 24px;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background: #005bb5;
}

.btn-primary:disabled {
  background: #6c757d;
  opacity: 0.6;
}

.btn-secondary {
  background: #6c757d;
  border: none;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-success {
  background: #28a745;
  border: none;
}

.btn-success:hover {
  background: #218838;
}

/* Lista de Galerias */
.galleries-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 0;
}

.gallery-item {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.gallery-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.15);
  transform: translateX(5px);
}

.gallery-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.gallery-info {
  flex: 1;
  margin-left: 16px;
  min-width: 0;
}

.gallery-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-details {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.gallery-count {
  display: inline-block;
  background: #f8f9fa;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.gallery-action {
  color: var(--primary-color);
  font-size: 20px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .btn-cadastro {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .btn-facial {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .camera-container {
    max-width: 100%;
  }

  .form-control {
    font-size: 0.95rem;
  }

  .gallery-item {
    padding: 12px;
  }

  .gallery-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .gallery-name {
    font-size: 1rem;
  }

  .gallery-details {
    font-size: 0.85rem;
  }

  .galleries-list {
    max-height: 400px;
  }
}

/* Estilos do Accordion FAQ */
.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 10px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-item:first-of-type {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.accordion-item:last-of-type {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.accordion-button {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 20px;
  border: none;
  box-shadow: none;
}

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

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(3, 146, 253, 0.25);
}

.accordion-button:hover {
  background-color: #e9ecef;
}

.accordion-button:not(.collapsed):hover {
  background-color: #005bb5;
}

.accordion-body {
  padding: 20px;
  background-color: white;
  line-height: 1.6;
}

.accordion-body p {
  margin-bottom: 0;
}

.accordion-body ol {
  margin-bottom: 0;
}

.accordion-body a {
  color: rgb(10, 145, 247);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.accordion-body a:hover {
  color: #005bb5;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .accordion-button {
    font-size: 0.9rem;
    padding: 14px 16px;
  }

  .accordion-body {
    padding: 16px;
    font-size: 0.9rem;
  }
}

/* Estilos do Modal de Suporte */
.modal-body .row {
  margin-left: 0;
  margin-right: 0;
}

.modal-body .col-4,
.modal-body .col-6,
.modal-body .col-8 {
  padding-left: 8px;
  padding-right: 8px;
}

.modal-body .form-select {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ced4da;
}

.modal-body .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(3, 146, 253, 0.25);
}

.modal-body textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(3, 146, 253, 0.3);
}

#previewFotoLocal img,
#previewFotoQrCode img {
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#btnRemoverFotoLocal,
#btnRemoverFotoQrCode {
  width: 100%;
}

@media (max-width: 768px) {
  .modal-body .col-4,
  .modal-body .col-6,
  .modal-body .col-8 {
    padding-left: 4px;
    padding-right: 4px;
  }

  .modal-body .row {
    margin-left: -4px;
    margin-right: -4px;
  }

  #btnFotoLocal,
  #btnFotoQrCode {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
} 