body {
    font-family: 'Inter', sans-serif;
}

.hidden {
    display: none;
}

.custom-checkbox:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-color: #7c3aed;
    /* purple-600 */
    border-color: #7c3aed;
    /* purple-600 */
}

.notification {
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
    margin-top: 0.75rem;
    /* Equivalent to mt-3 */
    padding: 0.75rem;
    /* Equivalent to p-3 */
}

.notification.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    transition: box-shadow 0.2s;
}

.custom-dropdown.open .dropdown-selected {
    box-shadow: 0 0 0 2px #c4b5fd;
    /* ring-2 ring-purple-400 */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd6fe;
    /* violet-200 */
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10;
    max-height: 280px;
    overflow-y: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
}

.custom-dropdown.open .dropdown-options {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-option {
    padding: 0.75rem;
    transition: background-color 0.1s;
}

.dropdown-option:hover {
    background-color: #ede9fe;
    /* violet-200 */
}

.dropdown-option.selected {
    background-color: #f5f3ff;
    /* violet-100 */
    font-weight: 500;
    color: #7c3aed;
    /* purple-600 */
}

.dropdown-arrow {
    transition: transform 0.2s;
    color: #7c3aed;
    /* purple-600 */
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* AI Chat Styles */
.ai-chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.ai-chat-bubble.user {
    background-color: #7c3aed;
    color: white;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}

.ai-chat-bubble.model {
    background-color: #f5f3ff;
    color: #5b21b6;
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
}

#ai-chat-history {
    padding: 1rem;
    flex-grow: 1;
    min-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: white;
}

/* AI Widget Styles */
.ai-widget {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.ai-widget.hidden {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

/* Enhanced AI FAB Button */
#ai-fab {
    animation: pulse-glow 3s infinite ease-in-out;
}

.ai-fab-gradient {
    background-image: linear-gradient(to right top, #8b5cf6, #7c3aed, #6d28d9);
}

.ai-fab-gradient:hover {
    background-image: linear-gradient(to right top, #a78bfa, #8b5cf6, #7c3aed);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(196, 181, 253, 0.4), 0 0 20px rgba(196, 181, 253, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(196, 181, 253, 0.7), 0 0 40px rgba(196, 181, 253, 0.4);
    }
}