@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glassmorphism Chat Container */
.chat-container {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(255, 126, 95, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('wb_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

#chat-container-2::before {
    display: none;
}

.watermark-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0.15; /* Faint composite watermark */
    pointer-events: none;
    z-index: 0;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.watermark-top {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 2px;
}

.watermark-logo {
    width: 250px;
    height: auto;
}

.watermark-middle {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff7e5f;
}

.watermark-bottom {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.chat-header {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    padding: 25px 30px;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
    z-index: 10;
    position: relative;
}

.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
    background: rgba(255, 126, 95, 0.5);
    border-radius: 3px;
}

/* Chat Bubbles */
.bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
    z-index: 2;
}

.bubble.system {
    align-self: flex-start;
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(255, 126, 95, 0.3);
}

/* Select dropdowns in chat */
.bubble select {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.bubble select:focus {
    border-color: #ff7e5f;
    box-shadow: 0 0 5px rgba(255, 126, 95, 0.3);
}

/* Buttons in chat */
.quick-replies {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ff7e5f;
    color: #ff7e5f;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff7e5f;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.4);
}

/* Results box */
.enumerator-card {
    background: #fdfdfd;
    border-left: 4px solid #ff7e5f;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.enumerator-card h4 {
    color: #333;
    margin-bottom: 5px;
}
.enumerator-card p {
    color: #666;
    font-size: 0.85rem;
}

.reset-btn {
    margin-top: 15px;
    align-self: center;
    background: #eee;
    color: #666;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.reset-btn:hover {
    background: #ddd;
}

/* Loading animation */
.typing-indicator {
    display: inline-block;
    width: 40px;
    height: 15px;
}
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite alternate;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(-3px); opacity: 1; }
}

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

/* Mobile Optimization */
@media screen and (max-width: 600px) {
    body {
        padding: 0;
        background: #fdfbfb;
    }
    .chat-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .chat-header {
        padding: 15px;
        font-size: 1.1rem;
    }
    .chat-box {
        padding: 15px 10px;
    }
    .bubble {
        max-width: 92%;
        font-size: 0.9rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
