﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.app-navbar {
    min-height: 64px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
}

.app-logo {
    display: block;
    width: 78px;
    height: auto;
    object-fit: contain;
}

.app-menu {
    align-items: center;
    gap: 2px;
}

.app-menu .nav-link,
.app-menu .btn.nav-link {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 650;
}

.app-menu .nav-link:hover,
.app-menu .nav-link:focus {
    background: rgba(15, 23, 42, 0.06);
}

.app-menu .app-menu-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #14532d !important;
    background: rgba(25, 135, 84, 0.10);
    border: 1px solid rgba(25, 135, 84, 0.22);
}

.app-menu .app-menu-back-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 7px 12px;
    background: #111827;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.impersonation-banner small {
    color: #cbd5e1;
    font-weight: 600;
    margin-left: 6px;
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-banner button {
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    padding: 4px 10px;
    font-weight: 750;
}

.app-notification {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 3000;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px 16px;
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    font-size: 14px;
    font-weight: 750;
    transform: translateY(-110%);
    transition: transform 0.22s ease;
}

.app-notification.is-visible {
    transform: translateY(0);
}

.app-notification[hidden] {
    display: none !important;
}

.app-notification-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-notification button {
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.app-notification #appNotificationUndo {
    background: #fff;
    color: #111827;
}

.app-notification-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1;
}

.legal-consent {
    position: fixed;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
    z-index: 2500;
    display: flex;
    justify-content: center;
}

.legal-consent[hidden] {
    display: none !important;
}

.legal-consent-card {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
    color: #111827;
}

.legal-consent-card p {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
}

.legal-consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.legal-consent-actions a,
.legal-consent-actions button {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.legal-consent-actions #legalConsentAccept {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

@media (max-width: 640px) {
    body {
        margin-bottom: 36px;
    }

    .app-navbar {
        min-height: 50px;
        margin-bottom: 6px !important;
    }

    .app-navbar .container {
        min-height: 50px;
    }

    .app-logo {
        width: 58px;
    }

    .app-menu {
        align-items: stretch;
        padding: 8px 0;
    }

    .legal-consent-card {
        grid-template-columns: 1fr;
    }

    .legal-consent-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .app-notification {
        justify-content: space-between;
        align-items: flex-start;
        min-height: 58px;
        font-size: 13px;
    }

}

.legal-page {
    max-width: 880px;
    margin: 24px auto;
    color: #111827;
}

.legal-page h1 {
    margin-bottom: 10px;
}

.legal-page-intro {
    color: #4b5563;
    font-size: 1.05rem;
}

.legal-page section {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.legal-page h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.legal-page p:last-child {
    margin-bottom: 0;
}

.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;
}

.hidden {
display:none;
}
/* LangLangLink */
.scroll-textarea {
    min-height: 120px;
    max-height: 260px;
    overflow-y: auto;
    resize: vertical;
    white-space: pre-wrap;
}

.admin-llm-badge {
    --llm-accent: #667085;
    --llm-bg: #f2f4f7;
    --llm-border: #d0d5dd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid var(--llm-border);
    border-radius: 999px;
    background: var(--llm-bg);
    color: var(--llm-accent);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.25;
    padding: 3px 8px;
    white-space: nowrap;
}

.admin-llm-badge-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--llm-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1;
}

.llm-kind-text {
    --llm-accent: #067647;
    --llm-bg: #ecfdf3;
    --llm-border: #abefc6;
}

.llm-kind-ruby {
    --llm-accent: #b42318;
    --llm-bg: #fff1f3;
    --llm-border: #fda29b;
}

.llm-kind-voice {
    --llm-accent: #175cd3;
    --llm-bg: #eff8ff;
    --llm-border: #84caff;
}

.llm-kind-other {
    --llm-accent: #475467;
    --llm-bg: #f8fafc;
    --llm-border: #d0d5dd;
}

