/* Empowers Staffing–aligned palette: orange accent, charcoal text, warm neutrals */

:root {
    color-scheme: light;
    --brand: #ef5c33;
    --brand-dark: #d14a28;
    --brand-soft: rgba(239, 92, 51, 0.14);
    --brand-focus: rgba(239, 92, 51, 0.28);
    --text: #333333;
    --muted: #6b6b6b;
    --bg: #f5f5f4;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --line: #e5e5e5;
    --table-border: #2d2d2d;
    --table-header-bg: #dfe0df;
    --topbar-bg: #ffffff;
    --ok: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
}

/* --------------------------------------------------------------------------
   Form controls — global (load this stylesheet on every page that shows forms)
   -------------------------------------------------------------------------- */

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
textarea,
select {
    border: 1px solid var(--brand);
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--brand-focus);
    border-color: var(--brand-dark);
    outline-offset: 0;
}

.field label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    background: #fff;
}

/* Login / forgot-password: white fields on orange card */
.login-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.login-card textarea {
    width: 100%;
    padding: 0.68rem 0.72rem;
    background: #ffffff;
    color: var(--text);
}

/* Reset password / verify OTP: simple card + form (no app shell) */
.card form > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.card form > textarea,
.card form > select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem;
    margin: 0.4rem 0 0.8rem;
    background: #fff;
    color: var(--text);
}

/* Monospace template / code textareas */
textarea.textarea-mono {
    width: 100%;
    border-radius: 10px;
    padding: 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.35;
}

/* Rich text (Tiny) editor chrome — campaigns & email account screens */
.tiny-editor-toolbar {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.35rem;
    border: 1px solid var(--brand);
    border-radius: 0.5rem 0.5rem 0 0;
    background: var(--surface-soft);
}

.tiny-editor-toolbar button {
    font-size: 0.85rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid var(--brand);
    background: #fff;
    border-radius: 0.45rem;
    cursor: pointer;
}

.tiny-editor-toolbar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tiny-editor-surface {
    border: 1px solid var(--brand);
    border-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.55rem 0.6rem;
    min-height: 120px;
    background: #fff;
    outline: none;
}

.tiny-editor-surface:focus {
    box-shadow: 0 0 0 3px var(--brand-focus);
    border-color: var(--brand-dark);
}

.email-body-render {
    border: 1px solid var(--brand);
    border-radius: 0.6rem;
    padding: 0.65rem 0.7rem;
    background: #fff;
    overflow: auto;
}

.email-body-render p {
    margin: 0.4rem 0;
}

.email-body-render ul,
.email-body-render ol {
    padding-left: 1.2rem;
    margin: 0.4rem 0;
}

/* Merge-tag picker dropdown (JS creates #smartlead_merge_tag_menu / _view) */
.merge-tag-menu {
    position: fixed;
    z-index: 120;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid var(--brand);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    padding: 0.35rem;
    display: none;
}

.merge-tag-menu__hint {
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
}
