
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

body {
    background: #f5f7fb;
    color: #182230;
    min-height: 100vh;
}

.topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e9f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
}

.brand {
    font-size: 21px;
    font-weight: 750;
}

.model-tag {
    background: #fff3e8;
    color: #d97706;
    padding: 9px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.app {
    max-width: 1250px;
    margin: auto;
    padding: 35px 24px;
}

.hero {
    margin-bottom: 30px;
}

.eyebrow {
    color: #8b5cf6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(27px, 4vw, 40px);
    margin: 12px 0;
}

.hero h1 span {
    color: #7655d9;
}

.hero p,
.panel-heading p {
    color: #778397;
    font-size: 14px;
}

.workspace {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 22px;
    align-items: stretch;
}

.sidebar,
.main-panel {
    background: white;
    border: 1px solid #e8ebf2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 5px 25px rgba(30, 40, 70, 0.04);
}

.sidebar h3 {
    font-size: 17px;
    margin-bottom: 20px;
}

.upload-area {
    min-height: 165px;
    border: 2px dashed #c9bdf5;
    background: #faf9ff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: center;
    padding: 15px;
}

.upload-area:hover {
    background: #f2efff;
}

.upload-icon {
    font-size: 34px;
}

.upload-area strong {
    font-size: 14px;
}

.upload-area small {
    color: #8b95a6;
    font-size: 11px;
}

#pdfFile {
    display: none;
}

.file-info {
    margin: 15px 0;
    font-size: 12px;
    color: #687386;
    overflow-wrap: anywhere;
}

.document-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f6fa;
    border-radius: 8px;
    font-size: 12px;
    color: #596579;
}

#statusDot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
}

.sidebar-note {
    margin-top: 25px;
    padding: 16px;
    background: #f8f7ff;
    border-radius: 10px;
}

.sidebar-note strong {
    font-size: 13px;
}

.sidebar-note p {
    margin: 9px 0;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-note small {
    color: #8992a3;
    font-size: 11px;
}

.main-panel {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.panel-heading h2 {
    font-size: 20px;
    margin-bottom: 7px;
}

.online {
    color: #168a5a;
    background: #eaf8f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.action-btn {
    background: #f4f1ff;
    color: #6e51ca;
    border: 1px solid #e3dcff;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-box {
    flex: 1;
    min-height: 330px;
    max-height: 480px;
    overflow-y: auto;
    padding: 15px 5px;
}

.welcome-message {
    text-align: center;
    padding: 75px 15px;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.welcome-message h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.welcome-message p {
    color: #8590a2;
    font-size: 13px;
}

.suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.suggestions span {
    border: 1px solid #e5e7ef;
    padding: 9px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #687386;
}

.message {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.user-message {
    background: #eee9ff;
    margin-left: 12%;
}

.ai-message {
    background: #f3f5f9;
    margin-right: 8%;
}

.message-label {
    font-size: 11px;
    font-weight: 800;
    color: #7557cf;
    margin-bottom: 6px;
}

.input-area {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #edf0f5;
}

textarea {
    flex: 1;
    resize: vertical;
    min-width: 0;
    border: 1px solid #dfe3ec;
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    outline: none;
}

textarea:focus {
    border-color: #9276e9;
}

#sendBtn {
    background: #7655d9;
    color: white;
    border: none;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.footer-note {
    text-align: center;
    color: #9ba4b2;
    font-size: 10px;
    padding-top: 13px;
}

@media(max-width: 800px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .main-panel {
        min-height: 550px;
    }

    .topbar {
        padding: 0 18px;
    }

    .brand {
        font-size: 16px;
    }
}
