/* Chat Box Styles - All chat-specific styling */

/* Chat section container */
.chat-section {
    background: linear-gradient(to bottom, rgba(153, 153, 153, .9), rgba(85, 85, 85, 0.7));
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Chat form */
#chat-form {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
}
/* Name input */
#chat-name {
    font-family: 'Roboto Slab', sans-serif;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

#chat-name:focus {
    border-color: #4a005d;
    background: rgba(42, 1, 61, 0.2);
}

/* Message textarea */
#chat-message {
    font-family: 'Roboto Slab', sans-serif;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    resize: vertical;
    min-height: 45px;
    max-height: 150px;
    overflow-y: auto;
    transition: all 0.3s;
    flex-grow: 1;
    min-width: 250px;
}

#chat-message:focus {
    border-color: #4a005d;
    background: rgba(42, 1, 61, 0.2);
}

/* Chat buttons */
.chat-section .btn-primary {
    background: linear-gradient(135deg, #4a005d 0%, #2a003d 50%, #4a005d 100%);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, .35);
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.chat-section .btn-primary:hover {
    background: linear-gradient(135deg, #333 10%, #aaa 50%, #333 90%);
    color: #4a005d;
    font-weight: 700;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(67, 26, 108, 0.9);
}

/* Chat messages area */
#chat-messages {
    background: linear-gradient(to bottom, rgba(153, 153, 153, .9), rgba(85, 85, 85, 0.7));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 1rem;
    max-width: 800px;
    width: 95%;
    margin-top: 1rem;
}

/* Messages list */
#messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 300px;
    scroll-behavior: smooth;
}

/* System messages */
.message.system-message {
    text-align: center;
    color: #aaa;
    font-style: italic;
    font-size: 0.9rem;
}

/* User chat messages */
.message {
    max-width: 75%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a003d 0%, #4a005d 50%, #2a003d 100%);
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.message > div:first-child {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.message > div:last-child {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}
