/* =========================================================
   EPTS Add Owner — Status/waiting page styles
   Adapted from Plugin A frontend/assets/style.css
   ========================================================= */

/* Card container */
.oadd-status-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 640px;
    margin: 32px auto;
    padding: 0 16px;
}
.oadd-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.oadd-card--narrow { max-width: 420px; margin: 32px auto; }

.oadd-card__head { margin-bottom: 24px; }
.oadd-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #111;
}
.oadd-card__title strong { color: #1d4ed8; }

/* ---- Progress steps -------------------------------------- */
.oadd-progress {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}
.oadd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
}
.oadd-step__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    transition: background 0.3s, color 0.3s;
}
.oadd-step--active .oadd-step__dot {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(29,78,216,.2);
}
.oadd-step--done .oadd-step__dot {
    background: #10b981;
    color: #fff;
}
.oadd-step__label {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
    max-width: 80px;
}
.oadd-step--active .oadd-step__label,
.oadd-step--done .oadd-step__label { color: #374151; font-weight: 500; }

.oadd-step__line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 20px;
    transition: background 0.3s;
}
.oadd-step__line--done { background: #10b981; }

/* ---- Alert boxes ----------------------------------------- */
.oadd-alert {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.oadd-alert--info     { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
.oadd-alert--warning  { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.oadd-alert--progress { background: #ede9fe; color: #5b21b6; border-left: 4px solid #7c3aed; }
.oadd-alert--success  { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.oadd-alert--error    { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ---- Summary table --------------------------------------- */
.oadd-summary { margin-bottom: 16px; }
.oadd-summary__row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.oadd-summary__row:last-child { border-bottom: none; }
.oadd-summary__label { color: #6b7280; flex: 0 0 100px; }
.oadd-summary__val   { color: #111; font-weight: 500; }

/* ---- Polling indicator ----------------------------------- */
.oadd-polling-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 16px;
}
@keyframes oadd-spin { to { transform: rotate(360deg); } }
.oadd-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: oadd-spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ---- Lookup form ----------------------------------------- */
.oadd-input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 4px;
    box-sizing: border-box;
}
.oadd-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.oadd-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.oadd-btn:hover { background: #1e40af; }

/* Responsive */
@media (max-width: 480px) {
    .oadd-card { padding: 20px 16px; }
    .oadd-step  { min-width: 60px; }
    .oadd-step__label { font-size: 10px; }
}
