/* Custom styles to enhance Tailwind CSS */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* Debt Calculator Slider Styles */
.slider-track {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
}

.slider-track-active {
    background: #3B82F6;
}

.slider-handle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3B82F6;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Form input focus styles */
.form-focus:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Custom tooltip */
.tooltip {
    position: relative;
}

.tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1E3A8A;
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: normal;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1E3A8A transparent transparent transparent;
    z-index: 10;
}

/* ElevenLabs Chat Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

#chat-with-abby {
    animation: pulse 2s infinite;
}

#chat-with-abby:hover {
    animation: none;
    transform: scale(1.05);
}

/* Abby Agent Styles */
.elevenlabs-agent-container {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.elevenlabs-agent-header {
    background-color: #3B82F6 !important;
}

.elevenlabs-agent-button {
    background-color: #3B82F6 !important;
    transition: all 0.2s ease !important;
}

.elevenlabs-agent-button:hover {
    background-color: #2563EB !important;
}