/* MessageCast Custom Theme */
/* Estilos adicionais para um visual mais sofisticado */

/* Logo styling - garantindo boa exibição em todas as situações */
.logo-img img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.2s ease;
}

.logo-img:hover img {
  transform: scale(1.02);
}

/* Logo no sidebar */
.brand-logo .logo-img img {
max-width: 280px;
    max-height: 195px;
    height: auto;
    width: auto;
    margin-top: 20px;
}

/* Logo nas páginas de autenticação */
.auth-logo img {
  max-width: 400px;
  height: auto;
  width: auto;
  margin-bottom: 1.5rem;
}

/* Logo na página de login (fundo escuro) - aplica filtro para deixar visível */
.auth-page .auth-logo img {
  max-width: 400px;
  max-height: 400px;
}


/* Botões primários com estilo laranja */
.btn-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E55A2B 0%, #D94A1F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* Cards com sombra sofisticada */
.card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Background gradiente sutil */
body {
  background: linear-gradient(135deg, #F8F9FA 0%, #F5F6F8 100%);
}

/* Background da página de login - cinza escuro cobrindo toda a tela */
body.auth-page {
  background: linear-gradient(135deg, #454546 0%, #3a3a3b 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Container principal da página de autenticação */
.auth-container {
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card/formulário de login com fundo branco */
.auth-card, .card.auth-form {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: none;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  margin: 1rem;
}

/* Botões de sucesso com cor personalizada */
.btn-success {
  background: linear-gradient(135deg, #27AE60 0%, #219A52 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #219A52 0%, #1E8449 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Botões de informação */
.btn-info {
  background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.btn-info:hover {
  background: linear-gradient(135deg, #138496 0%, #117A8B 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Inputs com estilo moderno */
.form-control {
  border: 1px solid #E5E8EB;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background-color: #ffffff;
}

/* Tabelas com estilo moderno */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table thead th {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  border-bottom: 2px solid #E5E8EB;
  color: #2C3E50;
  font-weight: 600;
}

/* Badges com cores da marca */
.badge-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: white;
}

.badge-secondary {
  background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
  color: white;
}

/* Alertas personalizados */
.alert-primary {
  background: linear-gradient(135deg, #FFF3ED 0%, #FFE8DA 100%);
  border-color: #FF8C69;
  color: #D94A1F;
}

.alert-success {
  background: linear-gradient(135deg, #E8F8F5 0%, #D4F4E8 100%);
  border-color: #B8E6D2;
  color: #1E8449;
}

/* Tooltips personalizados */
.tooltip-inner {
  background: #2C3E50;
  border-radius: 6px;
}

/* Animação suave para transições */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* QR Code container */
.qr-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Status indicators */
.status-online {
  color: #27AE60;
  font-weight: 600;
}

.status-offline {
  color: #E74C3C;
  font-weight: 600;
}

.status-connecting {
  color: #454546;
  font-weight: 600;
}

/* Logo no sidebar com filtro para melhor integração */
.brand-logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F6F8;
}

::-webkit-scrollbar-thumb {
  background: #95A5A6;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #454546;
}

/* Loading spinner personalizado */
.spinner-border-primary {
  border-color: #FFE8DA;
  border-top-color: #FF6B35;
}

/* ========== PLAYER DE ÁUDIO ========== */
/* Estilos para players de áudio em modals e carrosséis */

.audio-player-container,
.carousel-item .audio-wrapper {
  position: relative;
}

/* Estilos base para elementos audio */
audio[controls] {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 8px !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 2px !important;
}

/* Controles do player - Webkit (Chrome, Safari, Edge) */
audio::-webkit-media-controls-panel {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-radius: 6px !important;
  padding: 2px !important;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
  background-color: #667eea !important;
  border-radius: 50% !important;
  margin: 0 4px !important;
  width: 32px !important;
  height: 32px !important;
  color: white !important;
}

audio::-webkit-media-controls-timeline {
  background-color: rgba(102, 126, 234, 0.2) !important;
  border-radius: 4px !important;
  margin: 0 8px !important;
  height: 6px !important;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #333 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

audio::-webkit-media-controls-mute-button {
  background-color: #764ba2 !important;
  border-radius: 4px !important;
  margin: 0 2px !important;
  width: 28px !important;
  height: 28px !important;
}

audio::-webkit-media-controls-volume-slider {
  background-color: rgba(118, 75, 162, 0.2) !important;
  border-radius: 4px !important;
  height: 6px !important;
}

/* Controles do player - Firefox */
audio::-moz-range-thumb {
  background-color: #667eea !important;
  border: none !important;
  border-radius: 50% !important;
  height: 16px !important;
  width: 16px !important;
}

audio::-moz-range-track {
  background-color: rgba(102, 126, 234, 0.2) !important;
  border-radius: 4px !important;
  height: 6px !important;
}

/* Estados hover para melhor interatividade */
audio:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px) !important;
  transition: all 0.2s ease !important;
}

/* Player em modals */
.modal .audio-player-container audio {
  min-height: 45px !important;
  width: 100% !important;
  max-width: 420px !important;
}

/* Player em carrossel */
.carousel-item audio {
  min-height: 50px !important;
  width: 100% !important;
  max-width: 450px !important;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .audio-player-container audio,
  .carousel-item audio {
    max-width: 100% !important;
    min-height: 40px !important;
  }
  
  audio::-webkit-media-controls-current-time-display,
  audio::-webkit-media-controls-time-remaining-display {
    font-size: 10px !important;
  }
}

/* ========== FIM PLAYER DE ÁUDIO ========== */
