/*
 * GF Forsikring brand tokens — colors sourced from the design tokens and logo
 * used on gfforsikring.dk / beregn.gfforsikring.dk (green mark, warm cream
 * neutrals, amber accent). --gf-green-100 is a derived light tint; every
 * other value is taken directly from the brand's own stylesheets/logo.
 */
:root {
    --gf-green-800: #00662a;
    --gf-green-600: #008035;
    --gf-green-500: #009b49; /* logo mark green */
    --gf-green-400: #33995d;
    --gf-green-100: #e1f0e5;

    --gf-amber-600: #f6a70e;
    --gf-amber-400: #f1bb62;
    --gf-amber-200: #f4cc86;

    --gf-red-600: #c44040;
    --gf-red-400: #d06666;

    --gf-cream: #f7f2ec;
    --gf-walnut-400: #d6c4b3;
    --gf-neutral-100: #ebe6e3;
    --gf-neutral-200: #dcd5d0;
    --gf-neutral-300: #b2ada9;
    --gf-neutral-500: #6f6b69;
    --gf-neutral-700: #494441;
    --gf-neutral-900: #24221e;
    --gf-white: #ffffff;

    --font-main: "Roboto Flex", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-variation-settings: "opsz" 24;
    background: var(--gf-cream);
    color: var(--gf-neutral-900);
}

h1 {
    font-weight: 800;
    font-variation-settings: "opsz" 144, "wght" 800, "wdth" 110;
    letter-spacing: -0.01em;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page__subtitle {
    color: var(--gf-neutral-500);
    margin-top: -8px;
}

/* Section eyebrows/labels reuse this treatment throughout the app */
.eyebrow,
.since-last-visit__title,
.kpi-section__title,
.step-timeline__title,
.bpmn-panel__title,
.case-actions__title,
.case-notes__title,
.comparable-cases__title {
    font-variation-settings: "opsz" 12, "wght" 600;
    letter-spacing: 0.02em;
}

/* Nav */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: var(--gf-neutral-900);
    color: var(--gf-white);
}

.top-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.top-nav__logo {
    height: 28px;
    width: auto;
    display: block;
}

.top-nav__brand-sub {
    font-weight: 400;
    color: var(--gf-neutral-300);
    margin-left: 6px;
}

.top-nav__links a {
    color: var(--gf-neutral-200);
    text-decoration: none;
    margin: 0 12px;
    padding: 6px 10px;
    border-radius: 4px;
}

.top-nav__links a.is-active {
    background: var(--gf-green-600);
    color: var(--gf-white);
}

.top-nav__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.top-nav__user-info {
    text-align: right;
    font-size: 0.9em;
}

.top-nav__user-role {
    display: block;
    color: var(--gf-neutral-300);
    font-size: 0.85em;
}

.top-nav__logout-form {
    margin-top: 2px;
}

.top-nav__logout-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--gf-neutral-300);
    font-size: 0.85em;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.top-nav__logout-link:hover {
    color: var(--gf-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gf-green-600);
    color: var(--gf-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
    font-family: inherit;
}

.btn:hover {
    background: var(--gf-green-800);
}

.btn--secondary {
    background: var(--gf-white);
    color: var(--gf-neutral-900);
    border: 1px solid var(--gf-neutral-200);
}

.btn--secondary:hover {
    background: var(--gf-neutral-100);
}

.btn--small {
    padding: 4px 10px;
    font-size: 0.85em;
}

/* Demo info box — behind-the-scenes callouts for the demo audience, distinct from the
   applicant/persona-facing copy they sit below */
.demo-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gf-green-100);
    border: 1px solid var(--gf-green-400);
    border-radius: 8px;
    text-align: left;
}

.demo-info-box__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gf-green-600);
    color: var(--gf-white);
    font-size: 0.75em;
    font-weight: 700;
    font-style: italic;
}

.demo-info-box__title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 0.9em;
    color: var(--gf-green-800);
}

.demo-info-box__text {
    margin: 0;
    font-size: 0.85em;
    color: var(--gf-neutral-700);
}

.demo-info-box__value {
    font-family: monospace;
    user-select: all;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gf-neutral-100);
    color: var(--gf-neutral-700);
    border-radius: 4px;
    font-size: 0.85em;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gf-green-500);
    color: var(--gf-white);
    font-weight: 700;
    font-size: 1.2em;
}

.priority-badge--small {
    width: 32px;
    height: 32px;
    font-size: 0.95em;
}

.priority-reason {
    font-size: 0.85em;
    color: var(--gf-neutral-500);
    max-width: 220px;
}

.priority-reason--small {
    max-width: 180px;
}

.action-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--gf-amber-200);
    color: var(--gf-neutral-900);
    font-size: 0.85em;
}

.owner-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    background: var(--gf-neutral-100);
    color: var(--gf-neutral-900);
}

.owner-badge--customer { background: var(--gf-neutral-100); }
.owner-badge--system_ai { background: var(--gf-green-100); }
.owner-badge--sales_person { background: var(--gf-amber-200); }
.owner-badge--underwriter { background: var(--gf-walnut-400); }

/* Flash messages */
.flash-message {
    padding: 10px 16px;
    background: var(--gf-green-100);
    border: 1px solid var(--gf-green-400);
    color: var(--gf-green-800);
    border-radius: 4px;
    margin-bottom: 16px;
    transition: opacity 0.4s ease;
}

.flash-message--hidden {
    opacity: 0;
}
