/* ==========================================================================
   Moduflex house UI style — brand tokens and components.

   Framework-agnostic: link this into any web project (regardless of the backend
   language) and use the classes. See ui-style.md for the design decisions and
   example.html for the intended page structure.
   ========================================================================== */

:root {
    --brand-blue: #6faac4;        /* core blue  — RGB 111/170/196 */
    --brand-blue-deep: #2f7ba0;   /* darker blue for buttons/links */
    --brand-grey: #8d9097;        /* core grey  — RGB 141/144/151 */
    --ink: #33383c;               /* readable body text            */
    --line: #e3e9ec;              /* light borders                 */
    --tint: #eef4f7;              /* very light blue tint          */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Bahnschrift Light", "Bahnschrift", Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--ink);
    line-height: 1.5;
}
a { color: var(--brand-blue-deep); }
h1, h2, h3 { color: var(--brand-blue); font-weight: 600; }
h1 { font-size: 1.35rem; margin: 0 0 6px; }
h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.muted { color: var(--brand-grey); }
code { background: var(--tint); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

/* Top bar */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 12px 22px; background: #ffffff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 42px; width: auto; display: block; }
.brand-sub { color: var(--brand-grey); font-size: 0.95rem; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--brand-grey); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--brand-blue-deep); }

main { max-width: 860px; margin: 0 auto; padding: 24px 22px; }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 18px; font-size: 1rem; font-family: inherit;
    background: var(--brand-blue-deep); color: #fff; border: 0; border-radius: 8px;
    cursor: pointer; text-decoration: none;
}
.btn:hover { background: #276c8e; }
.btn-sm {
    padding: 6px 12px; font-size: 0.82rem; font-family: inherit;
    background: #fff; color: var(--brand-grey); border: 1px solid var(--line);
    border-radius: 7px; cursor: pointer;
}
.btn-sm:hover { color: var(--brand-blue-deep); border-color: var(--brand-blue); }

/* Form fields */
.field {
    padding: 11px 14px; font-size: 1rem; font-family: inherit; background: #fff;
    border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
}
.field:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(111, 170, 196, 0.25); }

/* Card rows (folders, files, results, list items) */
.row {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; margin-bottom: 6px; text-decoration: none; color: var(--ink);
}
.row:hover { border-color: var(--brand-blue); }

/* Flash messages */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 0.95rem; }
.flash.ok { background: #e9f4ee; color: #237a4b; }
.flash.error { background: #fbe9e7; color: #b23b2e; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th { background: var(--tint); text-align: left; padding: 10px 12px; color: var(--brand-grey); font-weight: 600; font-size: 0.85rem; }
td { padding: 10px 12px; border-top: 1px solid var(--line); }
