/* ============================================================
   MHS Public — Email Signature Generator
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.mhs-generator {
    --mhs-blue: #0069ff;
    --mhs-blue-light: rgba(0,105,255,.08);
    --mhs-border: #e4e4e4;
    --mhs-bg: #f7f7f5;
    --mhs-card: #ffffff;
    --mhs-text: #111111;
    --mhs-muted: #777777;
    --mhs-hint: #aaaaaa;
    --mhs-radius: 10px;
    --mhs-radius-sm: 7px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--mhs-text);
    line-height: 1.5;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.mhs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--mhs-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--mhs-card);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.mhs-panel {
    padding: 28px 24px;
}

.mhs-panel-inputs {
    border-right: 1px solid var(--mhs-border);
}

.mhs-panel-preview {
    background: var(--mhs-bg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mhs-panel-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mhs-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mhs-panel-icon {
    color: var(--mhs-blue);
    font-size: 10px;
}

/* ── Form fields ─────────────────────────────────────────────────────── */

.mhs-field-group {
    margin-bottom: 16px;
}

.mhs-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: .01em;
}

.mhs-optional {
    font-weight: 400;
    color: var(--mhs-hint);
}

.mhs-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--mhs-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

.mhs-input:focus {
    outline: none;
    border-color: var(--mhs-blue);
    box-shadow: 0 0 0 3px var(--mhs-blue-light);
}

.mhs-input::placeholder {
    color: #ccc;
}

/* Select */
.mhs-select-wrap {
    position: relative;
}

.mhs-select {
    padding-right: 32px;
    cursor: pointer;
}

.mhs-select-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--mhs-muted);
    font-size: 12px;
}

/* ── Photo upload ────────────────────────────────────────────────────── */

.mhs-upload-area {
    border: 1.5px dashed var(--mhs-border);
    border-radius: var(--mhs-radius-sm);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
    position: relative;
    overflow: hidden;
}

.mhs-upload-area:hover,
.mhs-upload-area.mhs-drag-over {
    border-color: var(--mhs-blue);
    background: var(--mhs-blue-light);
}

.mhs-upload-area:focus {
    outline: none;
    border-color: var(--mhs-blue);
    box-shadow: 0 0 0 3px var(--mhs-blue-light);
}

.mhs-upload-icon {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--mhs-muted);
}

.mhs-upload-text {
    font-size: 13px;
    color: var(--mhs-muted);
}

.mhs-upload-link {
    color: var(--mhs-blue);
    font-weight: 600;
}

.mhs-upload-hint {
    font-size: 11px;
    color: var(--mhs-hint);
    margin-top: 4px;
}

.mhs-upload-preview {
    position: relative;
    display: inline-block;
}

.mhs-upload-preview img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid var(--mhs-border);
}

.mhs-remove-photo {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff3b30;
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mhs-upload-error {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
}

/* ── Preview panel ───────────────────────────────────────────────────── */

.mhs-preview-wrap {
    flex: 1;
    background: #fff;
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    padding: 20px;
    min-height: 180px;
    overflow-x: auto;
    position: relative;
}

.mhs-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mhs-hint);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.mhs-empty-icon {
    font-size: 28px;
    opacity: .35;
}

/* ── Actions ─────────────────────────────────────────────────────────── */

.mhs-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mhs-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: var(--mhs-blue);
    color: #fff;
    border: none;
    border-radius: var(--mhs-radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    letter-spacing: .01em;
}

.mhs-copy-btn:hover {
    background: #0058d6;
}

.mhs-copy-btn:active {
    transform: scale(.98);
}

.mhs-copy-btn.mhs-copied {
    background: #1da462;
}

.mhs-copy-icon {
    font-size: 16px;
}

/* ── Instructions ────────────────────────────────────────────────────── */

.mhs-instructions-wrap {
    background: #fff;
    border: 1px solid var(--mhs-border);
    border-radius: var(--mhs-radius);
    overflow: hidden;
}

.mhs-instructions-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mhs-border);
    background: var(--mhs-bg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mhs-instructions-body {
    padding: 12px 14px;
    font-size: 12.5px;
    color: #555;
    line-height: 1.7;
    white-space: pre-line;
}

/* ── Accent border animated on dept change ───────────────────────────── */

.mhs-preview-wrap {
    transition: border-color .25s;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .mhs-columns {
        grid-template-columns: 1fr;
    }
    .mhs-panel-inputs {
        border-right: none;
        border-bottom: 1px solid var(--mhs-border);
    }
}

/* ── Copy hint text ──────────────────────────────────────────────────── */

.mhs-copy-hint-text {
    font-size: 11.5px;
    color: var(--mhs-hint);
    text-align: center;
    margin: 6px 0 0;
    line-height: 1.5;
}
