/* ========================================
   CSS VARIABLES - PALETA DE CORES
   ======================================== */
:root {
  /* Cores da Paleta Principal */
  --indigo: #414bc0;
  --east-bay: #444a84;
  --portage: #7a82e9;
  --spindle: #b3b6e8;
  --dull-lavender: #9aa0ea;
  --blue-violet: #5e65b6;
  
  /* Cores Aplicadas */
  --color-primary: var(--indigo);
  --color-primary-hover: var(--east-bay);
  --color-primary-light: var(--portage);
  --color-primary-lighter: var(--spindle);
  --color-accent: var(--dull-lavender);
  --color-secondary: var(--blue-violet);
  
  /* Cores Neutras */
  --color-text: #333;
  --color-text-muted: #6c757d;
  --color-bg: #f5f7fa;
  --color-bg-card: #fff;
  --color-border: #e8ecef;
  
  /* VoxAgent Theme Colors - Sem Gradientes */
  --vox-green: #22c55e;
  --vox-green-light: #dcfce7;
  --vox-green-border: #86efac;
  --vox-yellow: #eab308;
  --vox-yellow-light: #fef9c3;
  --vox-yellow-border: #fde047;
  --vox-blue: #0d6efd;
  --vox-blue-light: #cfe2ff;
  --vox-blue-border: #9ec5fe;
  --vox-purple: #0d6efd;
  --vox-purple-light: #cfe2ff;
  --vox-purple-border: #9ec5fe;
  --vox-red: #ef4444;
  --vox-red-light: #fee2e2;
  --vox-red-border: #fca5a5;
  --vox-gray: #64748b;
  --vox-gray-light: #f1f5f9;
  --vox-sidebar-bg: #1e293b;
  --vox-sidebar-active: #334155;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========================================
   LAYOUT WRAPPER
   ======================================== */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ========================================
   MAIN HEADER (Barra única no topo)
   ======================================== */
.main-header {
    background: white;
    border-bottom: solid .35rem #0d6efd;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 65px;
    box-sizing: border-box;
}

.header-brand {
  display: flex;
  align-items: center;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-logo-link i {
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 10px;
}

.header-logo-link:hover {
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
  width: 260px;
  background: #ffffff;
  position: fixed;
  height: calc(100vh - 65px);
  left: 0;
  top: 65px;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  border-right: 1px solid #e9ecef;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: #5f6368;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern for nav items */
.sidebar-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sidebar-nav-item:hover::before {
  opacity: 1;
}

.sidebar-nav-item i {
  font-size: 1.3rem;
  width: 28px;
  margin-right: 1rem;
  text-align: center;
  color: #5f6368;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}

.sidebar-nav-item span {
  position: relative;
  z-index: 1;
}

.sidebar-nav-item:hover {
  background-color: #f5f5f5;
  color: #0d6efd;
}

.sidebar-nav-item:hover i {
    color: #0d6efd;
}

.sidebar-nav-item.active {
  /* background: linear-gradient(90deg, #d5e8ff 0%, #e8f3ff 100%); */
  background-color: #d5e8ff;
  color: #1a73e8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.08);
  border-left: 3px solid #1a73e8;
  /* padding: 0.875rem 1rem 0.875rem calc(1rem - 3px); */
}

.sidebar-nav-item.active i {
  color: #1a73e8;
}

.sidebar-nav-item.active:hover {
  /* background: linear-gradient(90deg, #d5e8ff 0%, #e8f3ff 100%); */
  color: #1a73e8;
}
/* 
/* Color coding for each nav item when active *//*
.sidebar-nav-item[asp-controller="Home"].active {
  background: linear-gradient(90deg, #cfe2ff 0%, #d5e8ff 100%);
  border-left-color: #0d6efd;
}

.sidebar-nav-item[asp-controller="Calendario"].active {
  background: linear-gradient(90deg, #dcfce7 0%, #e8f5e9 100%);
  border-left-color: #22c55e;
  color: #16a34a;
}

.sidebar-nav-item[asp-controller="Calendario"].active i {
  color: #22c55e;
}

.sidebar-nav-item[asp-controller="Gravacao"].active {
  background: linear-gradient(90deg, #fed7aa 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
  color: #d97706;
}

.sidebar-nav-item[asp-controller="Gravacao"].active i {
  color: #f59e0b;
}

.sidebar-nav-item[asp-controller="Gravacoes"].active {
  background: linear-gradient(90deg, #e9d5ff 0%, #f3e8ff 100%);
  border-left-color: #8b5cf6;
  color: #7c3aed;
}

.sidebar-nav-item[asp-controller="Gravacoes"].active i {
  color: #8b5cf6;
}

.sidebar-nav-item[asp-controller="Configuracoes"].active {
  background: linear-gradient(90deg, #fbcfe8 0%, #fce7f3 100%);
  border-left-color: #ec4899;
  color: #db2777;
}

.sidebar-nav-item[asp-controller="Configuracoes"].active i {
  color: #ec4899;
} */

#resumoHTML {
    padding: 1.5rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  flex: 1;
  margin-left: 260px;
  margin-top: 65px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 65px);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.vox-panel-hint {
  font-size: .75rem;
}

/* ========================================
   USER EMAIL & BUTTONS (Header)
   ======================================== */
.user-email {
    font-size: 0.875rem;
    color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sair {
    background: #f5f7fa;
    border: 2px solid #0d6efd !important;
    color: #0d6efd;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sair:hover {
  background: #0d6efd;
  color: #f5f7fa;
}

.btn-sair:active {
  transform: translateY(0);
}

/* ========================================
   VOXAGENT GLOBAL STYLES
   ======================================== */

/* Main Content Wrapper - VoxAgent Consistent */
.page-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  animation: fadeIn 0.3s ease-in;
}

/* All panels should follow VoxAgent style */
.vox-panel {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* All buttons should follow VoxAgent style */
.vox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.vox-btn-primary {
  background: var(--vox-blue);
  color: white;
}

.vox-btn-primary:hover {
  background: #0d5ccd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.vox-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.vox-btn-secondary:hover {
  background: #e2e8f0;
}

/* Input Fields - VoxAgent Style */
.vox-input,
.vox-input-group input,
input.filter-input,
select.filter-input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.75rem;
    color: #1e293b;
    transition: all 0.2s ease;
    height: 60%;
    outline: none;
    border-color: var(--vox-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.vox-input:focus,
.vox-input-group input:focus,
input.filter-input:focus,
select.filter-input:focus {
  outline: none;
  border-color: var(--vox-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.send-bot {
    height: 50%;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
}

/* Alert Messages - VoxAgent Consistent */
.vox-alert {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid;
}

.vox-alert.vox-alert-warning {
  background: var(--vox-yellow-light);
  border-color: var(--vox-yellow-border);
}

.vox-alert.vox-alert-success {
  background: var(--vox-green-light);
  border-color: var(--vox-green-border);
}

.vox-alert.vox-alert-error {
  background: var(--vox-red-light);
  border-color: var(--vox-red-border);
}

/* Empty States - VoxAgent Style */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* Loading States - VoxAgent Style */
.vox-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.vox-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--vox-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dividers */
.divider {
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

/* Cards Grid - VoxAgent Responsive */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE VoxAgent
   ======================================== */

@media (max-width: 768px) {
  .page-content {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .vox-btn {
    width: 100%;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    top: 65px;
    height: calc(100vh - 65px);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    margin-top: 65px;
  }

  .header-toggle {
    display: block;
  }

  .page-content {
    padding: 1.5rem 1rem;
  }

  .user-email {
    display: none;
  }
}

/* ========================================
   LOGIN LAYOUT
   ======================================== */
.login-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navbar */
.navbar {
    padding: 1rem 1rem;
    font-size: 1.9rem;
    /* enforce background and border even if Bootstrap utilities are present */
    /* prominent red separator under the navbar */
    border-bottom: 6px solid #dc3545 !important; /* bootstrap danger red */
    box-shadow: 0 6px 12px rgba(220,53,69,0.08);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.9rem;
    font-weight: 600;

}

.nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem;
    font-weight: 500;
    color: #414bc0 !important;
}

/* Estilo para o bot�o de sair */
.btn-logout {
    color: #414bc0 !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: 2px solid #414bc0;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #414bc0;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 75, 192, 0.2);
}

/* Melhorar o texto de sauda��o */
.navbar-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #414bc0 !important;
}

/* Bot Toggle - Minimalista */
.bot-toggle-container {
  margin-top: 3rem;
}

.toggle-btn {
  background: none;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  padding: 0;
}

.toggle-btn.active {
  border-color: #28a745;
  color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.toggle-btn.active:hover {
  background: rgba(40, 167, 69, 0.1);
}

.toggle-btn.inactive {
  border-color: #e0e0e0;
  color: #999;
}

.toggle-btn.inactive:hover {
  border-color: #28a745;
  color: #28a745;
}

.toggle-icon {
  font-size: 3rem;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 40px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 32px;
  width: 32px;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #28a745;
}

input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
  transform: translateX(25px) translateY(-50%);
}

.slider.round {
  border-radius: 40px;
}

.slider.round:before {
  border-radius: 50%;
}

/* More specific overrides for cases where Bootstrap adds utility classes */
.navbar.border-bottom {
    border-bottom: 5px solid #414bc0 !important;
}

/* Estilização da seleção de idiomas */
.language-selector {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.language-selector label {
    display: block;
    font-size: 1.25rem;
    color: #414bc0;
    font-weight: 600;
    margin-bottom: 10px;
}

.language-selector select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 2px solid #414bc0;
    background: white;
    font-size: 0.95rem;
    color: #414bc0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.language-selector select:hover {
    border-color: #5e65b6;
    background: #f8f9fa;
}

.language-selector select:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.language-selector select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #d1d1d1;
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.page-title i {
    color: #0d6efd;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* Botões outline-primary em todas as páginas */
.btn-outline-primary {
  padding: 0.3rem 0.65rem !important;
  font-size: 0.875rem !important;
}

/* ========================================
   CONFIGURAÇÕES PAGE - NEW STYLES
   ======================================== */
.config-section {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin: 0.25rem;
  border-radius: 14px;
  background: #f8fafc;
  transition: all 0.2s ease;
  gap: 2rem;
}

.config-item:hover {
  background: #f1f5f9;
}

.config-item:last-child {
  border-bottom: none;
}

.config-item-content {
  flex: 1;
}

.config-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.config-item-title i {
    color: #0d6efd;
}

.config-item-description {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ========================================
   GRAVAÇÕES PAGE - NEW STYLES
   ======================================== */
.recording-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.recording-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0d6efd 0%, var(--portage) 100%);
}

.recording-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  /* transform: translateY(-4px); */
}

.recording-card .recording-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.recording-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recording-date i {
    color: #0d6efd;
}

.recording-actions {
  display: flex;
  gap: 0.5rem;
}

.recording-card audio {
  border-radius: 8px;
  background: #f8fafc;
}

.btn-icon {
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.btn-icon:hover {
  background: #f1f5f9;
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-2px);
}

.btn-icon.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-1px);
  border-color: transparent;
  color: #fff;
}

/* ========================================
   CALENDÁRIO PAGE - NEW STYLES
   ======================================== */
.events-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-left: 4px solid #0d6efd;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

/*.event-card:hover {*/
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);*/
  /* transform: translateX(6px); */
  /*border-left-color: var(--portage);*/
/*}*/

/* Eventos passados - estilo cinza */
.event-card.past-event {
  background: #f8f9fa;
  border-color: #e9ecef;
  border-left-color: #6c757d;
}

.event-card.past-event .event-title {
  color: #6c757d;
}

/*.event-card.past-event:hover {
  border-left-color: #495057;
}*/

.event-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.event-time {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.event-time i {
  color: #0d6efd;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(65, 75, 192, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-link:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-3px);
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
  margin-top: 1.5rem;
  border-radius: 14px;
  padding: .75rem 1rem;
  border: none;
  font-size: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.alert i {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.alert-info {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #0369a1;
  border-left: 4px solid #0ea5e9;
}

.alert-success {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  color: #166534;
  border-left: 4px solid #22c55e;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #b45309;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 5rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #94a3b8;
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Login Screen (Not Authenticated) */
.login-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f4e 0%, #2d3380 50%, #414bc0 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 2000;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(122, 130, 233, 0.1) 0%, transparent 50%);
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.login-particles::before,
.login-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(122, 130, 233, 0.08);
  animation: float 8s ease-in-out infinite;
}

.login-particles::before {
  top: 10%;
  left: 10%;
}

.login-particles::after {
  bottom: 10%;
  right: 10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 440px;
  width: 90%;
  position: relative;
  z-index: 10;
  animation: cardSlideUp 0.6s ease-out;
  backdrop-filter: blur(20px);
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Logo Animation */
.login-logo {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.logo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 25px rgba(65, 75, 192, 0.4);
}

.logo-icon i {
  font-size: 2rem;
  color: white;
}

.logo-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--portage);
  border-radius: 50%;
  opacity: 0;
  animation: ringPulse 3s ease-out infinite;
}

.ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring-2 { width: 95px; height: 95px; animation-delay: 1s; }
.ring-3 { width: 110px; height: 110px; animation-delay: 2s; }

@keyframes ringPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.login-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Login Features */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border-radius: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #4a5568;
}

.feature-item i {
  color: #10b981;
  font-size: 1rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(65, 75, 192, 0.35);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(65, 75, 192, 0.5);
}

.btn-login:active {
  transform: translateY(-1px);
}

.btn-login i {
  font-size: 1.5rem;
  display: inline-block;
  line-height: 1;
}

.login-secure {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-secure i {
  color: #10b981;
}

/* Home Dashboard (Authenticated) */
.home-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

/* Status Cards */
.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.status-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e8ecef;
  transition: all 0.3s ease;
}

.status-card:hover {
  /* transform: translateY(-1px); */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.status-card.status-active::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.status-card.status-active {
  border-color: #d1fae5;
  background: linear-gradient(to bottom right, #fff, #f0fdf4);
}

.status-card.status-inactive::before {
  background: #fca5a5;
}

.status-card.status-inactive {
  border-color: #fee2e2;
}

.status-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.status-active .status-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.status-inactive .status-icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #9ca3af;
}

.status-content {
  flex: 1;
}

.status-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.status-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.status-text i {
  font-size: 1rem;
}

.status-active .status-text {
  color: #10b981;
}

.status-inactive .status-text {
  color: #ef4444;
}

.status-hint {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

.btn-calendar-access {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-calendar-access:hover {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-enable-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(65, 75, 192, 0.25);
}

.btn-enable-calendar:hover {
  background: linear-gradient(135deg, var(--east-bay) 0%, var(--indigo) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 75, 192, 0.35);
}

.btn-disable-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
  border: none;
  cursor: pointer;
}

.btn-disable-calendar:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.35);
}

.btn-disable-calendar i {
  font-size: 0.95rem;
}

.status-hint {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 8px 0;
  line-height: 1.4;
}

/* Bot Entry Section */
.bot-entry-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--indigo);
}

.section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.bot-form {
  margin-bottom: 1rem;
}

.bot-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bot-link-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.bot-link-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(65, 75, 192, 0.1);
  background: white;
}

.bot-link-input::placeholder {
  color: #94a3b8;
}

.btn-start-bot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(65, 75, 192, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-start-bot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-start-bot:hover:not(:disabled)::before {
  left: 100%;
}

.btn-start-bot:hover:not(:disabled) {
  background: linear-gradient(45deg, var(--east-bay) 0%, var(--indigo) 50%);
  /* transform: translateY(-1px); */
  box-shadow: 0 6px 20px rgba(65, 75, 192, 0.4);
}

.btn-start-bot:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-start-bot:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #94a3b8;
  box-shadow: none;
}

.status-message {
  margin-top: 1rem;
  border-radius: 10px;
}

/* Recording Controls */
.recording-controls {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recording-alert {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8f8 100%);
  border: 2px solid #fca5a5;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.recording-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
  background-size: 200% 100%;
  animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.recording-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.status-live {
  background: #ef4444;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: liveFlash 1.5s ease-in-out infinite;
}

@keyframes liveFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.recording-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.recording-pulse {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-core {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  position: relative;
  border: 3px solid #ef4444;
  animation: pulseBorder 1s ease-in-out infinite;
}

.pulse-core i {
  color: white;
  font-size: 1.25rem;
  animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pulseBorder {
  0% {
    border-color: #ef4444;
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6),
                0 0 0 0 rgba(239, 68, 68, 1),
                0 0 20px rgba(239, 68, 68, 0.4);
  }
  50% {
    border-color: #ff0000;
    border-width: 5px;
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.9),
                0 0 0 8px rgba(239, 68, 68, 0.6),
                0 0 30px rgba(239, 68, 68, 0.7);
  }
  100% {
    border-color: #ef4444;
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6),
                0 0 0 0 rgba(239, 68, 68, 1),
                0 0 20px rgba(239, 68, 68, 0.4);
  }
}

.pulse-ring-1,
.pulse-ring-2,
.pulse-ring-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #ef4444;
  border-radius: 50%;
  animation: pulseRing 1.5s ease-out infinite;
}

