/* ============================================================
   ADIT Export Utils - Botones de Exportación para Tablas y Gráficos
   Estilos para la barra de herramientas de exportación
   ============================================================ */

/* ===== BARRA DE EXPORTACIÓN ===== */
.adit-export-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.adit-export-bar.adit-export-bar-left {
  justify-content: flex-start;
}

.adit-export-bar.adit-export-bar-center {
  justify-content: center;
}

/* ===== BOTÓN DE EXPORTACIÓN ===== */
.adit-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #495057;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.adit-export-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.4s ease;
}

.adit-export-btn:hover::before {
  left: 100%;
}

.adit-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  color: #212529;
}

.adit-export-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.adit-export-btn i {
  font-size: 0.82rem;
}

/* ----- Variante: Excel ----- */
.adit-export-btn-excel {
  color: #1d6f42;
  border-color: rgba(29, 111, 66, 0.3);
}

.adit-export-btn-excel:hover {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #1d6f42;
  color: #1d6f42;
}

/* ----- Variante: CSV/Texto ----- */
.adit-export-btn-csv {
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.3);
}

.adit-export-btn-csv:hover {
  background: linear-gradient(145deg, #e7f1ff 0%, #cfe2ff 100%);
  border-color: #0d6efd;
  color: #0d6efd;
}

/* ----- Variante: Imagen ----- */
.adit-export-btn-image {
  color: #3351A6;
  border-color: rgba(107, 15, 42, 0.3);
}

.adit-export-btn-image:hover {
  background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 100%);
  border-color: #3351A6;
  color: #3351A6;
}

/* ===== SEPARADOR VISUAL ===== */
.adit-export-sep {
  width: 1px;
  height: 20px;
  background: #dee2e6;
  margin: 0 2px;
}

/* ===== TOOLTIP DE FEEDBACK ===== */
.adit-export-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2F2D38 0%, #3351A6 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(45, 11, 31, 0.35);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adit-export-toast.adit-export-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.adit-export-toast i {
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .adit-export-bar {
    justify-content: center;
    gap: 4px;
  }
  
  .adit-export-btn span {
    display: none;
  }
  
  .adit-export-btn {
    padding: 6px 10px;
  }
}

/* ===== INTEGRACIÓN CON PANELES ===== */
.panel-heading .adit-export-bar {
  padding: 0;
  margin-left: auto;
}

.panel-heading .adit-export-btn {
  padding: 3px 8px;
  font-size: 0.72rem;
}

/* ===== INTEGRACIÓN CON ADIT-CARD ===== */
.adit-card-header .adit-export-bar {
  padding: 0;
  margin-left: auto;
}

.adit-card-header .adit-export-btn {
  padding: 3px 8px;
  font-size: 0.72rem;
}
