/*
 * CandidaGo additions to the shared Looper theme (theme.css / theme-dark.css come from Scolago).
 * Every CandidaGo-specific rule goes here: no inline styles in views.
 */

/* ---------- Header brand ---------- */
.top-bar-brand {
    overflow: hidden;
}

.brand-foreground {
    z-index: 1;
}

.brand-decoration {
    top: -40px;
    left: 50px;
    pointer-events: none;
}

/* The logo file has a white background: the shape behind it is white too. */
.brand-decoration circle:first-child {
    fill: #ffffff;
}

.brand-logo {
    height: 2.5rem;
    width: auto;
}

/* ---------- Toasts ---------- */
/* Bottom right: page actions (save, publish...) are at the top right and must stay clickable. */
.toast-container-candidago {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1071;
}

/* ---------- Sign-in pages ---------- */
.auth-candidago {
    min-height: 100vh;
    overflow: hidden;
    justify-content: center;
    padding: 2rem 0;
}

.auth-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
}

.auth-decoration-start {
    top: -140px;
    left: -150px;
}

.auth-decoration-end {
    right: -120px;
    bottom: -140px;
}

.auth-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(20, 20, 31, 0.05), 0 1px 3px 0 rgba(20, 20, 31, 0.15);
}

.auth-logo {
    display: block;
    width: 240px;
    max-width: 70vw;
    height: auto;
}

.auth-candidago .auth-form {
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .auth-candidago .auth-form {
        padding: 2rem;
    }
}

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    color: #686f76;
    font-size: 0.875rem;
    text-align: center;
}

.auth-languages a {
    margin: 0 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #888c9b;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    border-top: 1px solid rgba(20, 20, 31, 0.12);
    content: "";
}

.qr-code {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    image-rendering: pixelated;
}

.authenticator-key {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.08em;
    word-break: break-all;
}

.error-page-icon {
    font-size: 3rem;
    color: #346CB0;
}

/* ---------- Home ---------- */
.home-welcome-icon {
    font-size: 2.5rem;
}

/* ---------- Career site ---------- */
.career-body {
    background-color: #f6f7f9;
}

.career-header {
    background-color: var(--career-primary, #346CB0);
    color: #ffffff;
}

.career-brand,
.career-brand:hover,
.career-brand:focus {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.career-languages a {
    margin-left: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.career-languages a.active {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.career-hero-icon {
    font-size: 3rem;
    color: var(--career-primary, #346CB0);
}

.career-footer {
    font-size: 0.875rem;
}

/* ---------- Lists of check boxes in forms ---------- */
.checkbox-list {
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(20, 20, 31, 0.12);
    border-radius: 0.25rem;
}

/* ---------- Recruiter pipeline ---------- */
.pipeline {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: flex-start;
}

.pipeline-column {
    flex: 0 0 15rem;
    border-radius: 0.25rem;
    background-color: rgba(20, 20, 31, 0.05);
}

.pipeline-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
}

.pipeline-column-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 4rem;
    padding: 0 0.5rem 0.5rem;
}

.pipeline-card,
.pipeline-card:hover,
.pipeline-card:focus {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(20, 20, 31, 0.05), 0 1px 3px 0 rgba(20, 20, 31, 0.15);
    color: inherit;
    text-decoration: none;
}

.pipeline-card:hover,
.pipeline-card:focus {
    box-shadow: 0 0 0 2px #346CB0;
}

.dark-skin .pipeline-column {
    background-color: rgba(255, 255, 255, 0.04);
}

.dark-skin .pipeline-card,
.dark-skin .pipeline-card:hover,
.dark-skin .pipeline-card:focus {
    background-color: #222230;
}

/* ---------- Application details ---------- */
.application-note {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(20, 20, 31, 0.1);
}

.application-note:first-child {
    padding-top: 0;
    border-top: 0;
}

.application-note-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* An email is always shown as its recipient sees it: dark text on white, in both skins. */
.outgoing-email-body {
    overflow-wrap: anywhere;
    background-color: #ffffff;
    color: #222230;
}

/* ---------- Career site: navigation, postings, forms ---------- */
.career-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.career-nav a,
.career-nav a:hover,
.career-nav a:focus {
    color: #ffffff;
}

.career-posting,
.career-posting:hover,
.career-posting:focus {
    display: block;
    color: inherit;
    text-decoration: none;
}

.career-posting:hover,
.career-posting:focus {
    box-shadow: 0 0 0 2px var(--career-primary, #346CB0);
}

.career-posting h2 {
    color: var(--career-primary, #346CB0);
}

.career-button,
.career-button:hover,
.career-button:focus {
    border-color: var(--career-primary, #346CB0);
    background-color: var(--career-primary, #346CB0);
}

.career-button:hover,
.career-button:focus {
    filter: brightness(0.92);
}

.career-form {
    max-width: 46rem;
    margin: 0 auto;
}

.career-form-narrow {
    max-width: 28rem;
}

.career-description {
    overflow-wrap: anywhere;
}

/* ---------- Job posting form ---------- */
.internal-fields {
    padding: 1rem;
    border: 1px dashed rgba(20, 20, 31, 0.25);
    border-radius: 0.25rem;
}

.distribution-source + .distribution-source {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 20, 31, 0.08);
}

/* ---------- Career site: branding, search and sharing ---------- */
/* A logo is drawn for a light page: it always sits on white, on the coloured header and in both skins. */
.career-logo,
.career-logo-preview {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff;
}

.career-logo img {
    max-width: 10rem;
    max-height: 2.5rem;
}

.career-logo-preview {
    border: 1px solid rgba(20, 20, 31, 0.12);
}

.career-logo-preview img {
    max-width: 12rem;
    max-height: 4rem;
}

.career-brand {
    display: inline-flex;
    align-items: center;
}

.career-introduction {
    overflow-wrap: anywhere;
}

.career-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.career-share {
    margin-bottom: 0.5rem;
}

.dark-skin .internal-fields {
    border-color: rgba(255, 255, 255, 0.25);
}

.dark-skin .distribution-source + .distribution-source {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-skin .checkbox-list {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- J3: pipeline selection, questionnaires ---------- */
.page-intro {
    max-width: 52rem;
}

.pipeline-card-wrapper {
    position: relative;
}

.pipeline-card-check {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 1;
}

.pipeline-card-wrapper .pipeline-card-check ~ .pipeline-card .pipeline-card-name {
    padding-right: 1.5rem;
}

.question-options {
    padding-left: 1.25rem;
}

.career-question + .career-question {
    margin-top: 1rem;
}

/* ---------- J4: emails and interviews ---------- */
.merge-fields code {
    white-space: nowrap;
}

/* An email is always shown as its recipient sees it: dark text on white, in both skins. */
.email-preview {
    background-color: #ffffff;
    color: #222230;
    overflow-wrap: anywhere;
}

/* ---------- J6: reports, open API, AI assistance ---------- */
.reports-chart {
    position: relative;
    height: 280px;
}

.reports-customize-menu {
    min-width: 16rem;
}

.api-key {
    overflow-wrap: anywhere;
}

.ai-assistant {
    background-color: rgba(52, 108, 176, 0.06);
}

/* ---------- J8: accessibility ---------- */
.skip-link:focus {
    position: fixed !important;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #14141f;
    border: 2px solid #346CB0;
    border-radius: 0.25rem;
}

[tabindex="-1"]:focus {
    outline: none;
}
