body {
    font-family: times new roman, serif;
    background-color: #f7ffea;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    width: 100%;
    height: 100vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.messages-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 1vh 3vw;
}

.message-row {
    display: flex;
    width: 100%;
}

.user-row {
    justify-content: flex-end;

}

.ai-row {
    justify-content: flex-start;

}

.bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.user-bubble {
    background-color: rgba(224, 235, 213,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    color: #414141;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background-color: #333333;
    color: white;
    border-bottom-left-radius: 4px;
}

.input-area {
    display: flex;
    padding: 12px;
    width: 85%;
    margin: 2vh auto 3vh auto;
    border-radius: 30px;
    background:rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(96, 96, 96, 0.05);
}

.input-box {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: transparent; 
    color: #1a1a1a;
    font-size: 15px;
    outline: none;
}

.input-box::placeholder {
    color: #888888;
}

.send-btn {
    margin-left: 10px;
    padding: 0 24px;
    background: linear-gradient(180deg, #333333 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.send-btn:disabled {
    background-color: #5a5a5a;
    cursor: wait;
}

.input-box:disabled {
    opacity: 0.75;
    cursor: wait;
}

.loading-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.loading-text {
    font-size: 14px;
    color: #d8d8d8;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #aaa;
    border-radius: 999px;
    display: inline-block;
    animation: loading-bounce 1s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}


.chat-header{
    text-align: center;
    padding: 20px 0px 10px 0px;
    background: transparent;
    border-bottom: none;
    z-index: 10;
}

.chat-header h1{
    margin: 0;
    font-size: 4vw;
    font-family: 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-transform: uppercase;
}