/*
 * Hello Homy — art direction of the apps (design system V03) applied to the back-office and its login.
 * Loaded after backend.css: tokens, typography and component finish only.
 */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-bold.woff2") format("woff2"); }

:root {
    --hh-font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --hh-canvas: #FEFBF5;
    --hh-ink: #1B1E36;
    --hh-ink-muted: #5E5D6B;
    --hh-sky: #7CC1EE;
    --hh-sky-soft: #EAF4FB;
    --hh-link: #1A6FC0;
    --hh-line: #ECE7DE;
    --hh-shadow-card: 0 1px 2px rgba(27, 30, 54, .04), 0 8px 24px rgba(27, 30, 54, .06);
    --hh-admin-bg: var(--hh-canvas);
    --hh-admin-text: var(--hh-ink);
    --hh-admin-muted: var(--hh-ink-muted);
    --hh-admin-border: var(--hh-line);
    --hh-admin-shadow: var(--hh-shadow-card);
    --hh-admin-primary: var(--hh-link);
    --hh-admin-primary-dark: #15528F;
    --hh-admin-primary-soft: var(--hh-sky-soft);
    --bs-body-font-family: var(--hh-font);
    --bs-font-sans-serif: var(--hh-font);
    --bs-body-color: var(--hh-ink);
    --bs-heading-color: var(--hh-ink);
}

body, button, input, select, textarea, .btn, .form-control, .form-select, .dropdown-menu, .table, .apexcharts-text,
.select2-container, .swal2-popup { font-family: var(--hh-font) !important; }
body { background: var(--hh-canvas) !important; color: var(--hh-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--hh-ink); font-weight: 600; letter-spacing: -.2px; }
a { color: var(--hh-link); }
.text-primary { color: var(--hh-link) !important; }

/* Sidebar: quiet, the active page in the soft sky of the apps. */
.iq-sidebar { background: #fff !important; border-right: 1px solid var(--hh-line) !important; box-shadow: none !important; }
.iq-sidebar .nav-link, .iq-sidebar .iq-sidebar-menu a { color: var(--hh-ink) !important; font-weight: 500; border-radius: 12px; }
.iq-sidebar .nav-link.active, .iq-sidebar .active > a, .iq-sidebar a.active, .iq-sidebar .nav-item.active > .nav-link {
    background: var(--hh-sky-soft) !important; color: #15528F !important; font-weight: 600; }
.iq-sidebar .nav-link:hover, .iq-sidebar .iq-sidebar-menu a:hover { background: #F6FAFD !important; }

/* Top bar */
.iq-top-navbar, .iq-navbar { background: rgba(254, 251, 245, .92) !important; border-bottom: 1px solid var(--hh-line) !important; box-shadow: none !important; }

/* Cards and tables */
.card { border: 1px solid rgba(236, 231, 222, .7) !important; border-radius: 22px !important; box-shadow: var(--hh-shadow-card) !important; }
.card .card-header { background: transparent !important; border-bottom: 1px solid var(--hh-line) !important; }
.table thead th { color: var(--hh-ink-muted) !important; font-weight: 600; background: #FBF7EF !important; border-color: var(--hh-line) !important; }
.table td { border-color: var(--hh-line) !important; }

/* Buttons: pill, accessible blue. */
.btn { border-radius: 999px !important; font-weight: 600; }
.btn-primary { background: linear-gradient(180deg, #2277BE 0%, var(--hh-link) 100%) !important; border: 0 !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(180deg, #1D6CAE 0%, #15528F 100%) !important; }
.btn-outline-primary { color: #15528F !important; border-color: rgba(26, 111, 192, .35) !important; }
.btn-outline-primary:hover { background: var(--hh-sky-soft) !important; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--hh-sky); outline-offset: 2px; }

/* Fields */
.form-control, .form-select, .select2-container .select2-selection { border-radius: 14px !important; border-color: var(--hh-line) !important; }
.form-control:focus, .form-select:focus { border-color: var(--hh-sky) !important; box-shadow: 0 0 0 4px rgba(124, 193, 238, .25) !important; }

/* Dashboard tiles: white cards with a blue figure instead of solid blue blocks. */
.total-booking-card, .total-service-card, .total-revenue { background: #fff !important; background-image: none !important; }
.total-booking-card :is(.booking-text, p), .total-service-card :is(.booking-text, p), .total-revenue :is(.booking-text, p) { color: var(--hh-ink-muted) !important; }
.total-booking-card h4, .total-service-card h4, .total-revenue h4 { color: #15528F !important; font-weight: 700; }
/* The icons are white SVG (inline fill): they keep a solid blue disc so they stay visible on the white tile. */
.total-booking-card .iq-card-icon, .total-service-card .iq-card-icon, .total-revenue .iq-card-icon {
    background: linear-gradient(180deg, #2277BE 0%, #1A6FC0 100%) !important; color: #fff !important; box-shadow: none !important; }

/* Badges as pastel chips */
.badge { border-radius: 999px; font-weight: 600; }

.iq-footer { background: transparent !important; color: var(--hh-ink-muted); }

/* Provider sign-up and back-office login: pill actions like the apps. */
.hh-register-submit, .hh-admin-login-submit { border-radius: 999px !important; font-weight: 600 !important; }

/* Provider sign-up title: its forced line breaks only on wide screens. */
@media (max-width: 991.98px) { .hh-register-visual h1 span { display: inline !important; } }

/* Phones: on the provider sign-up the form comes first. */
@media (max-width: 991.98px) {
    .hh-register-visual { order: 2; }
}

.hh-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 18px 16px 28px; font-size: 13px; }
.hh-legal-links a { color: #5E5D6B; text-decoration: none; }
.hh-legal-links a:hover { color: #1A6FC0; text-decoration: underline; }

/* Operator guide on top of the engine screens. */
.hh-engine-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; background: #fff; border: 1px solid rgba(236, 231, 222, .7);
    border-radius: 22px; box-shadow: var(--hh-shadow-card); padding: 20px 24px; margin-bottom: 20px; }
.hh-engine-guide-kicker { display: inline-block; background: var(--hh-sky-soft); color: #15528F; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.hh-engine-guide-purpose { font-size: 16px; color: var(--hh-ink); margin: 10px 0 6px; }
.hh-engine-guide-tech { font-size: 12px; color: var(--hh-ink-muted); margin: 0; }
.hh-engine-guide-tech code { background: #FBF7EF; color: #34364A; border-radius: 6px; padding: 1px 6px; }
.hh-engine-guide-watch { background: #FBF7EF; border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.hh-engine-guide-watch ul { margin: 6px 0 0; padding-left: 18px; color: #34364A; }
@media (max-width: 991.98px) { .hh-engine-guide { grid-template-columns: 1fr; } }
