:root {
    --bg-dark: #05070a;
    --accent-blue: #2f4d66;
    --text-light: #e0e0e0;
}

.chat-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--btn-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: #0e141b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.chat-header {
    background: var(--btn-grad);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.user {
    align-self: flex-end;
    background: #1e2a38;
    color: white;
}

.bot {
    align-self: flex-start;
    background: var(--accent-blue);
    color: white;
}

.chat-input-area {
    padding: 15px;
    background: #05070a;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    /* background: var(--main-gold); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 5px;
    color: white;
}

/* Inside your CSS file */

.message {
    max-width: 80%;
    margin: 10px;
    padding: 12px 16px;
    border-radius: 15px;
    line-height: 1.5;
    background: var(--main-gold);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Style the Markdown elements inside the bubble */
.message p {
    margin: 0 0 10px 0; /* Space between paragraphs */
}

.message p:last-child {
    margin-bottom: 0;
}

.message strong {
    color: #010101;
    font-weight: 700;
}

.message ul, .message ol {
    padding-left: 20px;
    margin: 10px 0;
}

.message code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}


/* Better Close Button (The X) */
#close-chat {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-chat:hover {
    color: white;
    transform: rotate(90deg); /* Subtle cool effect */
}

/* Better Send Button */
#send-btn {
    background: var(--btn-grad);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#send-btn:hover {
    background: #3d6385; /* Slightly lighter than accent-blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 77, 102, 0.4);
}

#send-btn:active {
    transform: translateY(0);
}

/* Fix for Input alignment to match new buttons */
.chat-input-area input {
    flex: 1;
    background: var(--main-gold); /* Match your inner window theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    color: rgb(255, 255, 255);
    outline: none;
    transition: border 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--accent-blue);
}