.peligent-settings-wrap {
    max-width: 900px;
}
.peligent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}
.peligent-header-content {
    flex: 1;
}
.peligent-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}
.peligent-icon {
    font-size: 32px;
}
.peligent-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}
.peligent-status-connected {
    background: #d1fae5;
    color: #065f46;
}
.peligent-status-disconnected {
    background: #fee2e2;
    color: #991b1b;
}
.peligent-status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Step Indicators */
.peligent-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 20px 0;
}
.peligent-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.peligent-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    background: #e5e7eb;
    color: #6b7280;
    transition: all 0.2s;
    flex-shrink: 0;
}
.peligent-step-number .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #fff;
}
.peligent-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}
.peligent-step-active .peligent-step-number {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.peligent-step-active .peligent-step-label {
    color: #2563eb;
    font-weight: 600;
}
.peligent-step-completed .peligent-step-number {
    background: #10b981;
    color: #ffffff;
}
.peligent-step-completed .peligent-step-label {
    color: #065f46;
}
.peligent-step-connector {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    flex-shrink: 0;
}
.peligent-step-connector-active {
    background: #10b981;
}

/* Step Badge (inside card title) */
.peligent-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.peligent-step-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Cards */
.peligent-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.peligent-step-card-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.peligent-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}
.peligent-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}
.peligent-card-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #2563eb;
}
.peligent-card-body {
    padding: 20px 24px;
}
.peligent-card-description {
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Alerts */
.peligent-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.peligent-alert .dashicons {
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}
.peligent-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.peligent-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.peligent-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #065f46;
}

/* Form Elements */
.peligent-form-group {
    margin-bottom: 20px;
}
.peligent-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}
.peligent-required {
    color: #dc2626;
    margin-left: 3px;
}
.peligent-input-wrapper {
    position: relative;
    max-width: 100%;
}
.peligent-form-input {
    width: 100%;
    max-width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}
.peligent-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
select.peligent-form-input {
    max-width: 300px;
    padding-right: 12px;
}
.peligent-input-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
}
.peligent-form-help {
    margin: 6px 0 0 0;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.peligent-form-help .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #9ca3af;
}
.peligent-form-actions {
    margin-top: 20px;
}
.peligent-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.peligent-button-primary {
    background: #2563eb;
    color: #ffffff;
}
.peligent-button-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}
.peligent-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Users List */
.peligent-users-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
}
.peligent-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.peligent-user-item:hover {
    background: #f9fafb;
}
.peligent-user-item input[type="checkbox"] {
    margin: 0;
}
.peligent-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.peligent-user-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}
.peligent-user-email {
    font-size: 13px;
    color: #6b7280;
}
.peligent-user-role {
    font-size: 12px;
    color: #9ca3af;
}
.peligent-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* Tab Navigation */
.peligent-tabs {
    margin-top: 20px;
}
.peligent-tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
}
.peligent-tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}
.peligent-tab-link:hover {
    color: #2563eb;
    background: #f0f4ff;
}
.peligent-tab-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #f0f4ff;
}
.peligent-tab-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.peligent-tab-content {
    display: none;
}
.peligent-tab-content.active {
    display: block;
    animation: peligent-tab-fade-in 0.2s ease;
}
@keyframes peligent-tab-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Iframe submenu pages */
.peligent-iframe-wrap {
    position: fixed;
    top: 32px;
    left: 160px;
    right: 0;
    bottom: 0;
    z-index: 99;
}
.peligent-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.folded .peligent-iframe-wrap {
    left: 36px;
}
.no-adminbar .peligent-iframe-wrap {
    top: 0;
}

/* Modal overlay for Quick Add / Bulk Import iframes */
.peligent-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 160000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}
.peligent-modal-overlay.peligent-modal-active {
    display: flex;
}
.peligent-modal-container {
    width: 90vw;
    max-width: 900px;
    height: 90vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}
.peligent-modal-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
@media (max-width: 782px) {
    .peligent-modal-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Floating toggle CSS moved to sidebar.css */

/* Settings Page Cards */
.peligent-settings-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    overflow: hidden;
}
.peligent-settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.peligent-settings-card-header:hover {
    background: #f9fafb;
}
.peligent-settings-card-body {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
}
.peligent-settings-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}
.peligent-settings-field:last-child {
    border-bottom: none;
}
.peligent-settings-label {
    font-weight: 500;
    color: #6b7280;
    min-width: 140px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 782px) {
    .peligent-settings-wrap {
        max-width: 100%;
    }
    .peligent-header {
        flex-direction: column;
        gap: 12px;
    }
    .peligent-steps-indicator {
        flex-wrap: wrap;
        gap: 8px;
    }
    .peligent-step-connector {
        display: none;
    }
    .peligent-tab-nav {
        flex-wrap: wrap;
    }
    .peligent-tab-link {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    .peligent-iframe-wrap {
        left: 0;
        top: 46px;
    }
    .no-adminbar .peligent-iframe-wrap {
        top: 0;
    }
}