.pulse-ring-1 { width: 50px; height: 50px; animation-delay: 0s; }
.pulse-ring-2 { width: 50px; height: 50px; animation-delay: 0.5s; }
.pulse-ring-3 { width: 50px; height: 50px; animation-delay: 1s; }

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-width: 3px;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
    border-width: 2px;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
    border-width: 1px;
  }
}

.recording-info {
  flex: 1;
}

.recording-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recording-title-audio {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recording-title-audio i{
    color: #0d6efd;
    transform: translateY(0);
}


.recording-dot {
        font-size: 0.6rem;
        color: #ef4444;
        animation: dotBlink 1s ease-in-out infinite;
    }

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.recording-bot-name {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
}

.recording-timer {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  font-family: 'Segoe UI', monospace;
  letter-spacing: 2px;
}

.btn-stop-recording {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-stop-recording::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-stop-recording:hover:not(:disabled)::before {
  left: 100%;
}

.btn-stop-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-stop-icon i {
  font-size: 0.9rem;
}

.btn-stop-recording:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-stop-recording:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-stop-recording:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #9ca3af;
}

/* Quick Links */
.quick-links {
  margin-bottom: 2rem;
}

.quick-links .section-title {
  margin-bottom: 1.25rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.quick-link-card {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--portage));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.quick-link-card i {
  font-size: 2.25rem;
  color: var(--indigo);
  transition: all 0.3s ease;
}

.quick-link-card span {
  font-size: 0.95rem;
}

.quick-link-card:hover {
  border-color: var(--portage);
  background: linear-gradient(to bottom right, #fff, #f8f9ff);
  box-shadow: 0 8px 25px rgba(65, 75, 192, 0.15);
  color: var(--indigo);
  transform: translateY(-4px);
}

.quick-link-card:hover::before {
  transform: scaleX(1);
}

.quick-link-card:hover i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .bot-input-group {
    flex-direction: column;
  }

  .recording-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .status-cards {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  
  /* Login Responsive */
  .login-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .login-title {
    font-size: 2rem;
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
  }
  
  .logo-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
  }
  
  .logo-icon i {
    font-size: 1.5rem;
  }
  
  .ring-1 { width: 65px; height: 65px; }
  .ring-2 { width: 78px; height: 78px; }
  .ring-3 { width: 90px; height: 90px; }
  
  .login-features {
    padding: 1rem;
  }
  
  .feature-item {
    font-size: 0.9rem;
  }
  
  .btn-login {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Recording Responsive */
  .recording-pulse {
    width: 55px;
    height: 55px;
  }
  
  .pulse-core {
    width: 40px;
    height: 40px;
  }
  
  .pulse-core i {
    font-size: 1rem;
  }
  
  .recording-timer {
    font-size: 1.25rem;
  }
  
  .btn-stop-recording {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
  
  /* Page Header Responsive */
  .page-header {
    padding-bottom: 1rem;
  }
  
  .page-title {
    font-size: 1.25rem;
  }
  
  /* Welcome Section Responsive */
  .welcome-section {
    padding: 1.5rem;
  }
  
  .welcome-title {
    font-size: 1.5rem;
  }
  
  /* Config Responsive */
  .config-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Link do Logo */
.sidebar-logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sidebar-logo-link:hover .sidebar-logo {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* Form Controls */
.form-select {
  padding: 0.625rem 1rem;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #1e293b;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 500;
}

.form-select:hover:not(:disabled) {
  border-color: var(--portage);
}

.form-select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(65, 75, 192, 0.1);
  background: white;
}

.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Button Primary */
.btn-primary {
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: .25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  color: white;
}

.hv:hover {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    transform: translateY(-1px);
}

.hv.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 6px 20px rgba(200, 35, 51, 0.35) !important;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection */
::selection {
  background: var(--portage);
  color: white;
}

.title-menu {
    color: #0d6efd;
}

.title-menu-mic {
    color: #0d6efd;
    border-radius: 4px;
}

.recording-details {
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.recording-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recording-details i {
  color: #0d6efd;
  font-size: 0.85rem;
}

/* ========================================
   FILTER TOGGLE - GRAVAÇÕES
   ======================================== */
.filter-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    border-color: #0d6efd;
    background: #f8f9ff;
    color: #0d6efd;
}

.filter-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.active-filter-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--portage) 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========================================
   FILTERS PANEL - GRAVAÇÕES
   ======================================== */
.filters-panel {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(65, 75, 192, 0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-label i {
    color: #0d6efd;
    font-size: 0.85rem;
}

.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: white;
}

.filter-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(65, 75, 192, 0.1);
}

.filter-input::placeholder {
    color: #94a3b8;
}

/* Date input styling */
.filter-input[type="date"] {
    cursor: pointer;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   SEARCH BUTTONS - GRAVAÇÕES
   ======================================== */
.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    /*    background: #0d6efd;*/
    border: 2px solid transparent;
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(65, 75, 192, 0.25);
}

.search-btn:hover {
    background: #dfecff;
    color: #0d6efd;
    border-color: #fecaca;
}

.search-btn:active {
    transform: translateY(0);
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ========================================
   ACTIVE FILTERS - GRAVAÇÕES
   ======================================== */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(65, 75, 192, 0.1) 0%, rgba(122, 130, 233, 0.1) 100%);
    border: 1px solid rgba(65, 75, 192, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--indigo);
    font-weight: 500;
}

.filter-tag i.fa-xmark {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 0.25rem;
}

.filter-tag i.fa-xmark:hover {
    opacity: 1;
}

.divider {
    padding: 0 1.5rem;
}
/* ========================================
   PAGINA��O
   ======================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 2px solid var(--indigo);
    background-color: transparent;
    color: var(--indigo);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--indigo);
    color: white;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(65, 75, 192, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn.active {
    background-color: var(--indigo);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 75, 192, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--indigo);
    font-weight: bold;
    user-select: none;
}

.btnBaixarTranscricao {
    display: inline-block;
    color: var(--color-text);
    margin-top: 1rem;
    font-size: 0.8rem;
}
.btnBaixarTranscricao:hover {
    color: var(--indigo);
}

/* ========================================
   VOXAGENT STYLE - DASHBOARD CARDS
   ======================================== */

/* Stats Cards Container */
.vox-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Individual Stat Card */
.vox-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--vox-green);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    position: relative;
}

