body {
    overflow-y: scroll;
}

.probonoform-wrap {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.probonoform-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px 40px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.probonoform-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: inherit;
}

.probonoform-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    color: inherit;
}

.probonoform-main-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
}

.probonoform-main-tab {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    top: 1px;
}

.probonoform-main-tab:hover {
    color: #667eea;
    background: #f8f9ff;
}

.probonoform-main-tab.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.probonoform-form-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    gap: 16px;
}

.probonoform-form-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.probonoform-form-info-label {
    font-size: 13px;
    color: #666;
}

.probonoform-form-name-edit {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: white;
    min-width: 200px;
    transition: all 0.2s ease;
}

.probonoform-form-name-edit:hover {
    border-color: #667eea;
}

.probonoform-form-name-edit:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-form-name-hint {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

.probonoform-form-info-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.probonoform-global-save-btn {
    background: #f0f0f5;
    color: #667eea;
    border: 1px solid #d0d0e0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.probonoform-global-save-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-form-info-shortcode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.probonoform-current-shortcode {
    background: #f0f0f5;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

.probonoform-copy-shortcode-btn {
    background: #f0f0f5;
    color: #667eea;
    border: 1px solid #d0d0e0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
}

.probonoform-copy-shortcode-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-copy-shortcode-btn.copied {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-main-panel {
    display: none;
}

.probonoform-main-panel.active {
    display: block;
}

.probonoform-autosave-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    vertical-align: middle;
    min-width: 120px;
}

.probonoform-autosave-status.autosave-saving {
    color: #999;
}

.probonoform-autosave-status.autosave-saved {
    color: #28a745;
}

.probonoform-autosave-status.autosave-error {
    color: #dc3545;
}

.probonoform-save-area {
    text-align: center;
    padding: 16px 0;
}

.probonoform-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 160px;
}

.probonoform-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.probonoform-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.probonoform-save-btn.saving {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
}

.probonoform-save-btn.saved {
    background: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.probonoform-save-btn.error {
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.probonoform-save-hint {
    display: block;
    margin: 12px 0 0 0;
    font-size: 14px;
    color: #555;
}

.probonoform-guide-label {
    background: #4a5568;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.probonoform-guide-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 16px;
}

.probonoform-guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.probonoform-guide-step:last-of-type {
    border-bottom: none;
}

.probonoform-guide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.probonoform-guide-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.probonoform-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: #fff8e6;
    border-radius: 6px;
    border-left: 3px solid #f0b429;
}

.probonoform-guide-note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.probonoform-guide-note-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

@media screen and (max-width: 1200px) {
    .probonoform-form-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .probonoform-form-info {
        flex-wrap: wrap;
    }
    .probonoform-form-name-edit {
        min-width: 100%;
    }
    .probonoform-form-name-hint {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
}

@media screen and (max-width: 768px) {
    .probonoform-header {
        padding: 24px;
    }
    .probonoform-title {
        font-size: 24px;
    }
    .probonoform-main-tabs {
        flex-direction: column;
    }
    .probonoform-main-tab {
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
}