body {
    background: #f9f9f9;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.centered-init {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.logo-container {
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: center;
}
.logo-container img {
    width: 230px;
    max-width: 70vw;
    height: auto;
}
.logo-container-small {
    text-align: center;
    margin-bottom: 10px;
}
.logo-container-small img {
    width: 130px;
    height: auto;
}
.search-google-like {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
#init-question {
    width: 380px;
    max-width: 82vw;
    border-radius: 22px;
    padding: 13px 17px;
    font-size: 17px;
    border: 1.5px solid #ddd;
    background: #faf6fb;
    outline: none;
    transition: border 0.2s;
}
#init-question:focus { border: 1.5px solid #6b1c84; }
#init-ask {
    background: #6b1c84;
    color: #fff;
    border-radius: 22px;
    border: none;
    padding: 0 20px;
    font-size: 21px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
#init-ask:hover { background: #4a1160; }

/* Ενδεικτικές Ερωτήσεις στην αρχική οθόνη */
.sample-questions {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    align-items: center;
}
.sample-question {
    background: #fff;
    border: 1.5px solid #e0d4e8;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    color: #4a1160;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 2px 8px #6b1c8410;
}
.sample-question:hover {
    background: #faf6fb;
    border-color: #6b1c84;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #6b1c8425;
}
.chat-main {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
}

/* Chat Layout: 70% - 30% Split */
.chat-layout {
    display: flex;
    width: 100%;
    gap: 0;
    height: calc(100vh - 80px);
}
.chat-area {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.chat-container {
    width: 100%;
    max-width: 900px;
    background: #fff;
    min-height: 380px;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 20px 95px 20px;
    margin: 0 auto;
    margin-bottom: 0;
    overflow-y: auto;
    flex: 1;
}
.input-row {
    width: 100%;
    max-width: 900px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-top: 1.5px solid #eee;
    padding: 14px 20px 12px 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 12px #6b1c8418;
    z-index: 10;
}

/* Sidebar 30% */
.chat-sidebar {
    flex: 0 0 30%;
    background: #faf6fb;
    border-left: 1.5px solid #e0d4e8;
    overflow-y: auto;
    padding: 0;
}
.sidebar-content {
    padding: 25px 20px;
}
.sidebar-content h3 {
    color: #6b1c84;
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}
.sidebar-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.sidebar-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-question {
    background: #fff;
    border: 1.5px solid #e0d4e8;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #4a1160;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 5px #6b1c8410;
}
.sidebar-question:hover {
    background: #f0ebf5;
    border-color: #6b1c84;
    transform: translateX(-3px);
    box-shadow: 0 2px 8px #6b1c8420;
}
#question {
    flex: 1 1 auto;
    border: 1.5px solid #ddd;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 17px;
    background: #faf6fb;
    outline: none;
    transition: border 0.2s;
}
#question:focus { border: 1.5px solid #6b1c84; }
#ask {
    border: none;
    background: #6b1c84;
    color: #fff;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
#ask:hover { background: #4a1160; }

/* Bubbles */
.bubble {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 22px 0 2px 0;
    word-break: break-word;
    position: relative;
    font-size: 16px;
    box-shadow: 0 1px 7px #6b1c8422;
    clear: both;
    width: auto;
    max-width: 85%;
}
.user-bubble {
    background: #6b1c84;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 8px;
    padding: 13px 22px 15px 22px;
    min-width: 70px;
    max-width: 60vw;
    text-align: right;
    float: right;
    border-bottom-right-radius: 6px;
}
.agent-bubble {
    background: #f0f0f0;
    color: #282828;
    align-self: flex-start;
    margin-left: 8px;
    margin-right: auto;
    padding: 16px 22px 18px 22px;
    min-width: 130px;
    max-width: 80vw;
    float: left;
    border-bottom-left-radius: 6px;
}