.vox-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vox-stat-card.card-green { border-top-color: var(--vox-green); }
.vox-stat-card.card-yellow { border-top-color: var(--vox-yellow); }
.vox-stat-card.card-blue { border-top-color: var(--vox-blue); }
.vox-stat-card.card-purple { border-top-color: var(--vox-purple); }
.vox-stat-card.card-red { border-top-color: var(--vox-red); }

.vox-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vox-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vox-stat-badge.badge-green {
    background: var(--vox-green);
    color: white;
}

.vox-stat-badge.badge-yellow {
    background: var(--vox-yellow);
    color: white;
}

.vox-stat-badge.badge-blue {
    background: var(--vox-blue);
    color: white;
}

.vox-stat-badge.badge-purple {
    background: var(--vox-purple);
    color: white;
}

.vox-stat-badge.badge-red {
    background: var(--vox-red);
    color: white;
}

.vox-stat-badge.badge-gray {
    background: var(--vox-gray);
    color: white;
}

.vox-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--vox-gray);
    opacity: 0.6;
}

.vox-stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.75rem 0;
}

.vox-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vox-stat-label {
    font-size: 0.875rem;
    color: var(--vox-gray);
    margin: 0;
}

/* Stat Card Footer */
.vox-stat-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.vox-stat-footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.vox-stat-footer-item i {
    font-size: 1rem;
}

