/* 
 * Estilos personalizados para el tutorial de onboarding con Shepherd.js
 * Tema: Enigma Project - Amarillo y Negro
 */

/* Contenedor principal del tooltip */
.shepherd-theme-custom .shepherd-content {
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 2px solid #fbbf24;
    max-width: 400px;
}

/* Header del tooltip */
.shepherd-theme-custom .shepherd-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

/* Título */
.shepherd-theme-custom .shepherd-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Texto del cuerpo */
.shepherd-theme-custom .shepherd-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    padding-top: 1rem;
    margin: 0;
}

/* Footer con botones */
.shepherd-theme-custom .shepherd-footer {
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Botones principales */
.shepherd-theme-custom .shepherd-button {
    background: #fbbf24;
    color: #000000;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.shepherd-theme-custom .shepherd-button:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

.shepherd-theme-custom .shepherd-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

/* Botones secundarios */
.shepherd-theme-custom .shepherd-button-secondary {
    background: #e5e7eb;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background: #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Botón de cancelar (X) */
.shepherd-theme-custom .shepherd-cancel-icon {
    color: #9ca3af;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: #374151;
}

/* Overlay modal */
.shepherd-modal-overlay-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Elemento resaltado */
.shepherd-target-highlight {
    box-shadow: 0 0 0 4px #fbbf24 !important;
    border-radius: 8px;
}

/* Flecha del tooltip */
.shepherd-arrow {
    border-color: #fbbf24;
}

.shepherd-element[data-popper-placement^='top'] > .shepherd-arrow::before {
    border-top-color: #fbbf24;
}

.shepherd-element[data-popper-placement^='bottom'] > .shepherd-arrow::before {
    border-bottom-color: #fbbf24;
}

.shepherd-element[data-popper-placement^='left'] > .shepherd-arrow::before {
    border-left-color: #fbbf24;
}

.shepherd-element[data-popper-placement^='right'] > .shepherd-arrow::before {
    border-right-color: #fbbf24;
}

/* ============================================
   BOTÓN FLOTANTE PARA REINICIAR EL TOUR
   ============================================ */
.restart-tour-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fbbf24;
    color: #000000;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restart-tour-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.5);
}

.restart-tour-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.restart-tour-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Animación de entrada */
@keyframes tourButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restart-tour-btn {
    animation: tourButtonFadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .shepherd-theme-custom .shepherd-content {
        max-width: 90vw;
        padding: 1.25rem;
    }

    .shepherd-theme-custom .shepherd-title {
        font-size: 1.125rem;
    }

    .shepherd-theme-custom .shepherd-text {
        font-size: 0.875rem;
    }

    .shepherd-theme-custom .shepherd-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .restart-tour-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .restart-tour-btn svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Ocultar el botón cuando el tour está activo */
.shepherd-active .restart-tour-btn {
    display: none;
}

/* Asegurar que el contenido del tour sea legible */
.shepherd-theme-custom .shepherd-content * {
    box-sizing: border-box;
}
