body {
    font-family: Arial, sans-serif;
    margin: clamp(12px, 4vw, 60px);
    background-color: #f4f4f4;
    background-image: url('/static/bg_home.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: min(1200px, 100%);
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.5);
    padding: clamp(12px, 2vw, 20px);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-box {
    border: 1px solid #ddd;
    padding: 10px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: scroll;
    margin-bottom: 10px;
    background-color: rgba(233, 233, 233, 0.5);
    border-radius: 5px;
}

.message {
    margin-bottom: 10px;
    font-weight: bold;
    white-space: pre-wrap;
}

.user-message {
    text-align: right;
    color: #007bff;
}

.agent-message {
    text-align: left;
    color: #00881d;
}

.input-form {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.input-form input[type="text"] {
    flex: 1 1 420px;
    min-width: 240px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(233, 233, 233, 0.5);
}

.input-form button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.input-form button:hover {
    background-color: #0056b3;
}

.file-upload-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.file-upload-group .secondary-btn {
    background-color: #6b7280;
}

.file-upload-group .secondary-btn:hover {
    background-color: #4b5563;
}

.file-name {
    font-size: 0.85em;
    color: #333;
    min-height: 1.2em;
    word-break: break-word;
}

.log-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #333;
}

.log-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.log-controls button {
    padding: 4px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #f7f7f7;
    cursor: pointer;
}

.log-controls button:hover {
    background: #ececec;
}

.log-box {
    border: 1px solid #ddd;
    padding: 10px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: scroll;
    margin-top: 20px;
    background-color: rgba(233, 233, 233, 0.7);
    border-radius: 5px;
    font-size: 0.8em;
}

.log-message {
    white-space: pre-wrap;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}