.vox-stat-footer-item.text-green { color: var(--vox-green); }
.vox-stat-footer-item.text-yellow { color: var(--vox-yellow); }
.vox-stat-footer-item.text-blue { color: var(--vox-blue); }
.vox-stat-footer-item.text-purple { color: var(--vox-purple); }

/* ========================================
   VOXAGENT STYLE - SECTION PANELS
   ======================================== */

.vox-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.vox-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.vox-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.vox-panel-title i {
    color: var(--vox-blue);
    font-size: 1rem;
}

.vox-panel-subtitle {
    font-size: 0.8rem;
    color: var(--vox-gray);
    margin: 0.25rem 0 0 0;
}

.vox-panel-body {
    padding: 1.5rem;
}

.vox-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ========================================
   VOXAGENT STYLE - HOME WELCOME SECTION
   ======================================== */

.vox-welcome {
    background: var(--indigo);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.vox-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.vox-welcome-content {
    position: relative;
    z-index: 1;
}

.vox-welcome-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.vox-welcome-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.vox-welcome-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ========================================
   HOME COMPACT STYLES
   ======================================== */

.home-compact {
    max-width: 900px;
    margin: 0 auto;
}

/* Welcome Compact */
.vox-welcome-compact {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
}

.vox-welcome-compact::before {
    width: 180px;
    height: 180px;
    top: -35%;
    right: -8%;
}

.vox-welcome-compact .vox-welcome-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.35rem;
}

