/* For custom loader animation */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar for a cleaner look */
#chat-window::-webkit-scrollbar,
#summary-content::-webkit-scrollbar {
    width: 6px;
}

#chat-window::-webkit-scrollbar-track,
#summary-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chat-window::-webkit-scrollbar-thumb,
#summary-content::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 10px;
}

#chat-window::-webkit-scrollbar-thumb:hover,
#summary-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* To hide the default marker of the details element */
#summary-title {
    list-style-type: none;
}
#summary-title::-webkit-details-marker {
    display: none;
}

/* Ensure the details element's content area can grow */
details[open] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

details[open] #summary-content {
    flex: 1;
}

/* Style for input and textarea */
input[type="text"], textarea {
    @apply w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 transition;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

