/* Chatbox Styles - Dark Theme */
#chat-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    cursor: pointer;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

#chat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chat-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

#chat-container.hidden {
    display: none;
}

.chat-header {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    color: #0a0a0f;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.chat-header button {
    background: rgba(10, 10, 15, 0.2);
    border: none;
    color: #0a0a0f;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-header button:hover {
    background: rgba(10, 10, 15, 0.3);
}

.messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #12121a;
    color: #f5f5f7;
    font-size: 0.95rem;
    line-height: 1.6;
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.input-container {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #f5f5f7;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-container input::placeholder {
    color: #8e8e93;
}

.input-container input:focus {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.03);
}

.input-container button {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    color: #0a0a0f;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

@media only screen and (max-width: 480px) {
    #chat-container {
        right: 12px;
        left: 12px;
        bottom: 90px;
        width: auto;
        height: 60vh;
    }
}
