html, body {
    font-family: Vazirmatn, 'Segoe UI', Tahoma, sans-serif;
    background-color: #f5f6f8;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0d6efd;
    text-decoration: none;
}

a:hover, .btn-link:hover {
    text-decoration: underline;
}

.content {
    padding: 1.5rem;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.panel-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Latin identifiers such as chat ids stay readable inside right-to-left text. */
.ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-family: Consolas, 'Courier New', monospace;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

/* Credentials and identifiers are typed left-to-right even on a right-to-left page. */
.ltr-input {
    direction: ltr;
    text-align: left;
}

.log-details {
    white-space: pre-wrap;
}

.qr-code {
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.knowledge-thumb {
    max-height: 3rem;
    max-width: 5rem;
    border-radius: 0.25rem;
    object-fit: cover;
}

.col-narrow {
    width: 7rem;
}

.col-medium {
    width: 8rem;
}

.col-wide {
    width: 10rem;
}

.inline-form {
    display: inline-block;
}

.support-thread {
    max-height: 26rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-bubble {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    white-space: pre-wrap;
}

.support-bubble.from-user {
    align-self: flex-start;
    background: #f1f3f5;
}

.support-bubble.from-operator {
    align-self: flex-end;
    background: #e7f1ff;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 0.5rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
