html {
    height: 100%;
}
body {
    background: linear-gradient(135deg, #f9f7d9 0%, #c2e9fb 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
}
p, li, pre{
    font-size: 0.8rem;
}
h3{
    font-size: 1.1rem;
}
h2{
    font-size: 1.0rem;
}
h1{
    font-size: 0.9rem;
}
td, th{
    font-size: 0.8rem;
}
.typing-text {
    font-size: 0.8rem;
}
.chat-container {
    max-width: 800px;
    height: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    border-radius: 15px;
}
.chat-header {
    background: linear-gradient(90deg, #ffeb3b 0%, #00bcd4 100%);
    color: #333;
    padding: 0.8rem 1.6rem;
    border-radius: 15px 15px 0 0;
    border: 1px solid #2868329d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.chat-messages {
    height: calc(50vh);
    overflow-y: auto;
    background-color: #f5fdd8;
    border-right: 1px solid #807d7db0;
    border-left: 1px solid #807d7db0;
}
.message {
    max-width: 80%;
    padding: 0.5rem 0.8rem 0 0.8rem;
    border-radius: 15px;
    border: 1px solid #acacac77;
    position: relative;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.4s ease-out forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}
@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.user-message {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    margin-left: auto;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}
.ai-message {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    margin-right: auto;
    border-bottom-left-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}
.message:hover .copy-btn {
    opacity: 1;
}
.copy-btn {
    position: absolute;
    right: 5px;
    bottom: 5px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 4px 8px 0 rgba(0, 0, 0, 0.5);
}
.copy-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(91, 223, 168, 0.459);
    border-radius: 15px;
    width: fit-content;
    box-shadow: 0px 0px 10px rgba(17, 0, 255, 0.2);
    transform: scale(0.7);
    opacity: 0;
    animation: typingAppear 0.8s ease-out forwards;
}
@keyframes typingAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.typing-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #00bcd4 0%, #008ba3 100%);
    border-radius: 50%;
    margin: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: typingAnimation 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) {
    animation-delay: 0s;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
.input-container {
    border-top: 1px solid #afc5db;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
}
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}
.btn-dark {
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
}
.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.form-control {
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
}
.form-control:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 0.20rem rgba(0, 188, 212, 0.25);
}