/* ─── Settings / Sys-Prompt page ───
 * Outer flex layout (sidebar + main) is handled by .app-shell in base.css.
 * This stylesheet only styles the main card and its internals.
 */

.sys-prompt-main {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 25px rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== CARD HEADER ===== */
.sys-prompt-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.sys-prompt-card__heading {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sys-prompt-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.75px;
    color: #1e293b;
}

.sys-prompt-card__subtitle {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #64748b;
}

/* ===== CARD BODY ===== */
.sys-prompt-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.sys-prompt-card__header {
    width: 100%;
}

/* ===== TEXTAREA ===== */
.sys-prompt-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 159px;
    padding: 14px;
    resize: vertical;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    background: #f8fafc;
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 15px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
}

.sys-prompt-textarea::placeholder {
    color: #94a3b8;
}

.sys-prompt-textarea:focus-visible {
    outline: 2px solid var(--color-primary-soft);
    outline-offset: 2px;
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.slider-section__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.slider-section__label-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.slider-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 19px;
    height: 19px;
}

.slider-section__icon svg {
    display: block;
}

.slider-section__label {
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #334155;
}

.slider-section__hint {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 16px;
    color: #64748b;
}

/* Value badge */
.slider-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 28px;
    padding: 0 16px;
    border-radius: 9999px;
    background: var(--color-overlay);
    -webkit-backdrop-filter: var(--blur-glass);
    backdrop-filter: var(--blur-glass);
    border: var(--border-width-default) solid var(--color-border-soft);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Range track wrap */
.slider-section__track-wrap {
    position: relative;
    width: 100%;
    height: 12px;
    display: flex;
    align-items: center;
}

/* Range input */
.slider-section__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    outline: none;
    cursor: pointer;
}

/* Webkit thumb */
.slider-section__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #0d9488;
    border: 1px solid #10baab;
    cursor: pointer;
}

/* Firefox thumb */
.slider-section__range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #0d9488;
    border: 1px solid #10baab;
    cursor: pointer;
}

.slider-section__range:focus-visible {
    outline: 2px solid var(--color-primary-soft);
    outline-offset: 2px;
}

/* ===== ACTIONS ===== */
.sys-prompt-card__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
}

/* Override btn--secondary width to match design */
.sys-prompt-card__actions .btn--secondary {
    width: 238px;
}

/* Reset button */
.btn--reset {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 238px;
    height: 42px;
    padding: 12px 0;
    border: 1px solid #94a3b8;
    border-radius: var(--radius-xl);
    background: var(--color-surface-muted);
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn--reset:hover {
    border-color: #64748b;
    color: #64748b;
}

.btn--reset:focus-visible {
    outline: 2px solid var(--color-primary-soft);
    outline-offset: 2px;
}

/* Info / success message */
.sys-prompt-card__info {
    margin: 0;
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    background: rgba(13, 148, 136, 0.08);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

@media (max-width: 760px) {
    .sys-prompt-card__actions {
        flex-direction: column;
    }

    .sys-prompt-card__actions .btn--secondary,
    .btn--reset {
        width: 100%;
    }
}