.vox-welcome-compact .vox-welcome-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vox-welcome-compact .vox-welcome-title i {
    font-size: 1.25rem;
}

.vox-welcome-compact .vox-welcome-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.vox-welcome-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Status Row Compact */
.vox-status-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Mini Cards */
.vox-mini-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--vox-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.vox-mini-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vox-mini-card.card-green { border-left-color: var(--vox-green); }
.vox-mini-card.card-yellow { border-left-color: var(--vox-yellow); }
.vox-mini-card.card-blue { border-left-color: var(--vox-blue); }
.vox-mini-card.card-purple { border-left-color: var(--vox-purple); }
.vox-mini-card.card-red { border-left-color: var(--vox-red); }

.vox-mini-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--vox-gray);
    flex-shrink: 0;
}

.vox-mini-card.card-green .vox-mini-card-icon { background: var(--vox-green-light); color: var(--vox-green); }
.vox-mini-card.card-yellow .vox-mini-card-icon { background: var(--vox-yellow-light); color: var(--vox-yellow); }
.vox-mini-card.card-blue .vox-mini-card-icon { background: var(--vox-blue-light); color: var(--vox-blue); }
.vox-mini-card.card-purple .vox-mini-card-icon { background: var(--vox-purple-light); color: var(--vox-purple); }
.vox-mini-card.card-red .vox-mini-card-icon { background: var(--vox-red-light); color: var(--vox-red); }

.vox-mini-card-content {
    flex: 1;
    min-width: 0;
}

.vox-mini-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.vox-mini-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.vox-mini-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.vox-mini-badge.badge-green { background: var(--vox-green); color: white; }
.vox-mini-badge.badge-yellow { background: var(--vox-yellow); color: white; }
.vox-mini-badge.badge-blue { background: var(--vox-blue); color: white; }
.vox-mini-badge.badge-purple { background: var(--vox-purple); color: white; }
.vox-mini-badge.badge-red { background: var(--vox-red); color: white; }
.vox-mini-badge.badge-gray { background: var(--vox-gray); color: white; }

.vox-mini-card-text {
    font-size: 0.85rem;
    color: var(--vox-gray);
    margin: 0;
}

.vox-mini-card-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0.25rem;
}

.vox-mini-card-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.2rem 0 0 0;
}

.vox-mini-card-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vox-gray);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vox-mini-card-action:hover {
    background: var(--vox-blue);
    color: white;
}

/* Panel Compact */
.vox-panel-compact {
    margin-bottom: 1.25rem;
}

.vox-panel-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.vox-panel-header-inline .vox-panel-title {
    font-size: 1rem;
    gap: 0.6rem;
}

.vox-panel-header-inline .vox-panel-title i {
    font-size: 1rem;
}

.vox-quick-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vox-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vox-quick-chip i {
    font-size: 0.9rem;
    color: var(--vox-blue);
}

.vox-quick-chip:hover {
    background: var(--vox-blue);
    border-color: var(--vox-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.vox-quick-chip:hover i {
    color: white;
}

/* Responsive Compact */
@media (max-width: 640px) {
    .vox-status-row {
        flex-direction: column;
    }
    
    .vox-quick-row {
        justify-content: center;
    }
}

/* ========================================
   VOXAGENT STYLE - STATUS CARDS (HOME)
   ======================================== */

.vox-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.vox-status-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--vox-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.vox-status-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vox-status-card.status-active {
    border-left-color: var(--vox-green);
    background: var(--vox-green-light);
}

.vox-status-card.status-inactive {
    border-left-color: var(--vox-red);
    background: var(--vox-red-light);
}

.vox-status-card.status-warning {
    border-left-color: var(--vox-yellow);
    background: var(--vox-yellow-light);
}

.vox-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.vox-status-card.status-active .vox-status-icon {
    background: var(--vox-green);
    color: white;
}

.vox-status-card.status-inactive .vox-status-icon {
    background: #f1f5f9;
    color: var(--vox-gray);
}

.vox-status-card.status-warning .vox-status-icon {
    background: var(--vox-yellow);
    color: white;
}

.vox-status-content {
    flex: 1;
}

.vox-status-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.vox-status-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--vox-gray);
    margin: 0;
}

.vox-status-card.status-active .vox-status-text {
    color: var(--vox-green);
}

.vox-status-card.status-inactive .vox-status-text {
    color: var(--vox-red);
}

.vox-status-hint {
    font-size: 0.8rem;
    color: var(--vox-gray);
    margin-top: 0.5rem;
}

/* ========================================
   VOXAGENT STYLE - QUICK LINKS
   ======================================== */

.vox-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.vox-quick-link {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--vox-gray);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border-top: 3px solid transparent;
}

.vox-quick-link:hover {
    border-top-color: var(--vox-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--vox-blue);
    transform: translateY(-2px);
}

.vox-quick-link i {
    font-size: 1.85rem;
    color: var(--vox-blue);
}

