/* ===============================
   AVALIAÇÃO - ESTILOS MODERNOS
   =============================== */

:root {
  --txt-color-white: #fff;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --company-color: #3cbda1;
  --accent-color: #3cbda1;
  --company-color-dark: #2ea574;
  --bg-color: #ffffff;
  --loader-bg: #ffffff;
  --card-bg: rgb(240 242 249);
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  --footer-bg: #f8f9fa;
  --nav-bg: #ffffff;
  --alert-bg: #d1ecf1;
  --alert-text: #0c5460;
  --breadcrumb-bg: transparent;
  --modal-bg: #ffffff;
  --ticket-error: #e72929;
  --ticket-bg: #ffffff;
  --senha-bg: #a70000;
  --black-act: black;
  /* Reduzida altura do header para versão simplificada */
  --header-height: 60px;
}

/* Adicionado suporte completo ao tema dark */
.dark-theme {
  --company-color: #3cbda1;
  --company-color-dark: #36c387;
  --bg-color: #1a1a1a;
  --loader-bg: #1a1a1a;
  --card-bg: #2d2d2d;
  --text-primary: #f0f0f0;
  --text-secondary: #cccccc;
  --border-color: #444444;
  --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  --footer-bg: #222222;
  --nav-bg: #2d2d2d;
  --alert-bg: #1e3a3f;
  --alert-text: #b8daff;
  --breadcrumb-bg: rgba(255, 255, 255, 0.05);
  --loader-bg: #1a1a1a;
  --modal-bg: #2d2d2d;
  --ticket-error: #ff6b6b;
  --ticket-bg: #2d2d2d;
  --senha-bg: #ffffff;
  --black-act: white;
}

/* ===============================
   ESTILOS MODERNOS DA AVALIAÇÃO
   =============================== */

/* Aplicado variáveis CSS para suporte ao tema */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Estilos atualizados para header fixo simples em todas as telas */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #3cbda1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--header-height);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: white !important;
  text-align: center;
  flex: 1;
}

/* Estilos para botão de tema posicionado absolutamente no canto direito */
#theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.05);
}

/* Removido gradiente do header, aplicado cor destaque */
.evaluation-header {
  background-color: #3cbda1;
  padding: 1.5rem;
  border-radius: 15px;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(60, 189, 161, 0.2);
}

/* Cards com suporte ao tema dark */
.card {
  border: none !important;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-color: var(--card-bg);
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
  border: none !important;
  position: relative;
  overflow: hidden;
}

/* Sistema de Estrelas Moderno */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.5rem 0;
}

.star {
  font-size: 2.5rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.star:hover,
.star.hover {
  color: #ffd700;
  transform: scale(1.15) rotate(3deg);
  text-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.star.active {
  color: #ffd700;
  animation: starPulse 0.6s ease-out;
}

@keyframes starPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Feedback Container */
.feedback-container {
  animation: slideDown 0.5s ease-out;
  margin-top: 1rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Formulários com suporte ao tema dark */
.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 10px !important;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: #3cbda1;
  box-shadow: 0 0 0 0.2rem rgba(60, 189, 161, 0.15);
  background: var(--card-bg);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

/* Botões Modernos */
.btn {
  border-radius: 20px !important;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline-success:hover {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

.btn-outline-danger:hover {
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

/* Switches Modernos */
.form-check-input {
  width: 2.5rem;
  height: 1.25rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #3cbda1;
  border-color: #3cbda1;
}

/* Informações do Atendimento com tema dark */
.info-item {
  padding: 0.75rem;
  background: rgba(60, 189, 161, 0.1);
  border-radius: 10px;
  border-left: 3px solid #3cbda1;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(60, 189, 161, 0.15);
  transform: translateX(3px);
}

.schedule-info {
  background: rgba(60, 189, 161, 0.08);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(60, 189, 161, 0.15);
}

/* Alertas Modernos */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.alert-success {
  background: rgba(40, 167, 69, 0.08);
  border-left: 3px solid #28a745 !important;
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.08);
  border-left: 3px solid #ffc107 !important;
  color: var(--text-primary);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-left: 3px solid #dc3545 !important;
  color: var(--text-primary);
}

.alert-info {
  background: rgba(23, 162, 184, 0.08);
  border-left: 3px solid #17a2b8 !important;
  color: var(--text-primary);
}

/* Labels e textos com suporte ao tema */
.form-label,
.fw-semibold {
  color: var(--text-primary);
}

.text-muted {
  color: var(--text-secondary) !important;
}

/* Responsividade melhorada para mobile */
@media (max-width: 768px) {
  .evaluation-header {
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
  }

  .star {
    font-size: 2rem;
    gap: 6px;
  }

  .star-rating {
    gap: 6px;
    margin: 1rem 0;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    border-radius: 15px !important;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .card-body {
    padding: 1rem !important;
  }

  .info-item {
    padding: 0.5rem;
    margin-bottom: 0.75rem !important;
  }

  .schedule-info {
    padding: 0.5rem;
  }

  /* Ajustes específicos para navbar brand no mobile */
  .navbar-brand {
    font-size: 1rem;
  }
}

/* Tamanhos de texto responsivos */
@media (min-width: 768px) {
  .h2-md {
    font-size: 1.75rem !important;
  }

  .fs-4-md {
    font-size: 1.25rem !important;
  }

  /* Navbar brand maior no desktop */
  .navbar-brand {
    font-size: 1.2rem;
  }
}

/* Animações suaves */
* {
  transition: all 0.3s ease;
}

/* Efeito de loading suave */
.card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay nas animações dos cards */
.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
