@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/Peyda.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Peyda', sans-serif !important;
}

.all-errors {
    margin: 12px 0;
    padding: 0;
}

.errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-item {
    color: #b10000;
    background: #ffecec;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 14px;
}

.error-item::before {
    content: "⚠️";
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.form-group a {
    display: none;
}

.short-text {
    max-width: 250px;
    margin: 0 auto;
}

input, textarea {
    unicode-bidi: plaintext !important;
}

img {
    object-fit: cover;
    object-position: center;
}

.chat-container {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: var(--bs-primary);
    color: #fff;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.chat-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    color: #FFFFFF;
}

.msg {
    padding: 12px 16px;
    -webkit-border-radius: var(--bs-border-radius-lg) !important;
    border-radius: var(--bs-border-radius-lg) !important;
    margin-bottom: 15px;
    display: inline-block;
    line-height: 1.5rem;
}

.msg-user {
    background: var(--bs-primary);
    color: #fff;
    margin-left: auto;
    display: block;
    border-bottom-right-radius: 0;
}

.msg-bot {
    background: var(--bs-secondary);
    color: #fff;
    margin-right: auto;
    display: block;
    border-bottom-left-radius: 0;
}

textarea.json-textarea {
    width: 100%;
    min-height: 200px;
    font-family: monospace;
    direction: ltr !important;
    white-space: pre;
    padding: 10px;
    border-radius: 5px;
    resize: vertical;
    text-align: left !important;
}