/* ==========================================================================
   WaaS Onboarding – Styles
   Gateway card grid, active states, API field blocks, Checklist widget.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Gateway selector label
   -------------------------------------------------------------------------- */
.waas-gateway-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Card grid  (3 columns, responsive)
   -------------------------------------------------------------------------- */
.waas-gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 680px) {
    .waas-gateway-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Individual card
   -------------------------------------------------------------------------- */
.waas-gateway-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    user-select: none;
}

.waas-gateway-card:hover,
.waas-gateway-card:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Active / selected card */
.waas-gateway-card--active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: #eff6ff;
}

.waas-gateway-card--active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

/* --------------------------------------------------------------------------
   Card inner elements
   -------------------------------------------------------------------------- */
.waas-gateway-logo {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 8px;
}

.waas-gateway-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.waas-gateway-methods {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 12px;
    color: #6b7280;
    text-align: left;
}

.waas-gateway-methods li {
    padding: 2px 0;
}

.waas-gateway-methods li::before {
    content: '• ';
    color: #9ca3af;
}

.waas-gateway-link {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.waas-gateway-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Skip radio
   -------------------------------------------------------------------------- */
.waas-gateway-skip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    margin-top: 4px;
}

.waas-gateway-skip input[type="radio"] {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   API field block (shown after card selection)
   -------------------------------------------------------------------------- */
.waas-gateway-field {
    /* Hidden by default via PHP inline style; shown by JS */
    animation: waas-fade-in 0.25s ease;
}

@keyframes waas-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Onboarding Checklist Dashboard Widget
   -------------------------------------------------------------------------- */
.waas-checklist {
    padding: 4px 0;
}

.waas-checklist-progress {
    margin-bottom: 16px;
}

.waas-checklist-progress-bar-wrap {
    background: #e5e7eb;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin-top: 6px;
}

.waas-checklist-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.waas-checklist-progress-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

.waas-checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.waas-checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    gap: 8px;
}

.waas-checklist-item:last-child {
    border-bottom: none;
}

.waas-checklist-item-done {
    color: #6b7280;
    text-decoration: line-through;
}

.waas-checklist-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.waas-checklist-item-label {
    flex: 1;
}

.waas-checklist-item-action {
    font-size: 12px;
    white-space: nowrap;
    color: #2563eb;
    text-decoration: none;
}

.waas-checklist-item-action:hover {
    text-decoration: underline;
}
