/* Extracted from app/views/layout.view.php */
:root {
    --header-h: 32px;
    --footer-h: 28px;
    --bg: #f7f9fc;
    --card-bg: #ffffff;
    --muted: #6b7280; /* gray-500 */
    --text: #111827; /* gray-900 */
    --accent: #4f7cff;
    --accent-2: #0ea5e9; /* sky-500 */
    --danger: #ef4444;
    --border: #e5e7eb; /* gray-200 */
    --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    --radius: 14px;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    height: 100vh;
    background:
        radial-gradient(900px 600px at 10% -10%, rgba(79,124,255,0.10), transparent 60%),
        radial-gradient(800px 500px at 100% 0%, rgba(14,165,233,0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed, fixed, fixed;
    background-repeat: no-repeat, no-repeat, no-repeat;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    display: grid;
    grid-template-areas:
    "header"
    "content"
    "footer";
    grid-template-columns: auto;
    grid-template-rows: auto 1fr auto;
}
header {
    grid-area: header;
    padding: 9px 22px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
/* Header bar layout helper */
.header-bar { justify-content: space-between; align-items: center; width: 100%; }
main {
    grid-area: content;
    padding: calc(var(--header-h) + 16px) 16px calc(var(--footer-h) + 24px);
    display: grid;
    place-items: center;
}
.container {
    width: 100%;
    max-width: 760px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 22px;
}
.title {
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.subtitle {
    margin: 0 0 18px 0;
    color: var(--muted);
}
.muted {
    color: var(--muted);
}
.row { display: flex; gap: 10px; align-items: center; }
.justify-between { justify-content: space-between; }
.align-stretch { align-items: stretch; }
.gap-12 { gap: 12px; }
.truncate-grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-sm { height: 10px; }
.space-md { height: 16px; }
.space-lg { height: 24px; }

a { color: #0284c7; text-decoration: none; }
a:hover { text-decoration: underline; }
/* Header-specific link color tweaks */
header a:hover { color: #111827; }
/* Do not underline the logo link on hover */
header .pill,
header .pill:hover { text-decoration: none; }
footer {
    grid-area: footer;
    padding: 8px 22px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: #ffffff;
    z-index: 90;
}
/* Tables (links page) */
main > table { width: 100%; max-width: 900px; border-collapse: collapse; }
main > table th { text-align: left; color: var(--muted); }
main > table td, main > table th { padding: 10px 8px; border-bottom: 1px solid var(--border); }
/* Inputs */
.input {
    width: 100%;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: box-shadow .2s, border-color .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,0.25); }
.btn {
    background: linear-gradient(180deg, #5a87ff, #486df2);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform .04s ease-in-out, filter .2s;
    box-shadow: 0 8px 24px rgba(79,124,255,0.35);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    color: #1f2937;
    font-size: 14px;
}
.pill { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
header .pill:hover {
    background: #eef2ff; /* indigo-100 */
    border-color: #c7d2fe; /* indigo-200 */
    color: #111827; /* gray-900 for icon + text via currentColor */
}
.result {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}