.vox-quick-link span {
    font-size: 0.95rem;
}

/* ========================================
   VOXAGENT STYLE - BOT INPUT SECTION
   ======================================== */

.vox-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vox-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.vox-input:focus {
    outline: none;
    border-color: var(--vox-blue);
    background: white;
}

.vox-input::placeholder {
    color: #94a3b8;
}

.vox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vox-btn-primary {
    background: var(--vox-blue);
    color: white;
}

.vox-btn-primary:hover:not(:disabled) {
    background: #0a58ca;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.vox-btn-success {
    background: var(--vox-green);
    color: white;
}

.vox-btn-success:hover:not(:disabled) {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.vox-btn-danger {
    background: var(--vox-red);
    color: white;
}

.vox-btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.vox-btn-secondary {
    background: #f1f5f9;
    color: var(--vox-gray);
}

.vox-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.vox-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   BUTTON UTILITIES - Modal Actions
   ======================================== */

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-confirm-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-delete:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.btn-action.btn-primary {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.btn-action.btn-primary:hover {
    background: #0a58ca;
    border-color: #0a58ca;
}

/* ========================================
   VOXAGENT STYLE - RECORDING CONTROL
   ======================================== */

.vox-control-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.vox-control-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.vox-control-icon.icon-loading {
    background: var(--vox-blue-light);
    color: var(--vox-blue);
}

.vox-control-icon.icon-inactive {
    background: var(--vox-gray-light);
    color: var(--vox-gray);
}

.vox-control-icon.icon-error {
    background: var(--vox-yellow-light);
    color: var(--vox-yellow);
}

.vox-control-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.vox-control-description {
    color: var(--vox-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vox-control-description a {
    color: var(--vox-blue);
    text-decoration: none;
    font-weight: 600;
}

.vox-control-description a:hover {
    text-decoration: underline;
}

.vox-control-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Recording Active State */
.vox-recording-active {
    border: 2px solid var(--vox-red);
    border-top: 4px solid var(--vox-red);
}

.vox-recording-alert {
    background: var(--vox-red-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vox-recording-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--vox-red);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    animation: voxPulse 2s ease-in-out infinite;
}

@keyframes voxPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.vox-recording-info {
    text-align: center;
}

.vox-recording-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.vox-recording-dot {
    font-size: 0.5rem;
    color: var(--vox-red);
    animation: dotBlink 1s ease-in-out infinite;
}

.vox-recording-bot {
    font-size: 0.8rem;
    color: #7f1d1d;
    margin-bottom: 0.25rem;
}

.vox-recording-timer {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    font-family: 'Segoe UI', monospace;
    letter-spacing: 2px;
}

.vox-recording-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vox-recording-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vox-gray);
    font-size: 0.9rem;
}

.vox-recording-detail i {
    color: var(--vox-green);
}

.vox-btn-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--vox-red);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.vox-btn-stop:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.vox-btn-stop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vox-stop-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vox-warning-text {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.vox-warning-text i {
    color: var(--vox-yellow);
}

.btn-stop-text {
  font-weight: 700;
}

/* Bot Entering/Joining States */
/* ========================================
   VOXAGENT STYLE - ACTIVE BOT WARNING
   ======================================== */

.vox-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.vox-alert-warning {
    background: var(--vox-yellow-light);
    border: 1px solid var(--vox-yellow-border);
}

.vox-alert-icon {
    font-size: 1.5rem;
    color: var(--vox-yellow);
}

.vox-alert-content {
    flex: 1;
}

.vox-alert-title {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.vox-alert-text {
    font-size: 0.75rem;
    color: #a16207;
    margin-bottom: 10px;
}

.vox-alert-action {
    flex-shrink: 0;
}

/* ========================================
   VOXAGENT STYLE - SECTION INFO BAR
   ======================================== */

.vox-info-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--vox-blue-light);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
/*    margin-bottom: 1.5rem;*/
/*    font-size: 0.75rem !important;*/
}

.vox-info-bar i {
    color: var(--vox-blue);
}

.vox-info-bar span {
    font-size: 0.8rem;
    color: #1e40af;
}

/* ========================================
   VOXAGENT STYLE - BUTTON VARIANTS
   ======================================== */

.vox-btn-solid {
    background: var(--vox-blue);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.vox-btn-solid:hover {
    background: #0a58ca;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.vox-btn-solid:active {
    transform: translateY(1px);
}

.vox-btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   REDUCED SIZES FOR NON-HOME PAGES
   ======================================== */
.sidebar-nav-item {
  padding: 0.625rem 0.75rem;
  font-size: 0.85rem;
}

.sidebar-nav-item i {
  font-size: 1.1rem;
  width: 24px;
  margin-right: 0.75rem;
}

.vox-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: var(--indigo);
  color: white;
  padding: 0.5rem 1rem;
  margin-top: auto;
  width: 100%;
  border-top: 2px solid #0a58ca;
  box-shadow: 0 -2px 8px rgba(13, 110, 253, 0.15);
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.auth-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.confirm-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 700px;
    width: 90%;
}
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}
.logo-section i {
    font-size: 60px;
    color: #0f3460;
    margin-bottom: 15px;
}
.logo-section h1 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 5px;
}
.logo-section p {
    color: #666;
    font-size: 1.1rem;
}
.btn-login {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 52, 96, 0.4);
}
.info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}
.info-section h5 {
    color: #0f3460;
    margin-bottom: 15px;
}
.info-section ul {
    color: #555;
    padding-left: 20px;
}
.info-section li {
    margin-bottom: 10px;
}
/* Remover qualquer efeito de foco padrão */
button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Mostrar foco apenas no TAB (teclado) */
button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    box-shadow: none !important;
}

/* Botões de data - VoxAgent Style */
#btnToday,
#btnTomorrow,
#btnNextWeek,
#btnRefreshEvents,
#btnBlockAccess {
    background: white;
    color: var(--vox-blue);
    border: 1px solid var(--vox-blue);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botão Danger */
#btnBlockAccess {
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Hover com preenchimento - Botões Date e Refresh (azul) */
#btnToday:hover,
#btnTomorrow:hover,
#btnNextWeek:hover,
#btnRefreshEvents:hover {
    background: #0a58ca;
    color: white !important;
    border: 1px solid #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4) !important;
}

