/* ==========================================
   INKDRIP FABRIC AI - PROFESSIONAL THEME
   ========================================== */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Image - Hawa Mahal */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/4/41/East_facade_Hawa_Mahal_Jaipur_from_ground_level_%28July_2022%29_-_img_01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Dark Overlay for Better Text Visibility */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.75) 0%, rgba(160, 82, 45, 0.7) 50%, rgba(205, 133, 63, 0.65) 100%);
    z-index: -1;
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(139, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #D4AF37;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Container */
.logo-container {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 3px solid #D4AF37;
    overflow: hidden;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    font-size: 32px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-info h1 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2px;
}

.tagline {
    color: #FFE4B5;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.status-badge {
    background: rgba(39, 174, 96, 0.2);
    color: #90EE90;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 650px;
}

.chat-box {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: linear-gradient(to bottom, rgba(255, 250, 245, 0.98) 0%, rgba(255, 245, 238, 0.98) 100%);
}

/* Scrollbar */
.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.chat-box::-webkit-scrollbar-thumb {
    background: #CD853F;
    border-radius: 3px;
}

/* Messages */
.message {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot { align-items: flex-start; }
.message.user { align-items: flex-end; align-self: flex-end; }

.msg-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 14.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bot .msg-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #f0e0d0;
}

.user .msg-bubble {
    background: linear-gradient(135deg, #8B0000 0%, #A0522D 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid #f0e0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CD853F;
    animation: typingBounce 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 typingBounce {
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.7;
    }
    30% { 
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Options Buttons */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.option-btn {
    background: white;
    border: 2px solid #CD853F;
    color: #8B0000;
    padding: 9px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.option-btn:hover {
    background: linear-gradient(135deg, #8B0000 0%, #A0522D 100%);
    color: white;
    border-color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

/* Quick Actions Bar */
.quick-actions {
    padding: 12px 20px;
    background: rgba(255, 250, 245, 0.98);
    border-top: 1px solid #f0e0d0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    background: white;
    border: 1.5px solid #D4AF37;
    color: #8B0000;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.quick-btn:hover {
    background: #D4AF37;
    color: white;
    transform: scale(1.05);
}

/* Input Area */
.input-area {
    padding: 18px 20px;
    background: white;
    border-top: 1px solid #f0e0d0;
    display: flex;
    gap: 12px;
    border-radius: 0 0 20px 20px;
}

.input-area input {
    flex: 1;
    padding: 13px 20px;
    border: 2px solid #f0e0d0;
    border-radius: 30px;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.input-area input:focus {
    border-color: #CD853F;
}

.input-area button {
    background: linear-gradient(135deg, #8B0000 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 0 28px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    background: rgba(139, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 0 0 15px 15px;
    margin-top: 10px;
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 15px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card h3 {
    color: #8B0000;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 8px;
}

.product-card .spec {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0e0d0;
    font-size: 13.5px;
}

.product-card .spec:last-child {
    border-bottom: none;
}

.product-card .spec strong {
    color: #8B0000;
}

.product-card .price {
    font-size: 20px;
    color: #27ae60;
    font-weight: 700;
    margin-top: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Lead Category Badge */
.lead-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.lead-badge.hot { background: #e74c3c; color: white; }
.lead-badge.warm { background: #f39c12; color: white; }
.lead-badge.cold { background: #3498db; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .brand-info h1 {
        font-size: 22px;
    }
    
    .tagline {
        font-size: 11px;
    }
    
    .logo-container {
        width: 55px;
        height: 55px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .chat-container {
        min-height: 550px;
    }
    
    .message {
        max-width: 92%;
    }
    
    .quick-actions {
        padding: 10px 15px;
    }
    
    .quick-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .footer {
        font-size: 11px;
        padding: 12px;
    }
}