#eac-fullpage-container {
    display: flex;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
}

/* Sidebar */
.eac-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.eac-brand h2 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.eac-brand p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.eac-upload-card {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.eac-upload-icon { font-size: 36px; margin-bottom: 8px; }
.eac-upload-card h4 { margin: 0 0 4px 0; font-size: 15px; }
.eac-upload-card p { font-size: 12px; color: #64748b; margin: 0 0 14px 0; }

.eac-btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}

.eac-btn-success {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
}

.eac-file-name {
    font-size: 12px;
    color: #2563eb;
    margin-top: 8px;
    word-break: break-all;
}

.eac-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.eac-profile-card h3 { font-size: 14px; margin: 0 0 12px 0; border-bottom: 1px solid #f1f5f9; padding-bottom: 6px; }
.eac-profile-item { font-size: 13px; margin-bottom: 8px; }
.eac-skills-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.eac-skill-tag { background: #e0f2fe; color: #0369a1; font-size: 11px; padding: 2px 8px; border-radius: 12px; }

/* Main Chat Window */
.eac-main-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.eac-chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eac-chat-header h3 { margin: 0; font-size: 16px; }
.eac-status-badge { color: #10b981; font-size: 12px; font-weight: 600; }

.eac-chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.eac-msg {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.eac-msg-user { 
    align-self: flex-end; 
    background: #0073aa; 
    color: #ffffff; 
    white-space: pre-wrap; /* Keeps user input exactly as typed */
}

.eac-msg-bot { 
    align-self: flex-start; 
    background: #ffffff; 
    color: #1e293b; 
    border: 1px solid #e2e8f0; 
    white-space: normal; /* Allows HTML from Marked.js to flow naturally */
}

/* --- Markdown Formatted Elements in Bot Messages --- */
.eac-msg-bot p {
    margin-top: 0;
    margin-bottom: 12px;
}

.eac-msg-bot p:last-child {
    margin-bottom: 0;
}

.eac-msg-bot ul, .eac-msg-bot ol {
    margin-top: 5px;
    margin-bottom: 12px;
    padding-left: 20px;
}

.eac-msg-bot li {
    margin-bottom: 5px;
}

.eac-msg-bot h3, .eac-msg-bot h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #0f172a;
}

.eac-msg-bot strong {
    font-weight: 600;
    color: #0f172a;
}
/* --------------------------------------------------- */

.eac-chat-input-container {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
}

#eac-full-user-input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
}

.eac-btn-send {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    text-transform: none !important;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #0073aa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.eac-btn-send:hover:not(:disabled) {
    background: #005a87;
}

.eac-btn-send:disabled { 
    background: #cbd5e1; 
    cursor: not-allowed; 
}

/* Fixes the SVG icon centering inside the button */
.eac-btn-send svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

/* Responsive adjustments for Mobile/Tablets */
@media (max-width: 768px) {
    #eac-fullpage-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .eac-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    .eac-main-chat { height: 500px; }
}