/* GLASSMORPHIC DARK THEME STYLING */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #e0e0e0;
    overflow: hidden;
}

.header {
    width: 100%;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#ai-image {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    filter: drop-shadow(0 0 5px #00bcd4);
}

#text1 {
    color: #00e5ff;
    font-size: 28px;
    font-weight: bold;
}

.chat-container {
    flex: 1;
    padding: 20px;
    background: transparent;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    scroll-behavior: smooth;
}

.chat-container::before {
    content: "";
    background: url('bglogo.png') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

.ai-chat-box, .user-chat-box {
    max-width: 70%;
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    transition: transform 0.2s ease, background 0.2s ease;
}

.user-chat-box {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-chat-box {
    align-self: flex-start;
}

.ai-chat-area, .user-chat-area {
    flex: 1;
    color: #ffffff;
    font-size: 16px;
    word-wrap: break-word;
}

#aiImage, #userImage {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #00bcd4;
}
#userImage{
    border: 2px solid #00ff33;
}
.prompt-area {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-area input {
    flex: 1;
    height: 50px;
    border-radius: 30px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.prompt-area button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    cursor: pointer;
}

.prompt-area button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prompt-area button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chat-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.chat-image:hover {
    transform: scale(1.05);
    cursor: zoom-in;
}


footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: #00e5ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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


@media (max-width: 768px) {
    .ai-chat-box, .user-chat-box {
        max-width: 90%;
    }

    .prompt-area input {
        width: 100%;
    }

    #text1 {
        font-size: 20px;
    }
    footer {
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  footer a {
    display: inline-block;
    padding: 4px 6px;
    font-size: 13px;
    word-break: break-word;
  }
}

@media (max-width: 600px) {
    .chat-container {
        padding: 10px;
    }
    .prompt-area {
        flex-wrap: wrap;
        padding: 10px;
    }
}
