/*
 * Site theme: a modern skin over the older style.css / custom.css.
 * Loaded last so it wins; layout (960px column, grids, tables) is left alone.
 */

:root {
    --brand: #0166aa;
    --brand-dark: #014f84;
    --brand-light: #e8f2fa;
    --accent: #2e8b3e;
    --accent-dark: #26753a;
    --ink: #1f2933;
    --ink-muted: #5f6b7a;
    --line: #e3e8ee;
    --page: #f3f5f8;
    --card: #ffffff;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* page */
body {
    background: var(--page);
    border-top: 0;
    color: var(--ink);
    font: 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
a:hover { color: var(--brand-dark); }

h2, h3 { color: var(--ink); letter-spacing: -0.01em; font-family: var(--font); }
h2 { font-size: 28px; line-height: 1.25; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
h2.p3 { height: auto; margin-left: 0; }
h2.p3 svg, h2.p3 i { color: var(--brand); margin-right: 4px; }

/* header: white bar that runs edge to edge even though it lives in the 960px column */
header {
    height: 72px !important;
    overflow: visible;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax var(--line);
    clip-path: inset(0 -100vmax -1px);
}

header h1 { margin: 0 0 0 0 !important; }
header h1 a { margin-top: 0; display: flex; align-items: center; height: 72px; }
header img.logo { width: auto; height: 42px; }

ul.menu {
    display: flex;
    align-items: center;
    height: 72px;
    margin-top: 0;
}

ul.menu li { margin: 0 0 0 4px; line-height: 1; }

ul.menu li a {
    padding: 9px 14px;
    border-radius: 6px;
    color: var(--ink-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

ul.menu li a:hover { background: var(--page); color: var(--ink); }
ul.menu li.current a, ul.menu li a.current { background: var(--brand-light); color: var(--brand); }

ul.menu li a.Free_Schedule_Builder { margin: 0 0 0 6px; padding: 9px 14px; border-radius: 6px; background-color: var(--accent); color: #fff; transition: background-color .15s; }
ul.menu li.current a.Free_Schedule_Builder { background-color: var(--accent-dark); color: #fff; }
ul.menu li a.Free_Schedule_Builder:hover { background-color: #38a34a; color: #fff; }  /* a touch brighter on hover */

.profile_link {
    top: 0;
    align-self: center;
    display: inline-block;
    margin-left: 14px;
    padding: 0;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    background-position: center;
}

.unread_notification { top: -10px; left: -6px; box-shadow: none; padding: 2px 6px; }

/* content card */
.top-1 { padding-top: 28px; }

.box-shadow {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
}

/* flash bar sits flush with the card below it */
.user_message { margin: 20px 10px -8px; }

/* forms */
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=url], input[type=search], input[type=date], select, textarea {
    border: 1px solid #c9d1da;
    border-radius: 6px;
    background-color: #fff;
    color: var(--ink);
    font-family: var(--font);
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=url], input[type=search], input[type=date], select {
    padding: 5px 8px;
}

input:focus, select:focus, textarea:focus, .userinput:focus {
    border-color: var(--brand);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1, 102, 170, 0.15);
}

button { border-radius: 6px; font-family: var(--font); cursor: pointer; }

/* the classic form fields and Save buttons built by html_form */
.userinput {
    border: 1px solid #c9d1da;
    border-radius: 6px;
    background: #fff;
    padding: 6px 10px;
    font-size: 15px;
}

.userinput:focus { border-color: var(--brand); background: #fff; }

button.userinput, .usersubmit {
    width: auto;
    min-width: 90px;
    height: auto;
    padding: 8px 16px;
    border: 1px solid transparent;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

button.userinput:hover, .userinput.saveButton:hover, .userinput.UserProfileButton:hover, .usersubmit:hover {
    border-color: transparent;
    background: var(--brand-dark);
    color: #fff;
}

.button { border-radius: 6px; }
.button:hover { background: var(--brand-light); }

/* data tables */
.datatable { box-shadow: none !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.datatable thead tr { background-color: #334155; font-size: 13pt; }
.datatable.compact thead tr { background-color: var(--page); color: var(--ink); }

/* popups */
.popup-inner {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.3);
}

.popup-close {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    padding: 0;
    transform: none;
    -webkit-transform: none;
    background: var(--page);
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 30px;
}

.popup-close:hover { background: #e2e6eb; color: var(--ink); }

/* footer */
.footer { padding: 28px 0 40px; color: var(--ink-muted); font-size: 14px; }
.footer p { color: var(--ink-muted); }
.footer a { color: var(--ink-muted); }
.footer a:hover { color: var(--brand); }

/* login / signup pick up the same tokens */
.auth_card { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font); }
.auth_form input[type=text], .auth_form input[type=email], .auth_form input[type=password] { padding: 8px 12px; font-family: var(--font); }
.auth_submit { border-radius: 6px; font-family: var(--font); background: var(--accent); }
.auth_submit:hover { background: var(--accent-dark); }
.auth_facebook { border-radius: 6px; }

@media print {
    body { background: #fff; }
    header { box-shadow: none; clip-path: none; }
    .box-shadow { border: 0; box-shadow: none; }
}
