/* ================================================================
   MicroSTRESS Pipeline — Shared Styles
   ================================================================ */

/* Wrapper */
#msp-submit-wrap,
#msp-result-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Fields ─────────────────────────────────────────────────── */
.msp-field {
    margin-bottom: 20px;
}
.msp-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}
.msp-field input[type="email"],
.msp-field input[type="number"],
.msp-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.msp-field input[type="email"]:focus,
.msp-field input[type="number"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
}
.msp-req {
    color: #d63638;
}

/* ── File drop zone ──────────────────────────────────────────── */
.msp-file-zone {
    position: relative;
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: #f6f7f7;
    transition: border-color 0.2s, background 0.2s;
    color: #50575e;
    font-size: 14px;
}
.msp-file-zone:hover,
.msp-file-zone.msp-dragover {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #2271b1;
}
.msp-file-zone.msp-has-file {
    border-color: #2271b1;
    background: #f0f6fc;
}
.msp-file-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ── Button ──────────────────────────────────────────────────── */
.msp-btn,
button.msp-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff !important;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 6px;
}
.msp-btn:hover {
    background: #135e96;
    color: #fff !important;
}
.msp-btn:disabled {
    background: #8c8f94;
    cursor: not-allowed;
}

/* ── Notices ─────────────────────────────────────────────────── */
.msp-notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 18px;
    border-left: 4px solid transparent;
}
.msp-error {
    background: #fcf0f1;
    border-left-color: #d63638;
    color: #d63638;
}
.msp-success {
    background: #edfaef;
    border-left-color: #00a32a;
    color: #1d2327;
}
.msp-success h3 {
    margin-top: 0;
    color: #00a32a;
}
.msp-success a {
    word-break: break-all;
}

/* ── Loading Spinner ─────────────────────────────────────────── */
#msp-loading-area {
    text-align: center;
    padding: 40px 20px;
}
.msp-spinner {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 5px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: msp-spin 0.9s linear infinite;
    margin-bottom: 20px;
}
@keyframes msp-spin {
    to { transform: rotate(360deg); }
}
#msp-loading-title {
    font-size: 20px;
    color: #1d2327;
    margin: 0 0 8px;
}
#msp-loading-subtitle {
    color: #50575e;
    font-size: 15px;
    margin-bottom: 10px;
}
.msp-hint {
    font-size: 13px;
    color: #8c8f94;
    margin-top: 4px;
}

/* ── Progress bar ────────────────────────────────────────────── */
.msp-progress-bar {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.msp-progress-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    border-radius: 4px;
    transition: width 1s ease;
}
