/* styles/eft-chat.css */

/* --- 1. RESET: Kill Global Styles for the Chat Card --- */
#visionMappingSide .card {
    background: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- 2. HEADER --- */
#visionMappingSide .eft-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* --- 3. BODY (Messages) --- */
#visionMappingSide .eft-body {
    background: #f8f9fa;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    /* Clean scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

/* --- 4. FOOTER (The Input Area) --- */
#visionMappingSide .eft-footer {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

/* THE PILL CONTAINER (Holds the border) */
#visionMappingSide .eft-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff !important;
    border: 1px solid #b08a48 !important; /* Gold border around everything */
    border-radius: 30px !important;       /* Fully rounded pill */
    padding: 5px 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease;
}

#visionMappingSide .eft-input-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(176, 138, 72, 0.1) !important; /* Glow on focus */
}

/* THE NUCLEAR INPUT RESET (Invisible Text Box) */
#visionMappingSide textarea.eft-text-input {
    flex-grow: 1;
    background: transparent !important;
    border: none !important;       /* Kills the square box */
    box-shadow: none !important;   /* Kills the shadow */
    outline: none !important;
    padding: 10px !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    resize: none !important;
    height: 44px; /* Sufficient initial height */
    min-height: 44px;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* BUTTONS (Icons) */
#visionMappingSide button.eft-btn-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #b08a48 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 !important;
    padding: 0 !important;
}

#visionMappingSide button.eft-btn-icon:hover {
    background-color: rgba(176, 138, 72, 0.1) !important;
}

/* --- 5. MESSAGES --- */
#visionMappingSide .eft-msg { margin-bottom: 12px; display: flex; }
#visionMappingSide .eft-msg.user { justify-content: flex-end; }
#visionMappingSide .eft-msg.ai { justify-content: flex-start; }

#visionMappingSide .eft-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 85%;
    position: relative;
}

#visionMappingSide .eft-msg.user .eft-bubble {
    background: #b08a48;
    color: #fff;
    border-bottom-right-radius: 4px;
}

#visionMappingSide .eft-msg.ai .eft-bubble {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-bottom-left-radius: 4px;
}
/* Ensure the Nav container has specific spacing */
.eft-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important; /* Force space between buttons */
    justify-content: center !important;
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
}

/* Ensure the buttons themselves have margins just in case flex gap fails */
.eft-day-btn {
    margin: 5px !important; 
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    color: #b08a48 !important;
    padding: 8px 8px !important;
    border-radius: 0.5 rem !important;
    cursor: pointer;
}

/* Active State */
.eft-day-btn.active {
    background: #73a5c6 !important;
    color: white !important;
    border-color: #73a5c6 !important;
}