/* Hover - Botão Danger (vermelho mais escuro) */
#btnBlockAccess:hover {
    background: #c82333;
    color: white;
    border: 1px solid #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 35, 51, 0.3);
}

/* Ativo */
#btnToday:active,
#btnTomorrow:active,
#btnNextWeek:active,
#btnRefreshEvents:active,
#btnBlockAccess:active {
    transform: translateY(0);
}

/* Estado selecionado (para botões de data) */
#btnToday.active,
#btnTomorrow.active,
#btnNextWeek.active {
    background: var(--vox-blue) !important;
    color: white !important;
    border: 1px solid var(--vox-blue) !important;
}

/* Toast Notifications */
.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 60px;
}

.toast-notification.success {
    background: #00a67e;
    color: white;
}

.toast-notification.error {
    background: #dc3545;
    color: white;
}

.toast-notification.warning {
    background: #ffc107;
    color: #000;
}

.toast-notification.info {
    background: #0d6efd;
    color: white;
}

.toast-notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-notification .toast-message {
    font-weight: 400;
    opacity: 0.95;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* VoxAgent Config Styles */
.vox-config-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.vox-config-item:last-child {
    border-bottom: none;
}

.vox-config-item:hover {
    background-color: #fafbfc;
}

.vox-config-item.disabled {
    opacity: 0.6;
}

.vox-config-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.vox-config-content {
    flex: 1;
}

.vox-config-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.vox-config-description {
    font-size: 0.8rem;
    color: var(--vox-gray);
    margin: 0;
}

.vox-config-action {
    flex-shrink: 0;
}

/* VoxAgent Switch Toggle */
.vox-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.vox-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vox-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.vox-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.vox-switch input:checked + .vox-slider {
    background: var(--vox-green);
}

.vox-switch input:checked + .vox-slider:before {
    transform: translateX(24px);
}

.vox-switch input:focus + .vox-slider {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.vox-switch input:disabled + .vox-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* VoxAgent Select */
.vox-select {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 0.75rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.vox-select:hover {
    border-color: var(--vox-blue);
}

.vox-select:focus {
    outline: none;
    border-color: var(--vox-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vox-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}
.confirm-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 20px;
}
/* Círculos decorativos */
.circle {
    position: fixed;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
}
.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}
.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}
.circle-4 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 3%;
}
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 35px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}
.icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
}
.icon-container::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 26px;
}
.icon-container i {
    font-size: 35px;
    color: white;
}
h1 {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.warning-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: left;
}
.warning-section h5 {
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.warning-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #444;
    font-size: 0.85rem;
    line-height: 1.4;
}
.warning-item:last-child {
    margin-bottom: 0;
}
.warning-item i {
    color: #f59e0b;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #444;
    font-size: 0.85rem;
    line-height: 1.4;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-item i {
    color: #575757;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.permission-box {
    background: #fff3cd;
    border-left: 3px solid #f59e0b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left;
}
.permission-box p {
    color: #856404;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}
.permission-box i {
    color: #f59e0b;
}
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: white;
}
.btn-login img {
    width: 20px;
    height: 20px;
}
.footer-text {
    margin-top: 18px;
    color: #888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.footer-text i {
    color: #22c55e;
}

/* Responsivo */
@media (max-height: 700px) {
    .confirm-body {
        align-items: flex-start;
        padding-top: 20px;
    }
    .login-card {
        padding: 25px 20px;
    }
}
.recording-control-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0;
}

/* Bot Entering/Joining States - VoxAgent Style */
.vox-control-card.bot-joining .vox-recording-alert {
    background: var(--vox-yellow-light);
}

.vox-control-card.bot-joining .vox-recording-badge {
    background: var(--vox-yellow);
}

.vox-control-card.bot-joining .vox-recording-title {
    color: #92400e;
}

.vox-control-card.bot-joining .vox-recording-dot {
    color: var(--vox-yellow);
}

.vox-control-card.bot-joining {
    border-color: var(--vox-yellow);
    border-top-color: var(--vox-yellow);
}

.vox-control-card.bot-in-meeting .vox-recording-alert {
    background: var(--vox-blue-light);
}

.vox-control-card.bot-in-meeting .vox-recording-badge {
    background: var(--vox-blue);
}

.vox-control-card.bot-in-meeting .vox-recording-title {
    color: #1e40af;
}

.vox-control-card.bot-in-meeting .vox-recording-dot {
    color: var(--vox-blue);
}

.vox-control-card.bot-in-meeting {
    border-color: var(--vox-blue);
    border-top-color: var(--vox-blue);
}
.search-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.search-btn:hover {
    /* background: #1e40af; */
    background: var(--vox-blue);
    color: white;
    transform: translateY(-1px);
    /* box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2); */
}

.search-btn:active {
    transform: translateY(0);
}

.clear-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.clear-btn:active {
    transform: translateY(0);
}

/* Modal Overlay */
.audio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.audio-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.audio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--vox-blue);
    color: white;
    border-top: 4px solid var(--vox-blue);
}

.audio-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-modal-header h3 span {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.audio-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Player */
.audio-modal-player {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.audio-modal-player audio {
    width: 100%;
    border-radius: 8px;
}

.audio-time-display {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-family: 'Consolas', monospace;
}

/* Modal Transcription */
.audio-modal-transcription {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.transcription-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background: #fafbfc;
}

.transcription-header i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.transcription-count {
    font-size: 0.8rem;
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 500;
}

.transcription-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    max-height: 350px;
    scroll-behavior: smooth;
}

.transcription-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #6c757d;
}

.transcription-empty {
    text-align: center;
    padding: 2rem;
    color: #adb5bd;
}

