/*
 * Kenya Technicians — base styles
 * Inter font · flat solid colors, no gradients · rounded components
 */

:root {
    --kt-primary:        #0aa24b;
    --kt-primary-dark:   #088a3f;
    --kt-primary-light:  rgba(10, 162, 75, .08);
    --kt-accent:         #ed1b24;
    --kt-accent-dark:    #c8151d;
    --kt-accent-light:   rgba(237, 27, 36, .08);
    --kt-secondary:      #224e91;
    --kt-secondary-dark: #1b3e75;
    --kt-secondary-light: rgba(34, 78, 145, .08);

    --kt-bg:      #edeff2;
    --kt-surface: #ffffff;
    --kt-border:  #dde1e7;
    --kt-text:        #16213a;
    --kt-text-muted:  #5b6472;
    --kt-text-faint:  #8b93a1;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --transition: .16s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    background: var(--kt-bg);
    color: var(--kt-text);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }

/* ── Icon badge ─────────────────────────────────────────────────────── */
.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-badge svg { width: 28px; height: 28px; stroke-width: 1.8; }
.icon-badge--primary   { background: var(--kt-primary-light);   color: var(--kt-primary); }
.icon-badge--accent    { background: var(--kt-accent-light);    color: var(--kt-accent); }
.icon-badge--secondary { background: var(--kt-secondary-light); color: var(--kt-secondary); }

/* ── Pill / code badge ──────────────────────────────────────────────── */
.pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .875rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
}
.pill--accent    { color: var(--kt-accent-dark);    background: var(--kt-accent-light);    border-color: rgba(237,27,36,.18); }
.pill--secondary { color: var(--kt-secondary-dark); background: var(--kt-secondary-light); border-color: rgba(34,78,145,.18); }
.pill--primary   { color: var(--kt-primary-dark);   background: var(--kt-primary-light);   border-color: rgba(10,162,75,.18); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
    background: var(--kt-surface);
    border: 1px solid var(--kt-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    text-align: left;
    padding: 1rem 1.125rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--kt-border);
    border-left: 3px solid var(--accent-color, var(--kt-secondary));
    background: var(--kt-surface);
    box-shadow: var(--shadow-sm);
}
.note-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.note-icon svg { width: 15px; height: 15px; stroke-width: 2; }
.note-text { font-size: .845rem; color: var(--kt-text-muted); line-height: 1.55; }
.note-text strong { display: block; color: var(--kt-text); font-weight: 600; margin-bottom: 2px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.375rem;
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 2; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--kt-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--kt-primary-dark); }

.btn-accent { background: var(--kt-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--kt-accent-dark); }

.btn-outline { background: var(--kt-surface); color: var(--kt-text-muted); border-color: var(--kt-border); }
.btn-outline:hover { border-color: var(--kt-text-faint); color: var(--kt-text); background: var(--kt-bg); }

.btn-block { width: 100%; }

/* ── Form fields ────────────────────────────────────────────────────── */
.field { text-align: left; margin-bottom: 1.125rem; }
.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--kt-text);
    margin-bottom: .4rem;
}
.field .input-wrap { position: relative; }
.field .input-wrap svg {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
    color: var(--kt-text-faint);
    pointer-events: none;
}
.field input {
    width: 100%;
    font-family: var(--font);
    font-size: .9rem;
    color: var(--kt-text);
    background: var(--kt-surface);
    border: 1.5px solid var(--kt-border);
    border-radius: var(--radius-sm);
    padding: .7rem .875rem .7rem 2.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus {
    outline: none;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px var(--kt-primary-light);
}
.field-toggle {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--kt-text-faint);
    cursor: pointer;
    display: flex;
    padding: .25rem;
}
.field-toggle svg { width: 17px; height: 17px; stroke-width: 1.8; }
.field-toggle:hover { color: var(--kt-text-muted); }

.field-error {
    font-size: .78rem;
    color: var(--kt-accent-dark);
    margin-top: .4rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.field-error svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Alerts (flash messages) ───────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-md);
    font-size: .84rem;
    line-height: 1.5;
    margin-bottom: 1.125rem;
    border: 1px solid transparent;
}
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; stroke-width: 2; }
.alert--error   { background: var(--kt-accent-light);    border-color: rgba(237,27,36,.18);  color: var(--kt-accent-dark); }
.alert--info    { background: var(--kt-secondary-light); border-color: rgba(34,78,145,.18);  color: var(--kt-secondary-dark); }
.alert--success { background: var(--kt-primary-light);   border-color: rgba(10,162,75,.18);  color: var(--kt-primary-dark); }

/* ── Divider ────────────────────────────────────────────────────────── */
.divider {
    width: 40px;
    height: 2px;
    background: var(--kt-border);
    border-radius: var(--radius-pill);
    margin: 2rem auto;
}

/* ── Utility ────────────────────────────────────────────────────────── */
.text-muted { color: var(--kt-text-muted); }
.text-faint { color: var(--kt-text-faint); }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-sm { gap: .5rem; }
.gap-md { gap: .875rem; }