/* /api_foschia_ia/app/frontend/static/css/styles.css */

:root {
    color-scheme: dark light;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: #0f172a url('/static/img/bg3.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 10;
}

.title {
    font-weight: 700;
    font-size: 1.1rem;
}

.status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background-color: gray;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

.status.ok {
    background-color: #22c55e;
}

.status.bad {
    background: #ef4444;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.log {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

form {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #572131;
    background: #bdc5cf;
}

input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d2dce7;
    background: #eeeff0;
    color: #212a38;
    font-size: 16px;
}

button {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #4a5664;
    background: #eeeff0;
    color: #212a38;
    cursor: pointer;
}

.bubble {
    max-width: 80%;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 10px;
    line-height: 1.35;
    color: #555;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.user {
    background-color: rgb(217, 253, 211);
    margin-left: auto;
}

.bot {
    background-color: #fff;
}

.meta {
    font-size: 14px;
    opacity: .7;
    color: #555;
}

@media (max-width: 768px) {
    .title {
        font-size: 1rem;
    }

    form {
        gap: 6px;
    }

    input,
    button {
        font-size: 14px;
    }

    .bubble {
        max-width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .status {
        position: static;
        margin-top: 6px;
    }

    .title {
        font-size: 0.95rem;
    }
}
