.joke-chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f56a6a;
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.joke-chat-icon:hover {
    transform: scale(1.1);
}

.joke-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    border: 1px solid #ddd;
}

.joke-chat-header {
    padding: 10px 15px;
    background-color: #f56a6a;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.joke-chat-header .close-btn {
    cursor: pointer;
    font-size: 18px;
}

.joke-chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.joke-chat-input-area {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
}

.joke-chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 12px 12px !important;
    outline: none;
    font-size: 14px;
}

.joke-chat-send {
    background-color: #f56a6a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
}

.joke-chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.joke-chat-user {
    align-self: flex-end;
    background-color: #fde3e3;
    border-bottom-right-radius: 5px;
}

.joke-chat-bot {
    align-self: flex-start;
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.joke-chat-typing {
    align-self: flex-start;
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
    display: none;
}

.joke-chat-typing .dots {
    display: flex;
}

.joke-chat-typing .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #888;
    border-radius: 50%;
    opacity: 0.6;
    animation: joke-chat-typing 1.4s infinite both;
}

.joke-chat-typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.joke-chat-typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes joke-chat-typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Rickroll Modal */
.rickroll-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.rickroll-content {
    background-color: #fefefe;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    width: 260px;
}

.close-modal {
    color: #fff;
    background-color: #f56a6a;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.close-modal:hover,
.close-modal:focus {
    background-color: #ff3c3c;
    text-decoration: none;
}

.rickroll-link {
    color: #f56a6a;
    text-decoration: underline;
    cursor: pointer;
}
