body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f9f9f9;
}

h1 {
    color: #085f6b;
    display: flex;
    align-items: center;
    gap: 10px;
}

#container {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

#pdf-viewer {
    border: 1px solid #ccc;
    background: white;
    height: 600px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#pdf-render {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

#pdf-render canvas {
    border: 1px solid #ccc;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#pdf-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
}

#chatbox {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 600px;
}

#chat-response {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg, .user-msg {
    padding: 10px;
    border-radius: 12px;
    max-width: 80%;
}

.bot-msg {
    background-color: #eef6f7;
    align-self: flex-start;
    color: #085f6b;
}

.user-msg {
    background-color: #085f6b;
    color: white;
    align-self: flex-end;
}

#chat-input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#user-input {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 15px;
    background: #085f6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0b7684;
}

.voice-btn {
    background: #ff9800;
}

@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }

    #pdf-viewer {
        width: 100%;
        height: 500px;
    }

    #chatbox {
        width: 100%;
        height: 500px;
        margin-top: 20px;
    }

    .voice-btn {
        display: none;
    }
}
