* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0D1117 0%, #1a1f2e 100%);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px;
    background: rgba(0, 153, 255, 0.1);
    border-radius: 15px;
    border: 1px solid #0099FF;
    flex-shrink: 0;
}

.logo-text {
    color: #0099FF;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 153, 255, 0.5);
    letter-spacing: 2px;
}

.logo-subtitle {
    color: #00FFD1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.main-title {
    color: #FF006E;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.4);
}

.subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 153, 255, 0.3);
    min-height: 0;
}

.messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #0099FF #1a1f2e;
    max-height: 500px;
    min-height: 200px;
}

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

.messages::-webkit-scrollbar-track {
    background: #1a1f2e;
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: #0099FF;
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: #00FFD1;
}

.welcome-message {
    background: linear-gradient(135deg, #0099FF 0%, #FF006E 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.3);
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.welcome-message p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.welcome-message strong {
    color: #00FFD1;
    font-weight: 700;
}

.welcome-message em {
    color: #ffffff;
    opacity: 0.9;
    font-size: 0.9rem;
}

.message {
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in;
    line-height: 1.5;
}

.user-message {
    background: linear-gradient(135deg, #0099FF 0%, #00FFD1 100%);
    color: #ffffff;
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.typing-indicator {
    display: none;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 200px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.typing-indicator span {
    color: #00FFD1;
    font-weight: 500;
}

.typing-dots {
    display: inline-flex;
    margin-left: 10px;
}

.typing-dots span {
    height: 8px;
    width: 8px;
    background: #FF006E;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    flex-shrink: 0;
}

.input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.5);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #00FFD1;
    box-shadow: 0 0 15px rgba(0, 255, 209, 0.3);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-button {
    background: linear-gradient(135deg, #FF006E 0%, #0099FF 100%);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.3);
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.5);
}

.send-button:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { padding: 10px; }
    .logo-text { font-size: 2rem; }
    .main-title { font-size: 1.5rem; }
    .message { max-width: 95%; }
    .input-container { padding: 10px; }
}