.transcription-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Transcription Entry */
.transcription-entry {
    padding: 0.875rem 1rem;
    margin-bottom: 0.625rem;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.transcription-entry:hover {
    background: #e9ecef;
}

.transcription-entry.active {
    background: linear-gradient(135deg, #e8eaff 0%, #f0f1ff 100%);
    border-left-color: #414bc0;
    box-shadow: 0 2px 8px rgba(65, 75, 192, 0.15);
}

.transcription-entry.active .entry-text {
    color: #1e293b;
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.entry-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0d6efd;
    background: rgba(65, 75, 192, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.entry-speaker {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.entry-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    padding-left: 0.25rem;
    margin-top: 0.125rem;
}

/* Scrollbar Styling */
.transcription-content::-webkit-scrollbar {
    width: 6px;
}

.transcription-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transcription-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.transcription-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Play Button on Recording Cards */
.buttons-container {
    display: flex;
    gap: 0.75rem;
    /* margin-bottom: 1rem; */
}

.btn-play-modal {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    justify-content: center;
    min-width: 90px;
}

.btn-play-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 75, 192, 0.3);
}

.btn-play-modal:active {
    transform: translateY(0);
}

/* Botão Resumo IA */
.btn-resumo-ia {
    background: var(--indigo);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 130px;
}

.btn-resumo-ia:hover {
    background: var(--indigo);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-resumo-ia:active {
    transform: translateY(0);
}

.btn-resumo-ia i {
    font-size: 0.8rem;
}

/* Modal Resumo IA */
.resumo-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
    line-height: 1.8;
}

.resumo-content h2 {
    color: #8b5cf6;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.resumo-content h2:first-child {
    margin-top: 0;
}

.resumo-content h3 {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: capitalize;
}

.resumo-content p {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: lowercase;
}

.resumo-content p::first-letter {
    text-transform: uppercase;
}

.resumo-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.resumo-content li {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: lowercase;
}

.resumo-content li::first-letter {
    text-transform: uppercase;
}

.resumo-content strong {
    color: #8b5cf6;
    font-weight: 600;
}

.resumo-content .resumo-timestamp {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    font-family: 'Consolas', monospace;
}

/* Modal de Confirmação de Exclusão */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.delete-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.delete-modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
}

.delete-modal-icon i {
    font-size: 1.75rem;
    color: white;
}

.delete-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.delete-modal-message {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.delete-modal-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-cancel,
.btn-confirm-delete {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-cancel:active,
.btn-confirm-delete:active {
    transform: translateY(0);
}

/* Modal de Transcrição Indisponível */
.transcription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.transcription-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

.transcription-modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.transcription-modal-icon i {
    font-size: 1.75rem;
    color: white;
}

.transcription-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.transcription-modal-message {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.transcription-modal-buttons {
    display: flex;
    justify-content: center;
}

.transcription-modal-buttons .btn-cancel {
    background: linear-gradient(135deg, #414bc0 0%, #5e65b6 100%);
    color: white;
    min-width: 120px;
}

.transcription-modal-buttons .btn-cancel:hover {
    background: linear-gradient(135deg, #3a42a8 0%, #4e559e 100%);
}
.summary-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
}

.loading-spinner {
  max-width: 400px;
}

.loading-spinner i {
  color: #0d6efd;
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.loading-spinner p {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d6efd 0%, #3d8bfd 100%);
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 20%; }
  50% { width: 80%; }
  100% { width: 20%; }
}

.summary-container {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.summary-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: space-between;
}

.btn-action {
  padding: 0.6rem 1.2rem;
  border: 2px solid #0d6efd;
  background: white;
  color: #0d6efd;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action:hover {
  background: #0d6efd;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(65, 75, 192, 0.2);
}

.btn-action.btn-primary {
  background: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.btn-action.btn-primary:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
}

.summary-body {
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

/* Classe do bloco de assunto gerado pela IA */
.assunto-block {
  margin-bottom: 40px;
  padding: 20px;
  border-left: 4px solid #0d6efd;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
}

.assunto-block h2 {
  color: #0d6efd;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: bold;
  text-transform: lowercase;
}

.assunto-block h2::first-letter {
  text-transform: uppercase;
}

.assunto-block h3 {
  color: #0d6efd;
  margin-top: 15px;
  font-size: 1.2em;
  text-transform: lowercase;
}

.assunto-block h3::first-letter {
  text-transform: uppercase;
}

.assunto-block ul {
  margin-left: 20px;
}

.assunto-block li {
  margin-bottom: 0.5rem;
}

.summary-body hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 30px 0;
}

.summary-body h2 {
  color: #0d6efd;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #f0f1ff;
  padding-bottom: 0.5rem;
  text-transform: lowercase;
}

.summary-body h2::first-letter {
  text-transform: uppercase;
}

.summary-body h2:first-child {
  margin-top: 0;
}

.summary-body p {
  color: #495057;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.summary-body ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.summary-body li {
  color: #495057;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.7;
}

.summary-body strong {
  color: #0d6efd;
  font-weight: 700;
}

.summary-body .resumo-timestamp {
  display: inline-block;
  background: transparent;
  color: #0d6efd;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Consolas', monospace;
}

.summary-body li strong {
  color: #0d6efd;
}

/* Estilos do cabeçalho de impressão */
.print-header {
  display: none;
}

.print-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.print-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.print-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.print-header-info {
  flex: 1;
}

.print-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d6efd;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.print-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.print-meta-item {
  font-size: 0.95rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.print-meta-item i {
  color: #0d6efd;
}

.print-divider {
  border: none;
  border-top: 3px solid #0d6efd;
  margin: 1.5rem 0;
}

/* Estilos do rodapé de impressão */
.print-footer {
  display: none;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.print-footer-content {
  text-align: right;
  font-size: 0.85rem;
  color: #6c757d;
}

.print-footer-content p {
  margin: 0.3rem 0;
}

.print-datetime {
  font-weight: 600;
  color: #495057;
}

.summary-error {
  text-align: center;
  padding: 4rem 2rem;
}

.summary-error i {
  color: #dc3545;
  margin-bottom: 1.5rem;
}

.summary-error h3 {
  color: #495057;
  margin-bottom: 1rem;
}

.summary-error p {
  color: #6c757d;
  margin-bottom: 2rem;
}

@media print {
  .page-header, .summary-actions {
      display: none;
  }
  .summary-actions .btn-action:not(.btn-primary) {
      display: none;
  }
  button {
      display: none !important;
  }
  .print-header {
      display: block;
  }
  .print-footer {
      display: block;
  }
  .summary-body {
      box-shadow: none;
      padding: 0;
  }
  /* Melhorar qualidade de impressão */
  body {
      background: white;
      color: #333;
  }
  .summary-container {
      max-width: 100%;
      margin: 0;
  }
  /* Esconder cabeçalho padrão do navegador */
  @page {
      margin-top: 0;
  }
  html, body {
      margin: 0;
      padding: 0;
  }
}