/* Toolbar πάνω από πίνακα/card */
.bubble-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e4e4e4;
    background: transparent;
}
.copy-btn-line, .export-btn-toolbar {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    border-radius: 7px;
    gap: 7px;
    padding: 2px 12px 2px 0px;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.copy-btn-line .copy-ico {
    display: inline-block;
    width: 22px; height: 22px;
    vertical-align: middle;
}
.copy-btn-line svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: #878a95;
}
.copy-btn-line.copied svg {
    fill: #43b04b;
}
.copy-btn-line .copy-label {
    font-size: 14px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #878a95;
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}
.copy-btn-line.copied .copy-label {
    color: #43b04b;
}
.copy-btn-line:hover { opacity: 1; background: #e7dbf288; }
.export-btn-toolbar {
    background: #6b1c84;
    color: #fff;
    border-radius: 17px;
    padding: 6px 17px 6px 12px;
    font-size: 16px;
    margin-left: 4px;
    margin-right: 4px;
    opacity: 1;
    box-shadow: 0 1px 5px #6b1c8420;
}
.export-btn-toolbar:hover {
    background: #4a1160;
}
.export-btn-toolbar .export-ico {
    margin-right: 3px;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
}
.export-label {
    font-size: 15px;
    margin-left: 1px;
}
.more-msg {
    margin-top: 8px;
    color: #444;
    font-size: 15px;
}
.cell-ellipsis {
    color: #aaa;
    cursor: pointer;
}

/* Tables & scroll για μεγάλα resultsets */
.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    background: transparent;
    border-radius: 7px;
}
.agent-bubble table, .bubble table, .table-scroll-wrap table {
    width: 100%;
    min-width: 340px;
    background: #fff;
    box-shadow: none;
}
table {
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 13px;
    margin-bottom: 6px;
    background: #fff;
}
th, td {
    border: 1px solid #dadada;
    padding: 6px 8px;
    text-align: left;
}
th {
    background: #e7dbf2;
    color: #4a1160;
    white-space: nowrap;
}
td {
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
}
.agent-card-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 7px 0 2px 0;
    background: #f8f5fa;
    border-radius: 13px;
    box-shadow: none;
}
.agent-card-form table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: transparent;
    margin: 0;
}
.agent-card-form th, .agent-card-form td {
    border: none;
    text-align: left;
    padding: 7px 10px;
}
.agent-card-form th {
    color: #6b1c84;
    font-weight: 600;
    width: 35%;
    white-space: nowrap;
    background: transparent;
}
.agent-card-form td {
    color: #333;
    background: transparent;
}
#developer {
    max-width: 650px;
    margin: 32px auto 8px auto;
    text-align: left;
    background: #eee;
    padding: 20px 10px 10px 10px;
    border-radius: 11px;
    overflow-x: auto;
    font-size: 14px;
    word-break: break-all;
}
@media (max-width: 1100px) {
    .chat-layout {
        flex-direction: column;
    }
    .chat-area {
        flex: 1;
        width: 100%;
    }
    .chat-container {
        max-width: 100%;
        padding: 18px 15px 95px 15px;
    }
    .chat-sidebar {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1.5px solid #e0d4e8;
        max-height: 300px;
    }
    .input-row {
        width: calc(100% - 30px);
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 14px 15px 12px 15px;
    }
    .bubble {
        max-width: 90%;
    }
    .user-bubble, .agent-bubble {
        max-width: 85%;
    }
    .sample-questions {
        max-width: 90vw;
    }
    .sample-question {
        max-width: 85vw;
    }
}
@media (max-width: 700px) {
    .chat-layout {
        flex-direction: column;
    }
    .chat-area {
        flex: 1;
        width: 100%;
    }
    .chat-container {
        max-width: 100%;
        padding: 18px 12px 95px 12px;
    }
    .chat-sidebar {
        display: none;
    }
    .input-row {
        width: calc(100% - 24px);
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 12px;
    }
    .bubble {
        max-width: 92%;
    }
    .user-bubble, .agent-bubble {
        max-width: 88%;
    }
    .logo-container img {
        width: 90vw;
    }
    .agent-card-form {
        max-width: 96vw;
    }
    .sample-questions {
        max-width: 95vw;
    }
    .sample-question {
        max-width: 90vw;
        font-size: 14px;
        padding: 12px 16px;
    }
}
@media (max-width: 480px) {
    .chat-container {
        padding: 15px 8px 95px 8px;
    }
    .bubble {
        font-size: 15px;
        max-width: 95%;
    }
    .user-bubble {
        padding: 12px 16px 14px 16px;
        max-width: 90%;
    }
    .agent-bubble {
        padding: 14px 16px 16px 16px;
        max-width: 90%;
    }
    #question, #init-question {
        font-size: 15px;
        padding: 10px 12px;
    }
    .input-row {
        width: calc(100% - 16px);
        padding: 10px 8px 8px 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    .logo-container img {
        width: 80vw;
    }
    .agent-card-form {
        max-width: 99vw;
        padding: 2px 0 2px 0;
    }
    .sample-question {
        font-size: 13px;
        padding: 10px 14px;
    }
}